hw4sol - C -302-70 Solutions to HW #4 Q1.(a) _____________...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: C -302-70 Solutions to HW #4 Q1.(a) _____________ | | _________| |_____________ 0 10 25 40 Waveform repeats every 40 ns. (b) _____________ | | _________| |_____________ 0 10 20 35 Waveform repeats every 35 ns. Q2. process wait until clk='1' and clk'event; code end process; Q3. entity encoder is port(X:in std_logic_vector(3 downto 0); en: in std_logic; Y: out std_logic_vector(1 downto 0)); end encoder; architecture behav of encoder is begin process(X,en) begin if en='0' then case X is when "0001" => Y <= "00"; when "0010" => Y <= "01"; when "0100" => Y <= "10"; when "1000" => Y <= "11"; when others => Y <= "UU"; end case; end if; end process; end behav; ...
View Full Document

Page1 / 2

hw4sol - C -302-70 Solutions to HW #4 Q1.(a) _____________...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online