------------------------------------------------------------------------------- -- CSE 471 Project #5 ; 8-bit Microcontroller Design -- Section : 2 -- Designer : Meghan Hoke -- Date : 11/15/2001 -- File : flipflop.vhd -- Description : 8 bit Negative Edge Triggered Flip Flop ------------------------------------------------------------------------------- library IEEE; use IEEE.std_logic_1164.all; entity flipflop is port (d : in std_logic_vector(7 downto 0); w : in std_logic; q : out std_logic_vector(7 downto 0)); end flipflop; architecture struc of flipflop is component dlatch port (d : in std_logic_vector(7 downto 0); write : in std_logic; q : out std_logic_vector(7 downto 0)); end component; for all: dlatch use entity work.dlatch(struc); signal wnot : std_logic; signal s : std_logic_vector(7 downto 0); begin -- struc wnot <= not w after 10 ns; d1: dlatch port map (d, w, s); d2: dlatch port map (s, wnot, q); end struc;