-- Copyright © 1993 by McGraw-Hill, Inc. and Zainalabedin Navabi
-- FIGURE 7.33
-- ENTITY DECLERATION OF TEST BENCH FOR n-to-1 MULTIPLEXER :
USE WORK.basic_utilities.ALL;
ENTITY mux_tester IS
END mux_tester;
--
-- TEST BENCH FOR GUARDED ASSIGNMENTS ARCHITECTURE OF n-to-1 MULTIPLEXER :
ARCHITECTURE input_output OF mux_tester IS
COMPONENT mux PORT (i, s : IN qit_vector; z : OUT wired_qit BUS);
END COMPONENT;
FOR ALL : mux USE ENTITY WORK.mux_n_to_1 (multiple_guarded_assignments);
SIGNAL ii, ss : qit_vector (3 DOWNTO 0) := "0000";
SIGNAL zz : qit;
BEGIN
ii <= "1010" AFTER 10 US, "Z100" AFTER 20 US, "0011" AFTER 30 US;
ss <= "0010" AFTER 05 US, "1100" AFTER 15 US, "000Z" AFTER 25 US;
mm : mux PORT MAP (ii, ss, zz);
END input_output;
--