Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Circuits!

Author
Message
bitJericho
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 5th Oct 2012 17:18 Edited at: 5th Oct 2012 18:57
Hackernews just had a posting about this really fun circuit builder!

Check mine out, I built a stop light with a pedestrian countdown timer:

http://www.neuroproductions.be/logic-lab/index.php?id=9342

Here's a countdown/countup timer:

http://www.neuroproductions.be/logic-lab/index.php?id=9360

Visit my blog http://www.canales.me. Also yes I changed my name. It was time for a change.
Diggsey
19
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 5th Oct 2012 20:29
bitJericho
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 8th Oct 2012 14:46 Edited at: 8th Oct 2012 14:47
Awesome! I tried my hand at it but couldn't find any references easy enough to follow, and I'm no electronics engineer so the schematics did not make much sense to me!

What I wanted to do was create 2 sets of bytes and add the two together and display the result on a binary LED in the middle.

Visit my blog http://www.canales.me. Also yes I changed my name. It was time for a change.
Diggsey
19
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 8th Oct 2012 16:55 Edited at: 8th Oct 2012 16:56
There's not really enough space to make an 8-bit adder (download logisim, it is far more awesome You can make entire CPUs with it, and then you can make an assembler for your CPU, and then you can run programs on it, and all at a decent speed.)

Making an adder is really not that hard, you don't need to follow any electrical schematics, you just do it the same way you add numbers by hand.

For example, to calculate 0011 + 1010 you sum the bits from least significant to most significant carrying a 1 when necessary.

To calculate a single bit, you have three inputs: A (the bit from the first number), B (the bit from the second number) and C (the carry bit from the previous stage).

From these you need to calculate two outputs: D (the result bit) and E (the carry bit for the next stage).

From these you can write down the truth table:
A B C | D E
===========
0 0 0 | 0 0
0 0 1 | 1 0
0 1 0 | 1 0
0 1 1 | 0 1 <= (B AND C)
1 0 0 | 1 0
1 0 1 | 0 1 \
1 1 0 | 0 1 > A AND (B OR C)
1 1 1 | 1 1 /

From this you can see that D is simply the XOR of the inputs. (ie. if there are an odd number of 1s the result digit will also be a 1)

Finding E is a bit more complicated, but you can see if you look at which rows produce 1 for E that it's 1 when either B AND C are 1, OR when A is 1 AND either B OR C is 1.

So:
D = A xor B xor C
E = (B and C) or (A and (B or C))

You then repeat this set of logic gates for each pair of input bits feeding the carry out from the previous stage into the carry in for the next stage.
For the first stage, the carry in will always be zero, so you can simplify the circuit a bit, and for the last stage there's no need to calculate the carry out unless you want to check for an overflow.

[b]
bitJericho
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 8th Oct 2012 18:48 Edited at: 8th Oct 2012 18:51
Ohh I'm going to have to read this a few times. Thanks!

Quote: "There's not really enough space to make an 8-bit adder (download logisim, it is far more awesome You can make entire CPUs with it, and then you can make an assembler for your CPU, and then you can run programs on it, and all at a decent speed.)"


Actually this toy program inspired me to make a more advanced version (though not hardcore electronics sim, but somewhere in between this and the real thing. I'll post about it if/when I finish it.

Visit my blog http://www.canales.me. Also yes I changed my name. It was time for a change.
mikesrs
12
Years of Service
User Offline
Joined: 14th Nov 2012
Location:
Posted: 15th Nov 2012 23:25 Edited at: 31st Jan 2013 20:19
Nice link you got there. You can do many logic circuit there and many can do simulation and try their idea to build more unique circuits in logic gates! two thumbs up!!


PCB manufacturer
mr Handy
17
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 27th Nov 2012 21:39
@bitJericho
You're like bit Takeshi?
bitJericho
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 27th Nov 2012 23:51
I don't follow...

Visit my blog http://www.canales.me.

Login to post a reply

Server time is: 2025-05-11 17:20:40
Your offset time is: 2025-05-11 17:20:40