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

De MediaWiki do Campus São José
Ir para navegação Ir para pesquisar
 
Linha 8: Linha 8:
 
subtype pcm_channel is integer range 31 downto 0;
 
subtype pcm_channel is integer range 31 downto 0;
 
</syntaxhighlight>
 
</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;