Altera_Forum
Honored Contributor
15 years agoHow can I design a 2 BIT ADDER using AHDL
Hi all I am having difficulty designing this circuit using AHDL. I have the truth table and the actual circuit built, I just do not know where to begin on writing the actual tdf code. I am using 3 XORs, 3 ANDs, & 1 OR gate. I don't know how to post my truth table, but I can tell you that I need to design a 2-bit binary adder using AHDL. The circuit should add the 2-bit numbers labeled A2 A1 and B2 B1 to produce the 3-bit sum S3 S2 S1.
I know using a full adder would work better but I have to see if this will work first. Would I still begin this tdf as if it was a full adder and use bit arrays or what would I do?