13
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="BITSET" xml:lang="fr_FR" xml.mml="http://www.w3.org/1998/Math/MathML">
15
<refname>BITSET</refname>
16
<refpurpose>Positionne un bit à 1</refpurpose>
23
<imagedata align="center" fileref="../../../../images/palettes/BITSET.png" valign="middle"/>
28
<refsection id="Contents_BITSET">
29
<title>Contenu</title>
33
<link linkend="BITSET">Positionne un bit à 1</link>
40
<xref linkend="Palette_BITSET">Palette</xref>
45
<xref linkend="Description_BITSET">Description</xref>
50
<xref linkend="Data_Type_BITSET">Types de données</xref>
55
<xref linkend="Dialogbox_BITSET">Boîte de dialogue</xref>
60
<xref linkend="Defaultproperties_BITSET">Propriétés par défaut</xref>
65
<xref linkend="Example_BITSET">Exemple</xref>
70
<xref linkend="Interfacingfunction_BITSET">Fonction d'interfaçage</xref>
75
<xref linkend="Computationalfunction_BITSET">Fonctions de calcul</xref>
80
<xref linkend="Seealso_BITSET">Voir aussi</xref>
87
<refsection id="Palette_BITSET">
88
<title>Palette</title>
92
<link linkend="Integer_pal">Palette Entier</link>
97
<refsection id="Description_BITSET">
98
<title>Description</title>
100
Ce bloc met à <literal>1</literal> un bit spécifié de son entrée. L'utilisateur spécifie
101
l'indice du bit dans le champ <emphasis role="bold">Index of Bit</emphasis>, l'indice
102
<literal>0</literal> étant celui du bit le moins significatif. L'opération peut être
103
résumée par cette expression:
106
<latex><![CDATA[ Sortie=Entrée \vee Masque]]></latex>
109
i.e. un <literal>OU</literal> bit à bit entre <literal>Entrée</literal> et
110
<literal>Masque</literal>, un entier de même longueur que l'entrée avec une valeur
111
<literal>1</literal> pour le bit à modifier et une valeur <literal>0</literal>
112
pour les autres bits.
115
<refsection id="Data_Type_BITSET">
116
<title>Types de données</title>
118
Le bloc supporte les types de données suivants :
123
Entrée : scalaire. Tout type entier de Scilab (paramètre <emphasis role="bold">Data Type</emphasis>).
128
Sortie : scalaire. Même type que l'entrée.
133
<refsection id="Dialogbox_BITSET">
134
<title>Boîte de dialogue</title>
138
<imagedata align="center" fileref="../../../gui/integer_pal/fr_FR/BITSET_gui.png"/>
146
<emphasis role="bold">Data Type (3:int32, 4:int16, 5:int8, ...)</emphasis>
149
Indique le type entier des données en entrée (sortie) : entre 3 et 8.
151
<para>Propriétés : Type 'vec' de taille 1.</para>
155
<emphasis role="bold">Index of Bit (0 is least significant)</emphasis>
158
Indique le bit à mettre à 1. L'indice doit être, quand le type est :
163
int32 or uint32 : positif et inférieur à 32.
168
int16 or uint16 : positif et inférieur à 16.
173
int8 or uint8 : positif et inférieur à 8.
177
<para>Propriétés : Type 'vec' de taille 1.</para>
181
<refsection id="Defaultproperties_BITSET">
182
<title>Propriétés par défaut</title>
186
<emphasis role="bold">always active:</emphasis> non
191
<emphasis role="bold">direct-feedthrough:</emphasis> oui
196
<emphasis role="bold">zero-crossing:</emphasis> non
201
<emphasis role="bold">mode:</emphasis> non
206
<emphasis role="bold">regular inputs:</emphasis>
209
<emphasis role="bold">- port 1 : size [1,1] / type 3</emphasis>
214
<emphasis role="bold">regular outputs:</emphasis>
217
<emphasis role="bold">- port 1 : size [1,1] / type 3</emphasis>
222
<emphasis role="bold">number/sizes of activation inputs:</emphasis> 0
227
<emphasis role="bold">number/sizes of activation outputs:</emphasis> 0
232
<emphasis role="bold">continuous-time state:</emphasis> non
237
<emphasis role="bold">discrete-time state:</emphasis> non
242
<emphasis role="bold">object discrete-time state:</emphasis> non
247
<emphasis role="bold">name of computational function:</emphasis>
248
<emphasis role="italic">bit_set_32</emphasis>
253
<refsection id="Example_BITSET">
254
<title>Exemple</title>
256
Ci-dessous un cas simple d'utilisation du bloc.
257
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/BITSET_fr_FR.xcos">
258
Ouvrir cet exemple dans Xcos
264
<imagedata align="center" fileref="../../../examples/integer_pal/fr_FR/bitset_diagram_fr_FR.png"/>
268
<refsection id="Interfacingfunction_BITSET">
269
<title>Fonction d'interfaçage</title>
273
<link type="scilab" linkend="scilab.scinotes/scicos_blocks/macros/IntegerOp/BITSET.sci">SCI/modules/scicos_blocks/macros/IntegerOp/BITSET.sci</link>
278
<refsection id="Computationalfunction_BITSET">
279
<title>Fonctions de calcul</title>
282
<para>SCI/modules/scicos_blocks/src/c/bit_set_32.c</para>
285
<para>SCI/modules/scicos_blocks/src/c/bit_set_16.c</para>
288
<para>SCI/modules/scicos_blocks/src/c/bit_set_8.c</para>
292
<refsection role="see also" id="Seealso_BITSET">
293
<title>Voir aussi</title>
296
<link linkend="BITCLEAR">BITCLEAR</link>
299
<link linkend="EXTRACTBITS">EXTRACTBITS</link>
302
<link linkend="LOGICAL_OP">LOGICAL_OP</link>
15
<refname>BITSET</refname>
16
<refpurpose>Positionne un bit à 1</refpurpose>
23
<imagedata align="center" fileref="../../../../images/palettes/BITSET.png" valign="middle"/>
28
<refsection id="Contents_BITSET">
29
<title>Contenu</title>
33
<link linkend="BITSET">Positionne un bit à 1</link>
40
<xref linkend="Palette_BITSET">Palette</xref>
45
<xref linkend="Description_BITSET">Description</xref>
50
<xref linkend="Data_Type_BITSET">Types de données</xref>
55
<xref linkend="Dialogbox_BITSET">Boîte de dialogue</xref>
60
<xref linkend="Defaultproperties_BITSET">Propriétés par défaut</xref>
65
<xref linkend="Example_BITSET">Exemple</xref>
70
<xref linkend="Interfacingfunction_BITSET">Fonction d'interfaçage</xref>
75
<xref linkend="Computationalfunction_BITSET">Fonctions de calcul</xref>
80
<xref linkend="Seealso_BITSET">Voir aussi</xref>
87
<refsection id="Palette_BITSET">
88
<title>Palette</title>
92
<link linkend="Integer_pal">Palette Entier</link>
97
<refsection id="Description_BITSET">
98
<title>Description</title>
100
Ce bloc met à <literal>1</literal> un bit spécifié de son entrée. L'utilisateur spécifie
101
l'indice du bit dans le champ <emphasis role="bold">Index of Bit</emphasis>, l'indice
102
<literal>0</literal> étant celui du bit le moins significatif. L'opération peut être
103
résumée par cette expression:
106
<latex><![CDATA[ Sortie=Entrée \vee Masque]]></latex>
109
i.e. un <literal>OU</literal> bit à bit entre <literal>Entrée</literal> et
110
<literal>Masque</literal>, un entier de même longueur que l'entrée avec une valeur
111
<literal>1</literal> pour le bit à modifier et une valeur <literal>0</literal>
112
pour les autres bits.
115
<refsection id="Data_Type_BITSET">
116
<title>Types de données</title>
118
Le bloc supporte les types de données suivants :
123
Entrée : scalaire. Tout type entier de Scilab (paramètre <emphasis role="bold">Data Type</emphasis>).
128
Sortie : scalaire. Même type que l'entrée.
133
<refsection id="Dialogbox_BITSET">
134
<title>Boîte de dialogue</title>
138
<imagedata align="center" fileref="../../../gui/integer_pal/fr_FR/BITSET_gui.png"/>
146
<emphasis role="bold">Data Type (3:int32, 4:int16, 5:int8, ...)</emphasis>
149
Indique le type entier des données en entrée (sortie) : entre 3 et 8.
151
<para>Propriétés : Type 'vec' de taille 1.</para>
155
<emphasis role="bold">Index of Bit (0 is least significant)</emphasis>
158
Indique le bit à mettre à 1. L'indice doit être, quand le type est :
163
int32 or uint32 : positif et inférieur à 32.
168
int16 or uint16 : positif et inférieur à 16.
173
int8 or uint8 : positif et inférieur à 8.
177
<para>Propriétés : Type 'vec' de taille 1.</para>
181
<refsection id="Defaultproperties_BITSET">
182
<title>Propriétés par défaut</title>
186
<emphasis role="bold">always active:</emphasis> non
191
<emphasis role="bold">direct-feedthrough:</emphasis> oui
196
<emphasis role="bold">zero-crossing:</emphasis> non
201
<emphasis role="bold">mode:</emphasis> non
206
<emphasis role="bold">regular inputs:</emphasis>
209
<emphasis role="bold">- port 1 : size [1,1] / type 3</emphasis>
214
<emphasis role="bold">regular outputs:</emphasis>
217
<emphasis role="bold">- port 1 : size [1,1] / type 3</emphasis>
222
<emphasis role="bold">number/sizes of activation inputs:</emphasis> 0
227
<emphasis role="bold">number/sizes of activation outputs:</emphasis> 0
232
<emphasis role="bold">continuous-time state:</emphasis> non
237
<emphasis role="bold">discrete-time state:</emphasis> non
242
<emphasis role="bold">object discrete-time state:</emphasis> non
247
<emphasis role="bold">name of computational function:</emphasis>
248
<emphasis role="italic">bit_set_32</emphasis>
253
<refsection id="Example_BITSET">
254
<title>Exemple</title>
256
Ci-dessous un cas simple d'utilisation du bloc.
257
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/BITSET_fr_FR.xcos">
258
Ouvrir cet exemple dans Xcos
264
<imagedata align="center" fileref="../../../examples/integer_pal/fr_FR/bitset_diagram_fr_FR.png"/>
268
<refsection id="Interfacingfunction_BITSET">
269
<title>Fonction d'interfaçage</title>
273
<link type="scilab" linkend="scilab.scinotes/scicos_blocks/macros/IntegerOp/BITSET.sci">SCI/modules/scicos_blocks/macros/IntegerOp/BITSET.sci</link>
278
<refsection id="Computationalfunction_BITSET">
279
<title>Fonctions de calcul</title>
282
<para>SCI/modules/scicos_blocks/src/c/bit_set_32.c</para>
285
<para>SCI/modules/scicos_blocks/src/c/bit_set_16.c</para>
288
<para>SCI/modules/scicos_blocks/src/c/bit_set_8.c</para>
292
<refsection role="see also" id="Seealso_BITSET">
293
<title>Voir aussi</title>
296
<link linkend="BITCLEAR">BITCLEAR</link>
299
<link linkend="EXTRACTBITS">EXTRACTBITS</link>
302
<link linkend="LOGICAL_OP">LOGICAL_OP</link>