r/beneater • • 11h ago

Help Needed Starting from the very beginning- this is a 1 bit adder, correct?

Post image
40 Upvotes

Different places online say all kinds of different things, so I'm not too sure . I want to go all the way back to the very basics with diagrams of gates built from transistors.


r/beneater • • 17h ago

6502 Let's talk about RAM timing

Thumbnail
gallery
26 Upvotes

More than four years ago I bought Ben's 6502 kit and built it on breadboards, like a lot of you. That kit grew into my own family of 6502 computers. In 2022 I drew and made the first boards for what is now the COB, a card-based backplane machine, and one of the first cards was the Memory Card.

I honestly can't remember why I drew the RAM's read and write strobes the way I did. It differs from Ben's circuit: I gated both with PHI2, so the RAM's /OE is RB, the NAND of RWB and PHI2. I probably thought it would be fine for both to be gated by the clock. What's the harm, right?

The harm was a hardware bug that sat quietly for four years. Everything worked, so the same gate went onto every main board I drew after that card. It only showed itself when the machines got bigger and the bus got busier.

The symptom

Recently I was bringing up a 1 MB flash cartridge on my single-board machine, the ACE. About one read in 10,000 came back wrong, so of course I blamed the cart. I reflowed it, cleaned it, gave it an ultrasonic bath, tapped on it and left it outside in the cold. The failure count swung with every power cycle, so each test looked like it meant something. None of them did.

At 2 MHz it got stranger. With no cart at all, both of my machines now and then read a 0 bit from RAM as a 1. A 74HCT00 in the gate made 2 MHz behave, and I thought I was done. The cart still failed.

The hero

This is where I need to thank Ben. I'm fairly certain the Hitachi HM62256 in my parts drawer came with my original kit. Swapped in for the Alliance AS6C62256 my boards use, it made the errors stop, every time, on both machines. Put the Alliance back and they returned. That old Hitachi, which lets go of the bus more slowly, became my reference part for the rest of the testing, and it kept pointing at the RAM, not the cart.

What was going on

The 65C02 latches the data bus as PHI2 falls and needs the byte held 10 ns after that. With /OE gated by PHI2, my RAM stopped driving one gate delay after PHI2 fell, plus however long the RAM takes to let go. No datasheet gives a minimum for either. The old Hitachi lets go slowly, so the byte survived; the modern Alliance lets go fast, and sometimes the CPU latched the bus after it was gone. (I never put a scope on it: the parts that cured it, and the fix, are the evidence.)

Anything that sped that release up made it worse: a faster batch of 74HC00, a heavier bus, 2 MHz, even the supply voltage. At 2 MHz, one board read clean at 5.00 V and failed thousands of times a run at 5.12 V. A 5 V supply is allowed to be 5.25 V.

The fix is one wire

The write strobe needs PHI2. The read doesn't, at least on my boards, where nothing else can drive the bus while PHI2 is low. The gate already makes an inverted RWB for the write strobe, so the RAM's /OE pin now takes that instead. The RAM keeps driving until the address changes, which the datasheets do guarantee: at least 20 ns, against the 10 ns the CPU needs.

With the RAM's /OE pin bent out of its socket and clipped to the new signal, the setup that gave 2,271 errors as built gave zero. It ran clean at 1 and 2 MHz, up to 5.24 V, and through about 20 million writes that were each followed at once by a read from RAM, the one case where the new wiring could cause trouble. It's drawn into the next revision of every board that had the old gate.

What about Ben's circuit?

I went back to Ben's schematic, and it has the same race through a different pin. His RAM's /OE is A14 and its /WE is the CPU's , so the clock goes into /CS instead: the NAND of the clock and NOT A15. That's there for a good reason, because a write must never happen while the clock is low, and Garth Wilson's 6502 primer does it the same way. But on a read it means the RAM is deselected one gate delay after the clock falls, and the datasheet gives only a maximum for how fast its outputs shut off. It plainly works for most people who have built Ben's circuit at 1 MHz on a breadboard. With a fast modern RAM, a heavier bus or a faster clock, though, the hold time isn't guaranteed, just as mine wasn't. And since his /WE isn't gated, it isn't a one-wire fix there. Does anyone know which 62256 the kit ships with these days? Mine had a Hitachi; if new kits ship a fast modern part like the Alliance, they have less margin than mine did.

The lesson

"It works on my bench" isn't the same as "it has margin." A design that relies on how slow one particular chip happens to be has a bug in it, even if it takes four years and a heavier bus to show. When a datasheet gives only a maximum for a delay, assume the minimum is zero. And keep an old slow part in your drawer! Mine saved me.

I hope this post saves others from the two weeks of troubleshooting I just went through! Thanks, Ben, for the kit, and for the RAM. :)


r/beneater • • 1d ago

ALU

34 Upvotes

My ALU is reading from left to right instead of right to left, even though I followed the schematic exactly. To fix this, should I just do the opposite of what the schematic shows when connecting the XOR gates to the adder chip?


r/beneater • • 1d ago

Daisy 6502 Progress...

31 Upvotes

I have the monitor program up and running...I have added a 76489 for some sound..The jumpers leading off screen are for a external cart I'm working on for storage..It will use 28c64 mapped at $5000-$5fff with a jumper for high/low address...In real life the display is not as slow as in the video, my capture card is low end but it works...And the last breadboard will be for a 65c51...


r/beneater • • 2d ago

6502 65C816 - Progress Report

Post image
79 Upvotes

r/beneater • • 1d ago

FALSTAD SIMULATOR ASTABLE TIMER

5 Upvotes

I tried making the astable ic 555 in falstad and it is showing convergence failed, I added the capactitor after both the outputs as o cause a delay if thats the issue, I also added a resistor to reduce the spike, what is the issue? and is there a better software to virtually simulate the circuit


r/beneater • • 2d ago

Q-side of 4-bit register latching without clock input

35 Upvotes

Hi all!

I'm building the 8-bit breadboard CPU, and having an issue with the Register Units.

Upon power-on, everything works fine. I can use a jumper wire to set 4D of my 4-bit register chip (74LS173) to high, and once I tick the clock (which can be seen by the yellow LED turning on), pin 4Q goes high.

However, from this point, I can change the voltage across my jumper wire from high to low (and vice-versa), and 4Q will latch onto it - without any clock tick. How do I stop this from happening?

I know I don't have any resistors in series with my LEDs, however adding one in this case still doesn't fix the problem. I've also tried adding a jumper wire to the clock input to ensure it's low, and the issue still persists - so it can't be to do with a floating voltage across my clock wire.

Interestingly:
- This problem only occurs on the lower half of one of my registers.
- The problem only happens if I power 4Q high first (as shown in the video).
- I've tried replacing the chip, and the problem persists.

Thanks in advance, and let me know if you need any more info! :)


r/beneater • • 3d ago

Please peer review my new 6502 design

Post image
63 Upvotes

Hello I was just hoping to have my newest 6502 design looked over for any major mistakes or minor ones if you see anything please let me know I would really appreciate it thanks! pdf file:eliteoj2012-collab/6502_2


r/beneater • • 3d ago

Alu

10 Upvotes

When building the ALU, should I follow the way Ben did it in the video or use the schematic? I was looking at both and noticed some differences.


r/beneater • • 6d ago

New 6502 + others compute

24 Upvotes

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.

https://github.com/dfmcwhir/Multi_Architecture_DIY_Computer


r/beneater • • 6d ago

Designed my very first 8-bit CPU from scratch using mostly 74xx ICs in Logisim Evolution

Thumbnail
gallery
86 Upvotes

Hey everyone!

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.

GitHub: https://github.com/hoetzenofer/Limbo-8

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.

Thanks for reading!


r/beneater • • 6d ago

VGA The UnGPU: A TTL text-based GPU

Thumbnail
github.com
10 Upvotes

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.


r/beneater • • 6d ago

Schematics of CRC

Thumbnail
gallery
31 Upvotes

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.


r/beneater • • 7d ago

8-bit CPU Testing registers problem

Thumbnail
gallery
43 Upvotes

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?


r/beneater • • 8d ago

6502 Update

Thumbnail
gallery
323 Upvotes

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...


r/beneater • • 8d ago

6502 Conway's Game of Life

104 Upvotes

r/beneater • • 8d ago

Chip Hippo gets social: a gallery of breadboard circuits you can open or share

Thumbnail
gallery
21 Upvotes

Chip Hippo is a free, open-source simulator for 74LS TTL and CD4000 CMOS circuits on virtual breadboards. 1.5.6 adds a gallery*: 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

See for yourself:
- Gallery: https://chiphippo.com/gallery/
- Try it in the browser: https://chiphippo.com/desktop/
- Downloads (macOS, Windows, Linux): https://chiphippo.com
- Source: https://github.com/jfigge/chiphippo


r/beneater • • 8d ago

8-bit CPU 8-bit breadboard computer complete kit

17 Upvotes

Hi guys, i just wanted to clarify a question.

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?


r/beneater • • 12d ago Mindblown

I built a circuit simulator where you can zoom from an 8-bit computer down to each of its 6,609 transistors

564 Upvotes

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..


r/beneater • • 12d ago

Digital Clock Where can i find schematics for the digital clock?

13 Upvotes

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?


r/beneater • • 13d ago

Emulation I make the game "snake" only with the help of logical nodes.

30 Upvotes

So far, I have only done that it can move to the right and, reaching the edge, restart the game.


r/beneater • • 13d ago

Opensource 3D breadboard sim in the browser

14 Upvotes

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.

Looking for feedback, please try it out at https://bredbord.vercel.app/app/

Code (MIT) at https://github.com/qs-1/bredbord


r/beneater • • 13d ago

Help Needed On/off Switch with BJTs

10 Upvotes

Hello fellow 8-bit enthusiasts,

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.

R = 1 / ((1 / R_1) + (1 / R_2) + ... + (1 / R_n)) = 1 / ((1 / 220) * 5) = 44Ω

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.

Any insights would be greatly appreciated!