Monday, 9 May 2016

Detect the number " 100 " when enable is high



library IEEE;
use IEEE.STD_LOGIC_1164.ALL;

entity detect100 is
    Port ( a,b,c,enable : in  STD_LOGIC;
           y : out  STD_LOGIC);
end detect100;

architecture Dataflow of detect100 is

begin
y<=(not a) or (not b) or c or enable;

end Dataflow;

No comments:

Post a Comment