Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Digital Logic Sim

​A minimalistic digital logic simulator · By Sebastian Lague

DFF-RAM vs. Dot-RAM

A topic by nomasan created 83 days ago Views: 285 Replies: 2
Viewing posts 1 to 3
(1 edit)

I do not have the best computer. When trying to build a 16-bit RAM, my PC started running hot at 12 bits with DFF-RAM built in the most MINIMAL way possible.

For a while I thought I'd just be limited to that amount... but then I found the Dot Display... and it has an 8-BIT Address... meaning that you can skip the first 8 bits of the recursive RAM creation process... and just do 8 recursions.

Result: My personalized CPU's Clock Speed went up from 0.5 Hz... to well.. 5 Hz. 10 Times faster, still slow comparatively... and loading images takes AAAAAAGES and I did the stupid thing of creating the RAM iteratively, not recursively... so connecting 5 inputs and 2 outputs to 256 Dot-Registers EACH was a living hell.... but it's worth it for the speed up.


Hope this helps anyone in need of a bit of faster runtimes for their Computers. Good luck out there

(1 edit)

I also created a kind of 16-Bit Assembly (sorta limited upwards by the ROM capabilities cuz it's very inconvenient to have to look through 2 ROMs for 1 line of code, otherwise I'd have made a 32 bit CPU) which has the built-in capability to handle I/O ports.

1 designated IO bit in the assembly setup, which (when activated) replaces the Y input of the ALU with Port input, as specified by bits 8-e (from 0-f in hexadecimal).

I have constructed a version of Assembly which can handle up to 128 different IPO (Input, Processing, or Output) Device Hardware IDs... and those could be built-in as well! 

The only problem is that I have to decide which is more reasonable: Having 128 different IPO devices connected ONCE to the CPU... or having 64 different IPO devices connected at most 2 times to the CPU.

With 128, I could have a looooooooad of different devices. With 64, I could get 2 GPUs... 

But I'm not even multithreading this CPU or whatever.. it's got 1 core...  and I should start learning multi-processors before I continue my work. If I get all this figured out, I might upload a video showcasing it all.


If I had 32 bits to address, I could basically get a supercomputer that runs on 32 bits. in't that fun?

(1 edit)

i did rgb screens instead, makes more data while still having the same performace. also i think 32-bit address is impossible. its 512 mb-17 gb of ram depends on how many bits, unless you are going to minimize it to something like 16-bit, but yeah its fun