Iibrary Use Entity Is Port in Downto Out Downto End Architecture of Is Begin y
Iibrary Use Entity Is Port in Downto Out Downto End Architecture of Is Begin y
Use
IEEE;
Entity
bcd_to_c2421
Port
(x :
out
in
is
std_logic_vector
std_logic_vector
(3 downto 0) ;
(3 downto
0} ) ;
end bcd_to_c2421 ;
architecture
behaviorall
of bcd_to_c2421
begin
y <= 0000
when
x = 0000
else
0001
when
x = 0001
else
0010
when
x = 0001
else
0011
when
x = 0010
else
0100
when
x = 0011
else
1011
when
x = 0100
else
1100
when
x = 0100
else
1101
when
x = 1011
else
1110
when
x = 1100
is
else
1111
else
----
when
;
end behaviourall ;
x = 1101