

































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to the basic concepts of sequential design in vhdl, focusing on processes, if statements, and loops. It covers the execution order of statements, the use of labels, and the importance of static variables. The document also includes examples of single bit and 4-bit comparators, as well as tips for programming using case statements and avoiding complex if-else structures.
Typology: Slides
1 / 41
This page cannot be seen from the preview
Don't miss anything!


































gr: a(1) >a(0) sm: a(1) <a(0) eq: a(1)=a(0)
library ieee; use ieee.std_logic_1164.all; entity mux4_1_if is port (a: in std_logic_vector(3 downto 0); s: in std_logic_vector(1 downto 0); y: out std_logic ); end mux4_1_if; architecture mux_behave of mux4_1_if is begin process (s) begin if s = "00" then y <= a(0); elsif s = "01" then y <= a(1); elsif s = "10" then y <= a(2); else y <= a(3); end if; end process; end mux_behave;