Last visit was: Sat Apr 25, 2026 4:43 pm
It is currently Sat Apr 25, 2026 4:43 pm



 [ 4 posts ] 
 Design of a simple 32 bit computer 
Author Message

Joined: Mon Oct 07, 2019 2:41 am
Posts: 924
MY hardware for a 9/18/36 bit computer keeps crashing. I need to build whole new system with proper buffering.
Design of a smaller 16/32 bit computer is planned first in emulation then later as hardware.7 registers plus pc,
Code:
8 bit unsigned  characters (load,store only)
16 bit unsigned short ( 16 bit addresses) 1 word
 32 bit signed long, 2 words
float                        3  words
Addressing modes r,(r),(r+),#,(-r),(r+#) for memory ref (char,short,word).
shift r,#
jump to subroutine (r+),#
jump on condition  (r+),#
add effective address
scale by 3 
.
this is 18 instruction types. No irq at the moment.


Thu Apr 23, 2026 6:50 pm

Joined: Sun Oct 14, 2018 5:05 pm
Posts: 65
RISC-V 32E should be "easy". 16 x 32-bit registers. Probably do it in about 38 instructions.

Look at the Univac project... Or write an emulator for your existing N-bit system...

-Gordon


Fri Apr 24, 2026 7:33 pm

Joined: Mon Oct 07, 2019 2:41 am
Posts: 924
I refuse to go with RISC architecture, for hardware.
A micro RISC controller chip,how ever might make a good platform for custom CPU chip design in a
84 pin PLCC package? So would a small FPGA.
For now a simple emulator will suffice, but I have to revise the BIOS I have for the new hardware.
The BBC micro with a ARM CPU is close to what I want, as vintage hardware design,
(can it run in CANADA).
The instruction set, makes for simple code generation from a simple high level language, so this I will not change.
PS: tweeked the instruction set to have a short addressing mode off the frame pointer.


Sat Apr 25, 2026 12:32 am

Joined: Sun Oct 14, 2018 5:05 pm
Posts: 65
oldben wrote:
I refuse to go with RISC architecture, for hardware.


OK.

Quote:
A micro RISC controller chip,how ever might make a good platform for custom CPU chip design in a
84 pin PLCC package? So would a small FPGA.


I'm sure there are several. So you'd write the code to emulate your retro CPU on the microcontroller, or implement it in the FPGA?
I presume you need many pins to give you a "classic" address and data bus...


Quote:
For now a simple emulator will suffice, but I have to revise the BIOS I have for the new hardware.
The BBC micro with a ARM CPU is close to what I want, as vintage hardware design,
(can it run in CANADA).


Maybe you're not familiar with the PiTubeDirect project?

But you know about the BBC Micro - it was intended to be the IO processor for a 2nd CPU connected via the Tube. This is a high speed (for the day; 2Mhz) bus to exchange data to/from the 2nd processor - e.g. a faster 6502, Z80, 80186, INS32016...

PiTubeDirect Takes a Raspberry Pi and interfaces it to the BBC Micros Tube interface then has emulation software for every 2nd processor ever made, and many more. e.g. PDP11. Also, there is a framework that lets you write your own CPU, so you could use this to write your own CPU code (in C or ARM assembler) to test and run your own CPU, using the Beebs base unit to give you a handy keyboard/screen and filing system...

Then you can put your cpu into TTL/FPGA/whatever.

BBC Micros run perfectly well in Canada. Some have PSUs where you can switch the voltage - video output may be trickier. I have several here, but I'm in the UK.

Quote:
The instruction set, makes for simple code generation from a simple high level language, so this I will not change.
PS: tweeked the instruction set to have a short addressing mode off the frame pointer.


But you need then then write that compiler - or work out how to adapt an existing one... The former is where I stalled on my
projects, but the latter was easy.

-Gordon


Sat Apr 25, 2026 3:38 pm
 [ 4 posts ] 

Who is online

Users browsing this forum: claudebot, facebook crawler and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software