EEVblog Electronics Community Forum

General => General Technical Chat => Topic started by: PauloConstantino on June 07, 2017, 08:35:50 am

Title: 8bit homemade CPU out of 74HC logic chips.
Post by: PauloConstantino on June 07, 2017, 08:35:50 am
Hi, I just wanted to share a video of an 8bit CPU that I have built out of 74HC logic IC's.

It pretty much does anything a professional cpu does, just in a more limited and slower way. It's built on breadboards with jumper wires and it works like a charm :)

Here's a video. Schematics are available if you're interested.  Schematics attached!

https://www.youtube.com/watch?v=017jg0eoO_A (https://www.youtube.com/watch?v=017jg0eoO_A)



Title: Re: 8bit homemade CPU out of 74HC logic chips.
Post by: The Soulman on June 07, 2017, 08:49:48 am
 :-+

How many jumper wires?
Title: Re: 8bit homemade CPU out of 74HC logic chips.
Post by: PauloConstantino on June 07, 2017, 08:56:26 am
Didn't count! Probably 500
Title: Re: 8bit homemade CPU out of 74HC logic chips.
Post by: cgroen on June 07, 2017, 09:58:24 am
Very nice, and well done keeping track of all the jumper wires  :-+
Please share the schematics, I'm sure other than me would love to see it :)
Title: Re: 8bit homemade CPU out of 74HC logic chips.
Post by: VK3DRB on June 07, 2017, 01:13:33 pm
Great job!

The breadboards is quite fragile though. Over time, you might get contact problems. You could put it all on a PCB. How far can you go? You could eliminate the 74S181 ALU's and replaced them with discrete logic chips. But replacing the RAM with discrete logic would be going to an extreme.

I have considered developing a digital clock using nothing but discrete logic chips. The logic gate outputs light discrete LEDs, so one can see exactly what is going on in the clock.
Title: Re: 8bit homemade CPU out of 74HC logic chips.
Post by: jwm_ on June 07, 2017, 02:47:38 pm
I've wanted to do something like this but use a sram as my alu, so it can switch out it's basic operations by rewriting the look up tables depending on what it's doing. Actually, a lot of logic can be replaced with ram lookup tables. Would make for a very reconfigurable CPU. 
Title: Re: 8bit homemade CPU out of 74HC logic chips.
Post by: PauloConstantino on June 07, 2017, 07:42:33 pm
I've wanted to do something like this but use a sram as my alu, so it can switch out it's basic operations by rewriting the look up tables depending on what it's doing. Actually, a lot of logic can be replaced with ram lookup tables. Would make for a very reconfigurable CPU.

Note that its not the alu that makes a cpu reconfigurable. Its the microcode and my cpu is totally reconfigurable via microcode changes. Its not ram but roms that are used to implement function tables. Also rom alus are slower.
Title: Re: 8bit homemade CPU out of 74HC logic chips.
Post by: PauloConstantino on June 07, 2017, 07:48:02 pm
Great job!

The breadboards is quite fragile though. Over time, you might get contact problems. You could put it all on a PCB. How far can you go? You could eliminate the 74S181 ALU's and replaced them with discrete logic chips. But replacing the RAM with discrete logic would be going to an extreme.

I have considered developing a digital clock using nothing but discrete logic chips. The logic gate outputs light discrete LEDs, so one can see exactly what is going on in the clock.

This computer is only a prototype. Not made to be permanent. Its impossible to make rams out of chips. They would be too slow. I advise you to do the clock because its a lot of fun!
Title: Re: 8bit homemade CPU out of 74HC logic chips.
Post by: chickenHeadKnob on June 08, 2017, 03:06:24 am
I've wanted to do something like this but use a sram as my alu, so it can switch out it's basic operations by rewriting the look up tables depending on what it's doing. Actually, a lot of logic can be replaced with ram lookup tables. Would make for a very reconfigurable CPU.

Note that its not the alu that makes a cpu reconfigurable. Its the microcode and my cpu is totally reconfigurable via microcode changes. Its not ram but roms that are used to implement function tables. Also rom alus are slower.

There was a time in the late 70's when cpu's with writable control stores were a popular thing in academic circles. Practically every example that I came across  that was completed to the running state was based around AMD2900 bit-slice components, which you still can buy. Like the 74181 the AMD2900 chip set was 4 bits wide for the alu and registerfile components. I used to dream about making my own custom machine but the exigencies of regular life and job used up all my time and enthusiasm. 
Title: Re: 8bit homemade CPU out of 74HC logic chips.
Post by: yada on June 08, 2017, 03:32:20 am
What does the blue wire next to the red one do? That's crazy.
Title: Re: 8bit homemade CPU out of 74HC logic chips.
Post by: PauloConstantino on June 08, 2017, 11:14:25 am
What does the blue wire next to the red one do? That's crazy.

We having a laugh? :D
Title: Re: 8bit homemade CPU out of 74HC logic chips.
Post by: amyk on June 08, 2017, 11:28:09 am
Next step, do it on a PCB. It'll make for some good practice.
Title: Re: 8bit homemade CPU out of 74HC logic chips.
Post by: jonovid on June 08, 2017, 11:36:16 am
why reinvent the wheel  ::) Wow! ...   because its fun & challenging,  :-+ :-+ go for it
Title: Re: 8bit homemade CPU out of 74HC logic chips.
Post by: PauloConstantino on June 08, 2017, 11:39:54 am
why reinvent the wheel  ::) Wow! ...   because its fun & challenging,  :-+ :-+ go for it

You got it Jono.