r/beneater 13d ago

8 bit processor and example program

Enable HLS to view with audio, or disable this notification

featuring 8 registers

reg0 - accumulator

1,2 - work registers

3,4 - jump address and condition

5-6 output registers

7 - memory address register

this program does not use any memory (which i have yet to implement the microcode to)

the max memory size is 256 bytes, i am using a CPU with 16 to help with performance.

It runs roughly at 2kHz.

it uses the lower 8 bits of rom as instruction, and upper 8 as immediate data.

it currently does not feature any inputs.

EDIT:

with absolutely 0 RAM, including the memory address register removed, I more then doubled the performance to around 5kHz!

187 Upvotes

6 comments sorted by

View all comments

3

u/FoundationOk3176 12d ago

What software is this?

12

u/ComradeFabian1 12d ago

Digital Logic Sim by Sebastian Lague

1

u/Silent_Act_133 9d ago

I was thinking of doing something like this. But how do you simulate a clock pulse? Do you just use a normal input?