--
-- Component : tag_comparator
--
-- Generated by System Architect version v8.5_2.2 by w-hong on May 02, 97
--
-- sensitivity_attr :: 'transaction
-- Source views :-
-- $ECE_312_MP3/mips_types/types
--

ARCHITECTURE spec OF tag_comparator IS

	signal pre_hit : std_logic;
	signal pre_dirty : std_logic;
	signal pre_valid : std_logic;

BEGIN

   -------------------------------------------------------------------
   vhdl_tag_comparator : PROCESS (Addr_Tag, CacheTag, CacheValid, CacheDirty)
   -------------------------------------------------------------------
   BEGIN

        If (Addr_Tag = CacheTag) and (CacheValid = '1') then
                pre_hit <= '1';
                pre_dirty <= CacheDirty;
                pre_valid <= CacheValid;
        else
                pre_hit <= '0';
                pre_dirty <= CacheDirty;
                pre_valid <= CacheValid;
        end if;

   END PROCESS vhdl_tag_comparator ;

   CacheHit <= pre_hit after 2 ns;
   DirtyBit <= pre_dirty after 2 ns;
   ValidBit <= pre_valid after 2 ns;
END spec ;