You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Resumo de elementos primitivos<br />
Exercício<br />
– <strong>VHDL</strong> é uma linguagem fortemente tipada<br />
Qual/quais das linhas abaixo é/são incorreta/s? Justifique a resposta.<br />
– Escalares são do tipo:<br />
bit, boolean, real, integer, physical, character.<br />
– Há a possibilidade de se declarar novos tipos: enumeração e record<br />
– Objetos podem ser constantes, variáveis e sinais<br />
– Expressões são fórmulas cujos operadores devem ser exatamente<br />
do mesmo tipo<br />
variable A, B, C, D : std_logic_vector (3 downto 0);<br />
variable E,F,G : std_logic_vector (1 downto 0);<br />
variable H,I,J,K : std_logic;<br />
[ ] A := B xor C and D ;<br />
[ ] H := I and J or K;<br />
[ ] A := B and E;<br />
[ ] H := I or F;<br />
Professor Fernando Moraes / Ney Calazans<br />
53<br />
Professor Fernando Moraes / Ney Calazans<br />
54<br />
Exercício<br />
Instalação do simulador<br />
Quais linhas abaixo estão incorretas?<br />
signal c_bus : std_logic_vector (0 to 3);<br />
signal a_bus, b_bus, z_bus : std_logic_vector (3 downto 0);<br />
signal a_bit, b_bit, c_bit, d : std_logic;<br />
signal byte : std_logic_vector (7 downto 0);<br />
type t_int_array is array (0 to 3) of integer;<br />
signal int_array : t_int_array ;<br />
…<br />
byte ‘1’);<br />
z_bus