Created
April 13, 2014 01:12
-
-
Save davilamds/10564425 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library IEEE; | |
use IEEE.STD_LOGIC_1164.ALL; | |
entity comparadorvhdl is | |
Port ( eq : out STD_LOGIC; | |
A : in STD_LOGIC; | |
B : in STD_LOGIC); | |
end comparadorvhdl; | |
architecture sop_arch of comparadorvhdl is | |
signal p0, p1: std_logic; | |
begin | |
eq<=p0 or p1; | |
p0<=(not A) and (not B); | |
p1<=A and B; | |
end sop_arch; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment