Solved

Connecting a 4-bit adder to a 1-bit adder

Posted on 2004-03-21
12
984 Views
Last Modified: 2008-02-01
How do you connect a 1-bit full adder (designed with 9 NAND gates) to a 7483 (4-bit adder)?

I'm having problems with it working 100 percent.

1. Built the 1-bit adder (A,B,Cin); (S,Cout) , tested with the truth table; worked flawlessly.

2. Connected the 7483, making the 1-bit adder the higher-order bit.  I grounded the Cin of the 7483, connected the Cout to the Cin of the 1-bit adder, connected the all Sums to leds, and A&B's to switches.

Some sums are incorrect:

(10011)+(10111)  does not = 1  01010
or
(11111)+(11111) does not = 1 11110

What could I do to make this 5-bit adder work?
0
Comment
Question by:940775
  • 4
  • 4
  • 2
  • +1
12 Comments
 
LVL 1

Expert Comment

by:LeoTer
Comment Utility
First of all, the cirquit would be simpler and less wasteful if you would build a 1-bit *half* adder from nand ports, and make it the lower order bit. The problem might even vanish...
On the other hand, I can't spot any error in your explanation. Are you 100% sure there's no error in the truth table of the full adder?
The bottom line: I think there's no way of telling what the problem is, if you provide the correct sums and not the incorrect output ;-)
0
 

Author Comment

by:940775
Comment Utility
The instructions  stated a 1-bit adder as the higher.

Truth table
a  b  cin     s   cout
0  0   0       0     0
0  0   1       1     0
0  1   0       1     0
0  1   1       0     1
1  0   0       1     0
1  0   1       0     1
1  1   0       0     1
1  1   1       1     1

0
 
LVL 27

Expert Comment

by:BigRat
Comment Utility
Could you post the values which are incorrect?
0
 

Author Comment

by:940775
Comment Utility
BigRat,
The two that would not work for me is listed above.  Since then I was able to get one of them to work ( 11111 + 11111 = 1  11110).

I may have had the 4-bit SUMs LEDs reversed. I "HAD" them in this order (from L to R):

Cout, S(1-bit), S1, S2, S3, S4(4-bit)

"Now":

Cout, S(1-bit), S4, S3, S2, S1(4-bit)

The only one not working for me is (10011 + 10111).    The ans should equal 1  01010, but I'm getting  1  11010



0
 
LVL 27

Expert Comment

by:BigRat
Comment Utility
Either you have a permanent "1" or some wire is wrong.

I'd suggest you do the zero test. Set input A to all zeros and see if the LEDs display input B.
Then reverse the process, B zero test A.
Then add 1 to input A (making a 00001) and test each value of B.
Then set A to 2 and retest
Then set A to 4 and retest
Then set A to 8 and retest.

HTH
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:940775
Comment Utility
I got it.

What I did wrong was in the switch set up.  I" had" the switches set:

a1-bit, a1, a2, a3, a4        which is wrong

The correct way:

a1-bit, a4, a3, a2, a1        in which a4 is the most significant bit of the 4-bit adder.
0
 
LVL 1

Expert Comment

by:LeoTer
Comment Utility
"The instructions stated a 1-bit adder as the higher"
Smells like homework to me, but ok, you seem to have found the solution yourself ;)
0
 

Author Comment

by:940775
Comment Utility
yes, the 1-bit is the highest of all the bits, but when they (1-bit & 4-bit) are cascaded the higher order of the 4-bit is a4 (3,2,1). I had a1(2,3,4).

My graded switch setting:

a1(1-bit) , a4, a3, a2, a1(4-bit)        b1(1-bit), b4, b3, b2, b1(4-bit)

LEDs

Cout, S1 (1-bit) , S4, S3, S2, S1(4-bit)
0
 
LVL 27

Expert Comment

by:BigRat
Comment Utility
I wonder how you did all of this which resulted in such problems.

A very long time ago I did my Computer Science practical in hardware.
First we made a schematic diagram, showing the logic which was to be constructed.
Second we made a hardware schematic showing the physical construction.
Third we made a construction schema, showing in which order (like Swedish furniture) the parts were to be assembled.
And lastly we made a "string list". This was a list which said, connect a wire from a to b and so on.

Only after we had done all this paper work and checked it were we allowed to start construction. In fact one of us did the construction, the other checked what was done. (My lab partner is now a senior IBMer in Kingston NY).

When I worked for a computer manufacturer I was not allowed to do the construction - only the paperwork. That's why I changed to Software. You can spend many happy hours debugging the crap you wrote if you don't start off in a disciplined manner.
0
 
LVL 27

Expert Comment

by:BigRat
Comment Utility
Since I put some work in, no refund of points.
0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
Comment Utility
PAQed, with points refunded (250)

ee_ai_construct - (re-order part number #xm34)
Community Support Moderator
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

A Guide to the PMT, FV, IPMT and PPMT Functions In MS Excel we have the PMT, FV, IPMT and PPMT functions, which do a fantastic job for interest rate calculations.  But what if you don't have Excel ? This article is for programmers looking to re…
Complex Numbers are funny things.  Many people have a basic understanding of them, some a more advanced.  The confusion usually arises when that pesky i (or j for Electrical Engineers) appears and understanding the meaning of a square root of a nega…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now