Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Beginer´s ERROR

Status
Not open for further replies.

subharb

Programmer
Jul 31, 2007
1
ES
Hello guys, im starting to learn VHDL programming, i have a manual, i´m using MODELSIM, and i write the code that appears in the manual but it finds an error!!, can u help me?
the code is:
entity adder is
port(a : in std_logic;
b : in std_logic;
cin : in std_logic;
sum : out std_logic;
cout : out std_logic);
end adder;

architecture rtl of adder is
begin
sum <= (a xor b) xor cin;
cout <= (a and b) or ((a xor b) and cin);
end rtl;

I can´t remember the error, but it´s a very simple code.

I hope u can help me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top