Inspired by the video series by Ben Eater, I am developing a set of printed circuit boards for the simple as possible computer.
To make the experience fit your profile, pick a username and tell us what interests you.
Schematics for the second of two boards for the SAP-1 project. Board two contains the following: Instruction Register, Timing and Control logic, Power and External Interface, Output Display, and Clock and Reset.
Adobe Portable Document Format - 288.33 kB - 01/01/2018 at 23:58
Board 1 Revision 1.0 Schematic Board 1 contains the following: Registers A and B, ALU and flags, Program Counter, Memory Address Register (MAR), and Memory
Adobe Portable Document Format - 226.35 kB - 07/21/2017 at 18:31
Sorry for the long delay since my last log entry. It's been way too long (2 years?). Life intervenes sometimes its own priorities.
I had and excellent question from someone who watched one of my videos and so I thought i would share it and my response:
"Just a question? Why would you go through the trouble of designing and have boards built for a learning designed for bread boards? Just courious. I like the video and will continue to follow. I am building the same thing on bread boards and plan on moving to the SAP-2 after."
"Hi Robert. Thank you for the question. It is a great question! I know, if you're building something for learning and need the flexibility of reworking circuits, etc... And, if you're going to at some point tear it apart and build something else, then bread boarding is a good way to go. I know that Ben Eater promotes bread boarding for learning, because you get to learn the workings of each isolated module and how they fit together as a whole. And, Ben sells the bread board kits which supports his ability to teach these concepts. He's a great educator and I've really enjoyed watching and learning from his videos.
My preference for designing and laying out circuit boards is to take this project in a different direction. For me, I don't totally trust bread boards for large circuits; I prefer soldered connections. As many people have successfully built these things, this is clearly a personal preference on my part. Also, in the process of building my own boards, I'v learned a few things that Ben doesn't cover. For instance, I've had issues with double clocking of my micro code sequencer and weird jitters with the ALU when a certain combination of adding occurs. I've had signal levels pulled down by the way Ben places LEDs on the outputs of the TTL circuitry to the point where the output signal is not read properly by the following input circuit. This is why I later added resistors and LED drivers. And, I think I've suffered from signal cross talk. I found a wonderful explanation of it from a man named Robert Baruch. He has several videos on the subject starting with:
Also, I thought if I were successful with this build, then I could frame it and hang it on the wall as geek art.
And, my end goal is to build a discreet component version of one of my favorite microprocessors from the old days. And so, I'm learning the pitfalls on a simpler machine before I move onto something more complicated.
As a result of these boards, which, by the way, I never got to work because of the aforementioned issues, I'm rethinking how I wish to proceed. Currently, I'm starting with more of a modular approach.... i.e. each register has it's own card that plugs into a back plane such that the LEDs are on the edge of the board. The ALU, for instance would be a self contained module with a back plane, ALU card and some register cards. Is this over kill? Perhaps. But, in the end, it's all about having fun, creating something fun and learning tons in the process. Sometimes I think I enjoy laying out boards (as a zen thing) more than I do with having them do something useful.
I hope this helps answer your question. There are many paths to electronic Nirvana and I wish you well and success on yours. "
My latest video can now be found on YouTube:
I have validated that the issues I was having with the zero detect circuit was caused by the logic levels being pulled down by the LEDS on the output of the ALU. I went ahead and replaced the LEDs with a small circuit board populated by an ULN2803 darlington transistor array to drive the LEDs. This solved that problem.
Otherwise, I have built the program counter and it works with no issues. The circuit for it is below.
Hello everyone. Thank you for visiting my project. I apologize for taking so long to get back to this project with updates. Hopefully, I can start getting videos and documentation uploaded here soon.
In the meantime, I uploaded the schematics for the board two into the files section. This should be helpful for people.
This next step involves building the ALU. The schematic is below.
Things of note that are not in Ben Eater's design include the 74HC4078 octal nor/or gate I use to detect a zero condition. Additionally, I added another 74ls173 quad latch to store the zero flag, the carry flag and the sign flag (goes to a one if the result is negative). These flags will be used later on when I need to do conditional jumping.
I did have issues with this build because of the forward voltage of the LEDs. In Ben Eater's design, the LEDs are wired directly from the logic outputs to ground without a current limiting resistor. You can get away with this in a lot of cases because most logic gates have built in 100 ohm resistors to limit current. The down side of this is that the most voltage you can get for a logic one is whatever the forward drop is of the LED, in my case about 1.9 volts. The problems this causes is that some of the logic inputs that follow have a hard time determining whether the signal is a logic one or a zero because, if you look at the specs sheets for these gates, you need a minimum of about 2.0 volts for a logic one. Additionally, the 74HC4078 is a cmos gate, so it needs about a minimum of, I think, 4.5 volts to register a logic one. So, consequently, I was never able to detect a non-zero state because the gate would never see a logic one. If you watch my video, you will notice that I removed the LEDs from the output of the 74ls283 adders because of this issue.
Other than the issue with the LEDs there were no changes to the board.
This step involves building the B register. There is not much going on here, just a couple of latches (74ls173) and LEDs. The build was pretty straight forward with no glitches.
Next step will be to build out the ALU. This will be interesting!
And, here's the video:
In this, step two, we are building out the A Register. The A register is used as the accumulator for the computer and, as such stores the results of additions and subtractions. We will be using 8 red leds, 2 74ls173s four bit registers and 1 74ls245 bi-directional tri-state buffer. Here is the section of the schematic we're building:
Of note are the control lines: Clr (for resetting the register to zero), Clk for latching a new value into the register, ~A In, to enable the register to load new data, and ~A Out for moving data from the A Register to the W Bus which we built earlier.
I did come across a design flaw while testing this. I had the direction pin (pin 1) of the 74ls245 set to the wrong value. Because it was set to logic zero (GND), it was expecting to move data from the W Bus to the A Bus when really we need the opposite to happen. The fix was relatively easy, a matter of cutting a couple of traces on the back of the board with an Xacto knife and soldering wire wrap wire to complete new traces:
And here is the schematic showing the fix:
And finally, in case you're interested, here is the step two video.
The W bus is the main bus for the SAP 1 computer. Data enters the bus from various sources then gets routed to various destinations. An example would be loading the A register from memory.
We build the W bus first because it will allow us to test register and other functions more easily as we assemble we assemble each module. This is because we have a direct way of entering data onto the bus through an 8 bit dip switch.
First we install eight red leds, the 330 ohm current limiting resistors and the 10K ohm pull down resistors.
Next, we install S1, the DPDT slide switch, the green Run led and the red Pgm (program) led along with their 330 ohm resistors. These are indicated in the region marked in red below.
Next, we install S4, the 8 position dip switch. We install it upside down so that its position numbering runs from most significant bit on the left to the least significant bit on the right. Also, it needs to be upside down so that a logical one is when the switch is in the up position.
Finally, we install U24, the 74ls245 tri-state buffer. Whenever S1 is in the Pgm position, this buffer will be enabled allowing the data set by S4 to be placed on the W bus.
I started building out the board. I decided to start with the W Bus as this will be the easiest way to get data to all the registers as I build those blocks and test them later on.
The W bus is pretty straight forward and I had no issues with it.
Here is the video link:
Just uploaded the board 1 schematics in PDF form. In cleaning up the schematics I discovered a few errors that will need to be fixed on the board in a future revision. Some, I've already discovered while constructing my prototype and a few while cleaning up the schematics. This will all be documented and discussed on the short videos that I'm making as I build the prototype.
Over the course of the last couple of months, I've been laying out the first of two boards for this computer. The first board will hold the following:
I plan board two to contain:
The second board will have an external connector so that you can extend the W Bus and Control signals to a breadboard.
I already received the first board and started to assemble and test it. I am logging and video logging my progress as well as challenges and solutions. This project is very much a learning process for me as Ben Eater has done things with the electronics in his videos that I have not previously considered. So, I'm eager to see how well this all translates to printed circuit boards.
Become a member to follow this project and never miss any updates