This adder is made from 5 of the little adders in the last page. It can add a pair of numbers each between 0 and 31 and produce a result between 0 and 62. The inputs are the two boxes on the left. The number in the upper box is added to the number in the lower box and the result is displayed on the far right. Use the up and down arrows to change the numbers. You can only add numbers up to 31, since only 5 wires are hooked up: 11111 binary is 31 decimal.
If you stare at that long enough, you might start to see the paterns of how the logic works. You can go back to the simple full adder to see what is inside each box.
Digital logic math, we only have so many wires. When the total is more than the number of wires available, we call that an "overflow". In the circuit on this page, the overflow is just put into the display, so we can have a total which is more than the maximum input. 31+31=62.
Remember: It's all done with NANDs!
Subtracting is NOT Adding (plus a bit)!
Or skip the math, and watch the 2 bit to 4 line active low decoder puts things in order.
It should be easy to see how we could add more adders to build a circuit that would add 6, 7, 8 or more bit numbers together. Most computers today can add 32 bit numbers in a single operation; they have 32 bit adders. A 32 bit number can have a value between 0 and 4,294,967,296 (about 4 billion).
|file: /Techref/logic/add5.htm, 3KB, , updated: 2013/5/8 15:17, local time: 2018/1/19 02:11,
|©2018 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.piclist.com/techref/logic/add5.htm"> Digital Logic Tutorial, Binary Adder</A>
|Did you find what you needed?|
PICList 2018 contributors:
o List host: MIT, Site host massmind.org, Top posters @20180119 David C Brown, Isaac M. Bavaresco, Manu Abraham, RussellMc, Van Horn, David, Harold Hallikainen, James Cameron, Sean Breheny, Dwayne Reid, John Gardner,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!