Mudanças entre as edições de "VHDL:subtype indication"
Ir para navegação
Ir para pesquisar
(Criou página com ';Syntax rule: ( type_mark [ '''range''' simple_expression ('''to''' | '''downto''') [[VDHL:simple_expression | simple_expressi...') |
|||
Linha 3: | Linha 3: | ||
;Examples: | ;Examples: | ||
− | + | <syntaxhighlight lang=vhdl> | |
+ | subtype small_int is integer range -128 to 127; | ||
− | + | subtype pcm_channel is integer range 31 downto 0; | |
+ | </syntaxhighlight> |
Edição das 16h30min de 18 de setembro de 2015
- Syntax rule
( type_mark [ range simple_expression (to | downto) simple_expression
- Examples
subtype small_int is integer range -128 to 127;
subtype pcm_channel is integer range 31 downto 0;