Mudanças entre as edições de "VHDL:subtype indication"

De MediaWiki do Campus São José
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...')
 
 
(Uma revisão intermediária pelo mesmo usuário não está sendo mostrada)
Linha 3: Linha 3:
  
 
;Examples:
 
;Examples:
'''subtype''' small_int '''is''' integer '''range''' -128 '''to''' 127;
+
<syntaxhighlight lang=vhdl>
 +
subtype small_int is integer range -128 to 127;
  
'''subtype''' pcm_channel '''is''' integer range 31 '''downto''' 0;
+
subtype pcm_channel is integer range 31 downto 0;
 +
</syntaxhighlight>
 +
 
 +
[[Categoria:VHDL]]

Edição atual tal como às 17h11min 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;