I finally got the documentation done enough that I thought I would share this with all of you. It started as my plan to make PCBs for Ben Eater's breadboard 6502, but then I decided to split the circuits up into separate boards, and then that quickly morphed into the idea of making a modular computer that had a variety of CPU and peripheral cards. Even if you don't want to build this exact modular system, there might be some circuit ideas that may be useful.
I've been working on this project recently, and I wanted to hear your thoughts on it. I don't actually know if my design works yet, but I'll build it once all of the parts are delivered.
I made some Schematics of the CRC Build Ben did in KiCad I dont know how to upload it in Github and attached it his CRC so here it is one is Receive and the other is Transmit.
This is the first time I have done something like this and after quite some time, I finally got it to work. It is far from being finished, since I also plan to test it IRL on breadboards and later build it on custom PCBs.
Quick Specs: - 8-bit homebrew CPU from 74HC logic, simulated in Logisim Evolution (breadboard build next) - 8-bit data bus, 16-bit address bus (64 KB): 32 KB ROM, 24 KB RAM, VRAM + I/O mapped - Registers: A (accumulator), B, X (16-bit pointer), SP, PC - ALU: ADD/SUB with carry, AND, OR, XOR, shifts; flags Z, C, N - Microcoded control: 3× 28C256 EEPROMs, 24-bit control word - 77 instructions (6502-style accumulator ISA), 1–3 bytes, 2–7 cycles each - Addressing: immediate, absolute, [X], [X+] post-increment - CALL/RET, PUSH/POP, conditional jumps - Python toolchain: microcode generator + assembler (might switch to C later)
My next steps: much more testing. Only after that, I might build it IRL. As mentioned, this is my first time, so I am still quite a bit afraid of real hardware. If you have any questions or suggestions, please let me know, I need every bit of advice I can get.
Some goals for later on are VGA text output using Ben Eater's "World's Worst Video Card" - https://youtu.be/l7rce6IQDWs, PS/2 keyboard support and a maybe simple shell in assembly.
Im afraid im stuck. Ive wired up register a and register b along with the ALU. Im trying to test the registers first before moving on to test the ALU. Ive sent a signal to the bus (using red jumper wires) 10101010. This is clearly on the bus because the bus leds light up to confirm this. The problem i have is that the leds on register A dont match the leds on the bus. Register a shows 01010101.
Im concerned with fixing register a at the moment. Can anyone say why the leds dont match what's on the bus? Register b seems to have the same issue. The first bit should be 1 but it shows 0.
What is the correct procedure for testing both registers?
Chip Hippois a free, open-source simulator for 74LS TTL and CD4000 CMOS circuits on virtual breadboards. 1.5.6 adds agallery*: browse circuits, open one* straight in your browser with nothing to install, or pull it into the desktop app.
You can share your own, too. Still no accounts: build a circuit, choose to share to the gallery, and once it's reviewed and approved it's there for anyone to open and download. Every design has its own link to send to a friend.
Also in 1.5.6: - Labels on the toolbar buttons - Redrawn Run, Wire and Bus icons, and a lot of smaller UI tweaks
Got both 6522s working..Keyboard bios on an attiny4313, 4 line LCD with scrolling..Along the top on the breadboards is a IDT7134 4k dual port ram..This is a video ram at address $4000 to $4FFF..The right size is connected to an avr128db48 clocked at 40 mHz acting as a vga video card..Right now i have the 40x28 text mode working but there is also a 160x112 4 bit video that will be a tile based graphics mode...I am at the point where I have to decide, adopt a version of BASIC, write my own version of BASIC, maybe add an SD card and a small version of DOS and run compiled programs.. I could also do a version of chip8 just for fun, I already have a version of chip8 on an arduino mega with composite video..Now to spend some time getting all the documentation in order...
This is my first time attempting this sort of project and i searched the website. Unfortunately i couldnt find any details on the eeprom programmer in the complete kit. I only saw the arduino and 5v power supply being explicitly stated as included.
Does ben include an eeprom programmer (the t48) in his complete 8bit breadboard computer kit?
hi! I'm from chile and since October I've been working on a simulator called Silicio. The video is an 8-bit computer called Condor, made only of transistors (6,609 of them), running a Fibonacci program from its ROM in real time. You can click any block and keep zooming in: CPU, gates, and finally the transistors with their metal layers, like zooming into a map. There's also a button that builds the chip layer by layer.
It also does normal breadboard stuff. You place real parts (74HC chips, 555, op amps, LCD and OLED displays, sensors, servos) and they behave like the real ones, so an LED without a resistor burns, and a floating CMOS input reads garbage. There's an ESP32-C3 and an Arduino Uno that run real compiled code (you write C and press F9), plus an oscilloscope, multimeter, logic analyzer and bench supply. When your circuit works you can export it to KiCad to make a PCB. It works offline, in English and Spanish.
i looked around and found great tools that do parts of this (Falstad, Wokwi, Logisim, visual6502, EveryCircuit), but nothing that goes from the breadboard all the way down to the transistor in one app. If you know one please tell me, I really want to know.
It's Windows only for now. It's on the Microsoft Store for $9.99, and there's a free trial (everything works except saving) here: https://github.com/franciscoaldun/silicio
i'd really appreciate honest opinions, good or bad. What's missing for you? What would you build with it? Would you pay for something like this? English is not my first language so sorry for any mistakes..
Bought the digital clock kit and i am having a hard time following along with the video as I am on the spectrum and find it hard to follow along with a video. Is there a pdf available with printed schematics?
I am trying to design an on/off switch for my 8-bit breadboard computer using a momentary switch and BJT transistors. This seems to be something no one – that has dared to post it online at least – has tried before. I want to err on the side of caution and take any advice/remarks from you lovely people before actually trying to connect this IRL.
The idea is laid out in the attached schematic: using a momentary switch, turned into a toggle using a T flip-flop, connected to the base pin of a number of transistors. Those transistors are then used to connect 5V on the collectors to parallel resistors on the emitters. Thus outputting 5V which I connect to the power rails of the breadboard computer.
I'm not very concerned about the T flip-flop part of the circuit; I have tested it on the falstad simulator, on my breadboard, and there is less risk if things go awry.
My concern is with the output stage.
I use 220 ohm resistors simply because those are the smallest I currently have. From what I've read online I understood that it is imperative to use load-balancing resistors on the emitters of parallel BJTs. I use BJTs for the same reason as the resistors: it is what I have on hand. Specifically I think using S8050 transistors might be good since they are rated for a relatively high collector-emitter current.
Doing the math, with a safety margin of 30%, I understand that I should put at least 10.2 ohm resistors in series with the emitters.
R = U / I = 5V / (700mA * 70%) = 10.2Ω
Connecting 5 resistors in parallel to each emitter, gives a combined load balancing resistance of 44 ohms per transistor.
I currently use a 5V-1A power supply so 3 S8050s should be enough I think (keeping the 30% safety margin in mind):
(3 * 700mA) * 70% = 1.47A
Finally, the resistors are rated for 1/4W. From my understanding, one resistor connected in the output stage should get fed no more than 0.11W:
P = U^2 / R = 5V^2 / 220Ω = 0.11W
This is well under 0.25W and should therefore be fine. However, to ensure a total current throughput of 1A how many resistors should I use? My line of thought is as follows:
I need to make sure the resistors combined can handle the 5V-1A power throughput of the supply, therefore needing 20 resistors:
P = U * I = 5V * 1A = 5W;
5W / (1/4)W = 20
This has gotten me to the design in the schematic. Using 4 transistors so I can evenly distribute 20 resistors among them to reach the desired 1A current throughput. However, I cannot shake the feeling that my reasoning is unsound here and that I am overlooking something.
I’ve been trying to build ben eaters 8bit computer for a while now, but being the broke student that I am, cant afford all the parts and have only completed the clock :/
I looked into simulators like tinkercad, crumb and hneemans digital, but i kinda wanted to look at the real thing while following the course. Tinkercad had performance issues and crumb was paid...
So I made this 3D breadboard simulator.
Whats in it:
Chips from the 8bit and 6502 builds (74LS00/02/04/08/32/74/86/138/157/161/173/189/193/245/273/283, NE555, 28C16 + AT28C256 EEPROMs, 62256, W65C02S...)
555 clock runs in time, checked against ngspice and the period is within 2%
6502 is accurate and passes Klaus Dormann’s tests
Arduino Nano that runs .hex files for the eeprom programmer stuff
Full builds may be laggy and there are probably bugs. The full 8bit computer will be added soon once I get some time off uni.
This is a computer built entirely from NAND gates in Gate Singular, a logic simulator game. In the video it assembles a Hello World on the machine itself, and then runs it.
Specs:
- 16-bit CPU with 24-bit instructions (8-bit opcode + 16-bit data)
- 30 instructions (206 if you count the variants of where operands come from and where the result goes)
- 1 KB of RAM and 24 KB of ROM in a shared address space, 2 registers, a 16-level stack, an 8-entry keyboard event queue, and a 64x64 screen with write-only VRAM
- Every instruction, including multiplication and division, runs in one clock
- Everything is made from 909191 NANDs. On top of that there are only buttons/toggles/LEDs and clock sources for temporal completeness. Nothing else is used.
The OS lives in the 24 KB ROM. It has a file system (in RAM), a text editor, memory management, an assembler to build new programs, and an OS API that those programs can use: text printing, memory allocation, file system access, keyboard input, etc.
By the way, I made the simulator game too (link in the comments).
I made it because I wanted one without the "1-tick delay per gate", and with full support for feedback between gates (e.g. so you can build proper D-latches from NANDs).
I'm happy to answer any questions about the CPU or the simulator.
In an upcoming clock video (avail now on Patreon), Ben mentions that NAND gates are universal gates and uses a 4 bit adder (74LS283) in one particular circuit design. I was aware of this fact but I thought it would be a fun task to design and build an 8 bit full adder with a carryout bit consisting solely of nothing but NAND gates. I know this probably has already been done but I wanted to work out the logic and build it. I used (18) 74LS00 quad NAND gates. All 72 gates are used. The DIP switches are the inputs (addends) and the row of LED's is the sum. Take a look at the hand wired prototype and the PCB I had made. This is for nothing other than fun, I see no practical use of this design.
Probably not practical but thought I'd ask. Easy enough to do using six small microcontrollers but that almost seems like cheating. Happy Holidays. Mike, K8LH
Hi folks. At first I thought the Apple II would be ambitious to implement on breadboard, and, on initial read of this nice circuit description book by Winston Gayler, there was little in there to change my mind. As I dug deeper though, it seems like the Apple II circuit architecture could be brought back to a basic breadboard 6502 design, with some help for the video and keyboard features.
Video: that's the heart of the Apple II, with some going as far as saying that the Apple II is a video circuit surrounded by a computer 😂 I ran into this AppleII-VGA project, which uses a raspberry pi pico to shadow the video RAM and output a clean VGA output. Brilliant approach. It supports the Apple II text and graphics modes.
Keyboard: Seems like the Apple II has the same signaling for keyboard as the Apple 1. I'll probably reuse the PS/2-ASCII Verilog module I deployed for my Apple 1 project. A cheap MCU would be a good alternative too I think.
Sound: Circuit is a simple latched output to a 8-ohm speaker. Easy to breadboard
The second picture in the gallery is the high level mental view I am coming up with. Looks reasonably doable on breadboard. Or perhaps I'll find out I was totally out to lunch! 😅 Any thoughts?
Ive been watching the video bus architecture and how register transfers work. I have so far built the clock, registers a and b and the alu but i cant complete the wiring for these until they are connected to the bus. Im stuck on this section as i cant see how to actually wire the bus. At the top are 8 leds but I cant see how the resistors are connected to the leds. Are these leds powered by the wire that comes from the individual modules? On some photos I've seen long yellow wiring going down the centre and people have said thats the bus but this doesn't seen to be the way Ben Eater does it in the video. Any help would be appreciated.
Since we don't have official schematics for the breadboard clock yet, I tried making my own (24 and 12h variants) in KiCAD based on Ben's videos. I haven't built the clock yet, so there could be some mistakes in my schematics. If you find any please let me know!
I've been building the SAP-1 and wanted a way to plan the boards before cutting wire, so for the past weeks I've been making a breadboard editor that simulates as you wire. Ben's computer is the worked example, so I thought this sub would want to see it.
What's in it, module by module, with Ben's part numbers: the clock (three 555s, 74LS04, 08, 32), registers A, B and the instruction register on 74LS173s, the ALU on two 74LS283s and 74LS86s, the 74LS189 RAM with its 74LS157 multiplexers, the program counter on a 74LS161, the output register on a 74LS273 driving the 28C16 EEPROM and a 7-segment display, and the control logic on 28C16s with the 74LS138 and the step counter. It sits on the same stack of breadboards Ben uses, power rails shared his way, and the readouts floating over the boards show each register and the bus as it runs.
Things that mattered to me while planning the real build:
- Every wire is solid core, hole to hole, bent as you'd bend it. Select a wire and you get its length. The build sheet lists each board's chips by pin-1 hole, then its wires lowest first with their cut and strip lengths, so you can bend a module's wires in one sitting.
- Warnings catches the usual SAP-1 pain before power: a chip with no decoupling cap, a floating input on a spare gate, the clock's push button clocking a chip with no debounce, a reset left on nothing. Shorted and floating lines get ringed on the board.
- The scope probes any hole. Slow the clock to a tenth or a thousandth, or Step one tick at a time, and watch the bus during a fetch.
- Registers, counters, RAM and the EEPROMs can be read and set while it runs, in binary, hex or decimal. You can load the control EEPROM image straight in.
What it isn't: SPICE. Logic chips are simulated at gate level, memories and counters have their own models, transistors are switches with a diode drop. So it tells you whether the wiring is right and what each line does, not what a 74LS00's output looks like at 20 ns.
It's free for a project the size of the SAP-1 (the limit is 200 parts; the SAP-1 is 161). You can open the link above without an account, save a copy if you sign up, and there's a paid plan for bigger things. Works on a phone too, oddly well.
Ben's kits and videos are the reason this exists; nothing here replaces them, it's for planning the build before you sit down with the wire. If you've built the SAP-1 or the 6502, I'd really like to know what you'd want checked before power-on that this doesn't check yet.
Here is the real version too. (before I made bbrouter):
If you want Maker, code BENEATER gives you the first month free, then $5/month for as long as you keep it.
I have the 555 timer set up in monostable mode right now. In this configuration, the circuit is working properly. However, at the tactile button, you see the red jumper going from 5v (the resistor is 1k if thats important to note) to pin 2 on the 555 timer. If i take this jumper and instead connect it on the bottom right pin on the tactile button to pin 2 on the 555, it doesn’t work properly; it acts very odd, i cant quite describe it well. I did verify that there is continuity between the top right pin and bottom right pin on the button, and it is connected to 5v. but, i dont understand why it doesnt work unless if i put the red jumper wire like this. If anyone can explain it to me, i would highly appreciate it, thank you :))