------------------------------------------------------------------------------- -- CSE 471 Project #5 ; 8-bit Microcontroller Design -- Section : 2 -- Designer : Meghan Hoke -- Date : 11/15/2001 -- File : mux1.vhd -- Description : 1-bit 2-to-1 multiplexer ------------------------------------------------------------------------------- library IEEE; use IEEE.std_logic_1164.all; entity mux1 is port (d0, d1 : in std_logic; s : in std_logic; z : out std_logic); end mux1; architecture struc of mux1 is signal sinv, s1, s2 : std_logic; begin sinv <= not s after 10 ns; s1 <= d1 nand s after 11 ns; s2 <= d0 nand sinv after 11 ns; z <= s1 nand s2 after 11 ns; end struc;