URL
https://opencores.org/ocsvn/idea/idea/trunk
Subversion Repositories idea
[/] [idea/] [trunk/] [behavioral/] [idea_machine/] [fulladder.vbe] - Rev 9
Compare with Previous | Blame | View Log
ENTITY fulladder IS
PORT (
a : in BIT;
b : in BIT;
cin : in BIT;
cout : out BIT;
sout : out BIT;
vdd : in BIT;
vss : in BIT
);
END fulladder ;
ARCHITECTURE behaviour_data_flow OF fulladder IS
BEGIN
ASSERT ((vdd and not (vss)) = '1')
REPORT "power supply is missing on fulladder"
SEVERITY WARNING;
cout <= (a and b) or ((a xor b) and cin);
sout <= (a xor b) xor cin;
END;