74x139 Using with – select statement in data flow
model
library IEEE;
use IEEE.std_logic_1164.all;
entity dec74x139 is
port ( G_L: in STD_LOGIC;
A, B: in STD_LOGIC;
Y0_L, Y1_L, Y2_L,
Y3_L: out STD_LOGIC);
end dec74x139;
architecture arch3 of dec74x139 is
begin
with G_L & A & B
select
Y0_L
<= ‘0’ when “000”,
‘1’ when others;
with G_L & A & B select
Y1_L
<= ‘0’ when “001”,
‘1’ when others;
with G_L & A & B
select
Y2_L
<= ‘0’ when “010”,
‘1’ when others;
with G_L & A & B
select
Y3_L
<= ‘0’ when “011”,
‘1’ when others;
end arch3;
No comments:
Post a Comment