International Electronics and Technology Forum
May 17, 2012, 03:51:52 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Combine logic gates to make a basic calculator?  (Read 423 times)
Drew
Newbie
*
Posts: 9


« on: July 19, 2011, 12:10:40 AM »

I'm trying to learn how logic gates interact to create a calculator as we know it. Obviously in real scale, it's too small to observe, so I need some reference material. What I want to know is how I can take the binary equivalent of 2(which is 10), add 2 more, and get an output of the binary equivalent of 4(which is 100), only using logic gates? I understand the symbols, and such, I just don't understand how they combine. My plan is to simply draw it out, then simulate it on the computer, and finally implement in real life. Obviously, I won't be creating the most powerful super computer. But I'd like to just get a simple 8-bit ALU, that can add and subtract single digit numbers. I plan to keep it as simple as possible. Just using some loose wires as the binary input, and LEDs as the binary output. I can take care of the rest, like converting the LED signal into a 7-segment display, and such. But I need some reference material, or possibly even a direct schematic I can just study. And before anyone says it, I already did LOTS of Googling...
Logged
Matt_D
Newbie
*
Posts: 2


« Reply #1 on: July 19, 2011, 12:25:27 AM »

Go look at the wikipedia page for "Adder (electronics)".  There's a schematic for a full adder, and you can chain them together to get as many bits as you want.

But a great place to start would be by downloading a game called "Gate", at One Girl, One Laptop Productions, which will let you drive robots using logic gates to solve puzzles.

There's also an ancient game called Robot Odyssey, with a modern port called Droidquest.  Same idea as gate, but more of a full adventure game.
Logged
GibsonEssGee
Newbie
*
Posts: 121


« Reply #2 on: July 19, 2011, 01:26:28 AM »

Use a pair of 74181 4-bit ALU chips http://www.datasheetcatalog.org/datasheets/560/493318_DS.pdf

There were Raytheon minicomputers in the late 70's that used to use 4 x 74181 as the heart of the 16-bit CPU using a 25MHz clock speed and a RISC instruction set of 31 instructions.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC | Privacy Policy Valid XHTML 1.0! Valid CSS!