
18.30 Digital Systems: Principles and Design
; -- n is the number of elements in outputs A in
DeMUXnto1
; -- m is the number of elements in Y_Select
entity DeMUX_2to1 is
generic (n: Natural: = 2)
generic (m: Natural: = 1, m:Natural: = 1);
generic (k: Natural: = 1, k:Natural: = 1);
port (Y0: out Std_Logic_Vector (n − 1 downto 0);
Y1: out Std_Logic_Vector (n − 1 downto 0);
Select_out: in Std_Logic_Vector (m − 1 downto 0); -- m = 1 for
two output logic vectors
A: in Std_Logic_Vector (k − 1 downto 0);
end DeMUX_2to1;
architecture RTLDeMUX_2to1 of DeMUX_2to1 is
begin
Process (Y0, Y1, A, Select_out)
begin
If (Select_out = “0”) then Y0: =