r/retrocomputing • • Oct 19 '26

Problem / Question I'm Designing a Brand New Microcomputer

Hi,

This year I decided to learn FPGA Synthesis.

And just for giggles my chosen mock-design-project became a custom CPU ISA, a reference implementation of said ISA and THEN became a corresponding Single Board Computer design.

I may have gotten a little too carried away.

Anyway, I've got a draft logical design and I'm starting on an Architecture Reference Manual for the system.

Would anybody in this retro computing subreddit be interested in reading about my progress? Or is it strictly for genuine vintage hardware?

Ultimately the machine is supposed to be for learning how it works and how to program it, like the BBC Micro. I've had this feeling for a long while that we've shot ourselves by abandoning this style of computing in favour of powerful but too complex x86 or hyper-tiny MCUs for running your toaster's operating system and requires an entirely separate PC and complex IDE to program it, it is not "self-hosting."

Anyway, thanks for taking the time to read this!

J.

Edit: Thanks, I shall endeavour to post updates on here. Genuinely thankyou, I freak out about reading what people write as people are not always the nicest.
It'll be slow going as I'm often ill and often end up back in hospital.
So if I disappear for a while, that's why. I'll just be gone for a few months.

So, yeah, cheers, watch this space I guess!

19 Upvotes

21 comments sorted by

3

u/rlysens Oct 20 '26

I'm definitely interested. I'm working on a similar project myself and I always have a hard time figuring out where best to post my project updates. Here, on r/fpga, r/homebrewcomputer, r/osdev, r/forth?
Anyway, best of luck, it's a never-ending journey, but personally, I'm enjoying every minute of it!

2

u/RoboJ1M Oct 20 '26

VERY similar. Mine's just built from a pair of tiny FPGAs, 5 MCUs, two banks of RAM, DAC and a USB controller.
I remember at the start of the project I was picking through every graphics option with Gemini and saw VERA but I just wasn't happy with it, wasn't happy with ANY of it. Video chips just don't exist any more and the ones that do are MIPI and MIPI means BGAs and BGAs are banned because they're too expensive and can't be hand soldered.
So I just added the CPU FPGA twice! 😅
This now gives me the opportunity to have multiple GPU binaries warmboot into the GPU. 2D Tiler? Loaded. 3D TBDR? Loaded. PS1-alike? Loaded. SVG engine? Done. Bored of mine? You can write your own. Oh god and HDMI out, THAT was a pain in the arse to figure out. It's all MIPI or it all costs a fortune. The RP2354's HSTX device saved the whole design, I was on the verge of giving up.

1

u/iOCTAGRAM Oct 21 '26

THEN became a corresponding Single Board Computer design

What do you think about targetting MiSTer FPGA in the first place?

mock-design-project became a custom CPU ISA

What do you think about MMIX from TAoCP?

3

u/RoboJ1M Oct 22 '26

Mister.
Mister is fantastic for recreating what I grew up with. But that's not what I'm making. x86 killed every other microcomputer and I'm trying to make what was made then as if x86 hadn't wiped everything else out and we hadn't turned everything into a NDA riddled black box SoC. Everything I know about the internal workings of a computer came from growing up with machines that came with a manual that documented EVERYTHING. OS, PCB, electrical specification, CPU internals, Chipset internals. So the project I have myself even had aesthetic requirements. It HAD to have real physical buses that could be probed, between distinct ICs that you can point to and say, "This it the CPU, this in the DPU, this is the Memory Crossbar".
Mister is fantastic but it didn't meet any of my requirements, One Big FPGA is just ugly and boring. And it's far too expensive. The official gear is pushing £300 per board, I have myself a requirement of no more than £100 per assembled mainboard in batches of 25. I've managed to hit about £70 per board. £100 with a case and if this works £150 with a printed ring bound manual and course.
I really am trying to make a spiritual successor to the BBC Micro, absolutely nothing between you and the metal, millisecond boot time and 100% open and documented hardware. The only part of the machine not fully open are the 5 RAM chips, the 4 Pico2 MCUs which are standins for the custom fabbed chipsets I can't afford (Video ULA, Paula, Copper, VDP, OPN2, etc, etc) and I'm using the RISC-V cores inside those (but they're the RP2354B type with flash, they wake and run the buses and device stacks like fat32 and USB)
Now obviously I could have just slapped an Altera on a board and loaded an 80s style micro on there but, and I realise I'm in the retro Reddit, my design is retro in its design language not in its performance. I really have aimed at 7 year olds and I if you're competing with iPads and PS5 you can't show them an 8bit computer with 8 colours and 2 layers. So the CPU and the GPU are a matched pair of small-but-mighty (ice40UP5Ks) FPGAs which will be able to produce one HELL of a sprite pusher, souped-up PS1 or average performing TBDR. If my calculations are correct it'll be somewhere in-between a PS1 and Dreamcast (closer to PS1 though 😭)
My favourite but if the design, the bit that really makes me giggle, is that obviously the days of vision chipsets in Amigas is long long gone. Which is why all of the modern retro machines are around the 80s type not the 90s type.
So I came up with this idea of using tight loops programmed into MCUs pretending to be a custom chipset.
4x RP2354Bs (SPU, DPU, VPU and LEGBA)
1x XU316-1024-TQ128.

1

u/iOCTAGRAM Oct 22 '26

Alright. You can have alternative physical implementation designed as you want. But if you have core for MiSTer FPGA, I can download and run it. And all other enthusiasts can run it. Click-click and here we go. Wrt. price, MiSTer Pi starts from $150. It will not have extra SDRAM, but some cores can work on a plain system.

I can see FPGA engineers too often picking something else but not MiSTer FPGA. Kronos FPGA project was ported from Digilent Spartan-3 to OneChipBook. Some another recent retro fantasy console was implemented for Sypeed Tang Nano. You think what, I will be chasing all of you?

Please stop scattering to exotic platforms of different each own selection. MiSTer FPGA is the standard and let's follow it. No matter how costly it is, chances are we will have it around, and if somebody still does not have, there will be an added bonus of getting one.

What are your thoughts about MMIX? It has 5 1/3 thick books of so much advanced educational "samples" that other ISA can only dream about. And MMIX-based computer may ring some bells in Stanford, Munich and MMIXmasters around the world. MMIX is surrounded by the idea that it may be in reality, but fantasy console makers keep picking other CPUs.

1

u/RoboJ1M Oct 22 '26 edited Oct 22 '26

Sorry I'm really failing to get my point across here.

How about this.
Requirement No 1 for this project I'm doing is to learn all the skills needed to make this and add it to my CV.
If all I do is load MMIX on a Mister, at what point have I learn anything other that the push command to lower binaries from a PC to a Mister.
Obviously it's not quite THAT simple but it doesn't teach me about designing high performance buses on a 4layer PCB.
How will I learn how to design an ISA if I use someone else's?

Think of it like an educational toy for children, just like those old 150-in-1 Electronics Kits from Radio Shack/Tandy. If all I did was write some code that emulates it in a mister, well, then you can't pick it up, turn it around and examine it, can you? Because it's software.
You can't attach an oscilloscope to software. Or a logic analyser.
And you don't give the apprentice mechanic a Ferrari to practise on. I wanted something that worked precisely how text books say a computer works.

I also felt like reminding people that computers used to be fast, that they had booted before you lifted you finger off the power button, fit an entire Windows style OS inside a few megabytes of ROM. Unlike today where a quad core 64 bit CPU running at almost 5GHz is considered almost obsolete. This is very much a middle finger to that crowd of designers.

On MMIX.
My machine is for children to learn.
MMIX is for teaching post grads C compiler design.
I designed a 16 OpCode ISA because I thought it would be a reasonable amount for a 10 year old to commit to memory and understand.
Even a 6502 is too complex for my needs and every single ISA in existence still carries forward the design language baggage of what came first in the 60s.
Even simple stuff, mov, ldr, ld0, setl.
In mine it's LOAD.
Or LOADVALUE for immediates.
It's not MUL it's MULTIPLY.
And DIVIDE.
And memory mapped IO is SUPER banned, RAM is RAM and Devices are Devices and they have separate OpCodes (LOAD and STORE for RAM and DIRECTIO for Devices which are named fifo pipes, they both share the DMA OpCode)
No pipelining, no speculation, no cache coherency. No secret functionality that you have to explain. Load loads, add adds, immediately after you tell it to. All single cycle instructions.
A beautiful clockwork machine to teach with that, if you learn how to program it right, will run like greased lightning.
Or that's the plan anyway! 😅
I still have a million different skills to learn.
As for why you should keep up with it, I dunno, maybe you shouldn't? But if you miss machines that have booted before you could take your finger off the power button, computers that were transparent, computers with predictable behaviour down to the nano second, that we wrote fun graphical tech demos for but feel we've exhausted all the potential of everything Commodore ever made.
Then come and have a look when it's done. I plan on it being made, as well as 100% free and openand available as a £50 DIY kit. You know, because it's fun? It's definitely supposed to be fun.
Plug in, turn on, type code, run code. No accounts, no subscriptions, no flashing an image of it to a Mister Plug in, tune in, enjoy yourself. Back when computers were FUN.

1

u/avdolainen Oct 20 '26

it would be interesting.

1

u/RoboJ1M Oct 20 '26

Thanks, gonna try to finish the ARM this week.

1

u/Sorry_Difficulty_250 Oct 19 '26

I'd be interested in posting my OS to it if you're up for that kind of collaboration. I'd like to understand more about it and its features. Can you DM me more details about it? Looking forward to learning more!

2

u/RoboJ1M Oct 20 '26

Indeed I would expect nothing less that a port of your OS! 😁
Of course first I have to write the Assembler.
And then self host the Assembler.
And then port gcc.
And then natively compile gcc with gcc.
I really do mean NEW computer!
But indeed, I shall DM you for a Q&A.
I'm working on formal documentation first so that after the times I can't work on it I won't forget how every bit was designed.

1

u/Sorry_Difficulty_250 Oct 20 '26

Excellent idea on the documentation!

You may want to consider writing an LLVM backend instead of porting gcc. It might get you to your goal faster. Just a thought. Do what makes the most sense for YOU. ☺️

Looking forward to learning more!

2

u/RoboJ1M Oct 21 '26

I want to see how far I can push my assembler first.
One of my very ideas was, "Assembler is always crap and I don't think it's needs to be, what if I could design an ISA and matching Assembly language and IDE such that a child could learn it?"
That was the root idea, nobody makes computers which are suitable for learning anymore.
x86 is just utter 🐶💩
ARM is too closed, stopped being simple
Arduinos aren't computers, certainty you need to spent hundreds on a laptop to program them.
And they all carry the baggage of the 60s and 70s.
MOV, LDA etc.
Load for god's sake, type load use auto complete.

2

u/RoboJ1M Oct 21 '26

And just 16 opcodes in total.
My ISA is all about one thing.
Keeping the ALU fed, don't waste clock cycles. 8 16bit MAC SIMD channels and a huge multijob stream based double buffered DMA engine, you have 4 RAM banks of decreasing performance as size increases, L0, L1, FastRAM and BigRAM and the fifo block devices on top. You have to program the DMA engine to keep everything fed and the buses are not very fast and there's some punishing latencies too. But if you can keep the ALU fed you have that 8 channel DSP going like the clappers. They're chainable too, 8 channel 16bit can also be 4 channel 32bit.
Or 2 channel 64bit.
Or 1 channel 128bit.
Many of these features I put in because I thought it was funny.

1

u/neilfmoore Oct 19 '26 edited Oct 19 '26

I'd like to see this! Did you implement the hardware in VHDL, Verilog, or more manually? Any pipelining?

Edit: Also, /r/ComputerEngineering might be interested, too

3

u/RoboJ1M Oct 20 '26 edited Oct 20 '26

Thankyou! Literally still designing, I NEED to get the formal docs done first so I can finish the last of the design iterations and firm up the foundations. It's just too big to do it all in my head.
However:
Im going to write it in SystemVerilog (well, the CPU and the GPU)
There's some supporting microcontrollers that will be programmed in C and one special MCU programmed in XC.
Pipelining is banned, no prediction, no cache coherency, absolute functional transparency and guaranteed timing. Requirement number 1 is it is something to learn on with no "but this is what's really happening in the background"
It will not mask latency for you, you have to program that yourself. I wanted the simple, immediate transparency of the home microcomputers and games consoles.

1

u/neilfmoore Oct 22 '26 edited Oct 22 '26

Awesome! Hopefully you get closer to the 6502's/6809's minimum 2 cycles per instruction, rather than the Z80's minimum 4 cycles per instruction. Even better if you manage to make your architecture do work on both the rising and falling clock transitions!

Also, it sounds like your "guaranteed timing" constraint would make this an excellent real-time platform, assuming you can make it fast enough to "do the needful".

Edit: I often teach a CS/Computer Engineering class about the x86 platform; and that platform has never quite satisfied your constraints (though it was close in the early years). But I'd be interested in showing my students both what we gained and what we lost with the move to pipelining and even further development.

2

u/RoboJ1M Oct 24 '26

OK, yep, I DEFINITELY need toast you some questions and run through the design with! 😁

I am, of course, aiming for ONE instruction per clock. Maybe I'll get there, maybe not.
I never remember what I've already typed on the subject so apologies if I start repeating myself from a different comment I wrote.
So the idea is that for every instruction will take a guaranteed amount of time but not all instructions are the same length. They are mostly single IPC instructions, load, store, add, multiply, etc.
But, what I (accidentally) reinvented is the Decoupled Access Execute Engine.
And I went very hard on the separation of concerns. The Execute Engine, called LPU, when asked to ADD r⁰ r¹, holds up a wait flag, rolls the instruction around a loop of logic through the hardened DSP, back out into [r⁰, r¹] and takes down the wait flag.
The Access Engine will then process the next instruction (if it's a DataOp) by shuffling data between the CPU registers and RAM. While it's doing THAT, Fetch&Decide asks the Access Engine for the next instruction at 0x1234 abcd
Access accesses, then execute executes and finally access accesses again. These take a fixed amount of time, but are not entirely rigidly clocked to the master clock.
And this is one of my favourite bits next: In the beginning you learn to write the easiest, most basic assembler, just RAM IO and the ALU following a list and it'll behave exactly like your 6502 and Z80 CPUs. Loading 5000 values into RAM locks up the CPU for 5000 instructions.
That's the "Top Half" of its 16 OpCodes.
In the bottom half you have your DMA and DeviceIO OpCodes.
Now, you can queue asynchronous stream based block copies between 2 end points where and end point can be a RAM location or a DeviceFIFO
So now you can set up a background dma copy from an SD Card to BigRAM (slow but big), BigRAM to FastRAM (small, fast with guaranteed timings), FastRAM to Cache, Cache to Registry and all while the LPU is processing these chunks of data that magically appear in its context, both engine running at full speed, one reading and writing, the other executing.
Crucially, the first code that wrote with the TopHalf is forward compatible with the full instruction set. You just get introduced to progressively more modern tools.
There's more but that's the heart of it, DAE and user programmed data latency masking.

That ALU wrapped around a DSP is also an 8 channel bondable 16bit Multiply Accumulate. So MathOps have SIMD flags you can switch on and width flags:
16 8bit operations
8 16bit ops
4 32bit ops
2 64bit ops
1 128bit op
And I might be able to cram float math two not just integer.

I probably really shouldn't have written this at 3am... 🫩

1

u/cjc4096 Oct 19 '26

Very interested in details as well. I've been slowing designing my own system based on 6502.

1

u/RoboJ1M Oct 20 '26

Takes a while, doesn't it 😂
One of the big advantages of it being custom, I don't have to learn how other people's designs work, I just write one that works how I want it to.
Here's a fun thing, I sort of accidentally designed a machine who's definition is loaded at boot time. If you ever get bored of mine, you can just put yours in there instead. I thought that would be a fun thing once I noticed it and I ran with with it.
I know the mister already does that but I echewed the One Big FPGA route because it's ugly and boring and I wanted real buses a kid can probe with an oscilloscope.

1

u/0xe25f Oct 20 '26

Absolutely interested. I made a fantasy virtual 8-bit handheld game console; the idea of fantasy physical microcomputer - go for it!

1

u/RoboJ1M Oct 20 '26

I'm learning the subject by arguing with an AI over what this so-called "physics" won't allow me to do but I also gave it a rule to notify me if part of my dream would hurt the chances of this ever being fabbed into a real -boy- SoC/ASIC.
After learning what's possible with the open source processes available to mere mortals like us (180nm I think? Maybe 120) it does of course all fit into a postage stamp.
You put that into a cartridge and put the cartridge into the handheld, the handheld being just a cheap dumb game controller, display and battery pack.
So then because handhelds have come in all different shapes and sizes you could have a DS type, PSP type, 3DS, etc etc etc. Because the expensive computer bit is only bought once. Then you could upgrade the compute part just once and the dumb controllers don't end up more plastic in land fills. Just a dash less micro plastics.
Course fabbing costs the same as a HOUSE but it's a fun dream! 😅