Line 24... |
Line 24... |
Port ( A : in STD_LOGIC_VECTOR (n downto 0); --! First Input
|
Port ( A : in STD_LOGIC_VECTOR (n downto 0); --! First Input
|
B : in STD_LOGIC_VECTOR (n downto 0); --! Second Input
|
B : in STD_LOGIC_VECTOR (n downto 0); --! Second Input
|
C : in STD_LOGIC_VECTOR (n downto 0); --! Third Input
|
C : in STD_LOGIC_VECTOR (n downto 0); --! Third Input
|
D : in STD_LOGIC_VECTOR (n downto 0); --! Forth Input
|
D : in STD_LOGIC_VECTOR (n downto 0); --! Forth Input
|
E : in STD_LOGIC_VECTOR (n downto 0); --! Fifth Input
|
E : in STD_LOGIC_VECTOR (n downto 0); --! Fifth Input
|
sel : in STD_LOGIC_VECTOR (2 downto 0); --! Select inputs (1, 2, 3, 4, 5)
|
sel : in dpMuxInputs; --! Select inputs (1, 2, 3, 4, 5)
|
S : out STD_LOGIC_VECTOR (n downto 0)); --! Mux Output
|
S : out STD_LOGIC_VECTOR (n downto 0)); --! Mux Output
|
END COMPONENT;
|
END COMPONENT;
|
|
|
|
|
--Inputs
|
--Inputs
|
signal A : std_logic_vector((nBits - 1) downto 0) := (others => '0'); --! Wire to connect Test signal to component
|
signal A : std_logic_vector((nBits - 1) downto 0) := (others => '0'); --! Wire to connect Test signal to component
|
signal B : std_logic_vector((nBits - 1) downto 0) := (others => '0'); --! Wire to connect Test signal to component
|
signal B : std_logic_vector((nBits - 1) downto 0) := (others => '0'); --! Wire to connect Test signal to component
|
signal C : std_logic_vector((nBits - 1) downto 0) := (others => '0'); --! Wire to connect Test signal to component
|
signal C : std_logic_vector((nBits - 1) downto 0) := (others => '0'); --! Wire to connect Test signal to component
|
signal D : std_logic_vector((nBits - 1) downto 0) := (others => '0'); --! Wire to connect Test signal to component
|
signal D : std_logic_vector((nBits - 1) downto 0) := (others => '0'); --! Wire to connect Test signal to component
|
signal E : std_logic_vector((nBits - 1) downto 0) := (others => '0'); --! Wire to connect Test signal to component
|
signal E : std_logic_vector((nBits - 1) downto 0) := (others => '0'); --! Wire to connect Test signal to component
|
signal sel : STD_LOGIC_VECTOR (2 downto 0) := "000"; --! Wire to connect Test signal to component
|
signal sel : dpMuxInputs := fromMemory; --! Wire to connect Test signal to component
|
|
|
--Outputs
|
--Outputs
|
signal S : std_logic_vector((nBits - 1) downto 0); --! Wire to connect Test signal to component
|
signal S : std_logic_vector((nBits - 1) downto 0); --! Wire to connect Test signal to component
|
|
|
BEGIN
|
BEGIN
|
Line 59... |
Line 59... |
stim_proc: process
|
stim_proc: process
|
begin
|
begin
|
-- Sel 0 ---------------------------------------------------------------------------
|
-- Sel 0 ---------------------------------------------------------------------------
|
wait for 1 ps;
|
wait for 1 ps;
|
REPORT "Select first channel" SEVERITY NOTE;
|
REPORT "Select first channel" SEVERITY NOTE;
|
sel <= "000";
|
sel <= fromMemory;
|
A <= conv_std_logic_vector(0, nBits);
|
A <= conv_std_logic_vector(0, nBits);
|
B <= conv_std_logic_vector(1000, nBits);
|
B <= conv_std_logic_vector(1000, nBits);
|
C <= conv_std_logic_vector(2000, nBits);
|
C <= conv_std_logic_vector(2000, nBits);
|
D <= conv_std_logic_vector(3000, nBits);
|
D <= conv_std_logic_vector(3000, nBits);
|
E <= conv_std_logic_vector(4000, nBits);
|
E <= conv_std_logic_vector(4000, nBits);
|
Line 71... |
Line 71... |
assert S = (A) report "Could not select first channel" severity FAILURE;
|
assert S = (A) report "Could not select first channel" severity FAILURE;
|
|
|
-- Sel 1 ---------------------------------------------------------------------------
|
-- Sel 1 ---------------------------------------------------------------------------
|
wait for 1 ns;
|
wait for 1 ns;
|
REPORT "Select second channel" SEVERITY NOTE;
|
REPORT "Select second channel" SEVERITY NOTE;
|
sel <= "001";
|
sel <= fromImediate;
|
A <= conv_std_logic_vector(0, nBits);
|
A <= conv_std_logic_vector(0, nBits);
|
B <= conv_std_logic_vector(1000, nBits);
|
B <= conv_std_logic_vector(1000, nBits);
|
C <= conv_std_logic_vector(2000, nBits);
|
C <= conv_std_logic_vector(2000, nBits);
|
D <= conv_std_logic_vector(3000, nBits);
|
D <= conv_std_logic_vector(3000, nBits);
|
E <= conv_std_logic_vector(4000, nBits);
|
E <= conv_std_logic_vector(4000, nBits);
|
Line 83... |
Line 83... |
assert S = (B) report "Could not select second channel" severity FAILURE;
|
assert S = (B) report "Could not select second channel" severity FAILURE;
|
|
|
-- Sel 2 ---------------------------------------------------------------------------
|
-- Sel 2 ---------------------------------------------------------------------------
|
wait for 1 ns;
|
wait for 1 ns;
|
REPORT "Select third channel" SEVERITY NOTE;
|
REPORT "Select third channel" SEVERITY NOTE;
|
sel <= "010";
|
sel <= fromRegFileA;
|
A <= conv_std_logic_vector(0, nBits);
|
A <= conv_std_logic_vector(0, nBits);
|
B <= conv_std_logic_vector(1000, nBits);
|
B <= conv_std_logic_vector(1000, nBits);
|
C <= conv_std_logic_vector(2000, nBits);
|
C <= conv_std_logic_vector(2000, nBits);
|
D <= conv_std_logic_vector(3000, nBits);
|
D <= conv_std_logic_vector(3000, nBits);
|
E <= conv_std_logic_vector(4000, nBits);
|
E <= conv_std_logic_vector(4000, nBits);
|
Line 95... |
Line 95... |
assert S = (C) report "Could not select third channel" severity FAILURE;
|
assert S = (C) report "Could not select third channel" severity FAILURE;
|
|
|
-- Sel 3 ---------------------------------------------------------------------------
|
-- Sel 3 ---------------------------------------------------------------------------
|
wait for 1 ns;
|
wait for 1 ns;
|
REPORT "Select forth channel" SEVERITY NOTE;
|
REPORT "Select forth channel" SEVERITY NOTE;
|
sel <= "011";
|
sel <= fromRegFileB;
|
A <= conv_std_logic_vector(0, nBits);
|
A <= conv_std_logic_vector(0, nBits);
|
B <= conv_std_logic_vector(1000, nBits);
|
B <= conv_std_logic_vector(1000, nBits);
|
C <= conv_std_logic_vector(2000, nBits);
|
C <= conv_std_logic_vector(2000, nBits);
|
D <= conv_std_logic_vector(3000, nBits);
|
D <= conv_std_logic_vector(3000, nBits);
|
E <= conv_std_logic_vector(4000, nBits);
|
E <= conv_std_logic_vector(4000, nBits);
|
Line 107... |
Line 107... |
assert S = (D) report "Could not select forth channel" severity FAILURE;
|
assert S = (D) report "Could not select forth channel" severity FAILURE;
|
|
|
-- Sel 4 ---------------------------------------------------------------------------
|
-- Sel 4 ---------------------------------------------------------------------------
|
wait for 1 ns;
|
wait for 1 ns;
|
REPORT "Select fifth channel" SEVERITY NOTE;
|
REPORT "Select fifth channel" SEVERITY NOTE;
|
sel <= "100";
|
sel <= fromAlu;
|
A <= conv_std_logic_vector(0, nBits);
|
A <= conv_std_logic_vector(0, nBits);
|
B <= conv_std_logic_vector(1000, nBits);
|
B <= conv_std_logic_vector(1000, nBits);
|
C <= conv_std_logic_vector(2000, nBits);
|
C <= conv_std_logic_vector(2000, nBits);
|
D <= conv_std_logic_vector(3000, nBits);
|
D <= conv_std_logic_vector(3000, nBits);
|
E <= conv_std_logic_vector(4000, nBits);
|
E <= conv_std_logic_vector(4000, nBits);
|