Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

16-Byte RAM in Digtal Logic Sim

A topic by TheXadGaming created Apr 16, 2023 Views: 480 Replies: 2
Viewing posts 1 to 2
(1 edit)

16-Byte RAM:

-----------------------------------------------------------------------------------------------------------------

So I saw that people were talking about making computer RAM in the posts.

And I thought I could probably build this.

So I made a 16-Byte Ram Chip:

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Step 1: The 1-Byte Ram:


So first I put together 8-1-Bit-Registers to make a 1-Byte Ram Chip.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Step 2: The 4-Byte Ram:


So This may look like a mess of wires, but I'll try and explain.

Pins:

So there's 8 Data In Pins, The Store And Clock Pins. Then 4 Pins for selecting which Byte to write to.

Wiring:

Then Each 1-Byte Chip gets its own Byte Pin, Then I use some Ands to store in that Byte If the Store Pin and that Bytes Pin is on.

Then I store the Data In Pins in that Byte of RAM. Then Everything goes into a Tri-State Buffer. Which the Byte Pins are used to turn the Buffers On and Off. Then the Output of the Bus Buffers are feed to the Data Output Pins.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Step 3: 4-16 Binary:


So Here there's 4 Inputs and 16 Outputs. For each combination of the 4 Inputs there's an Output Pin. So using the 4 Inputs we can select between 16 different Bytes of Memory.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Step 4: 16-Byte RAM:


So this is basically a bigger version of the 4-Byte RAM. But everything is scaled up for 16-Bytes.

We also use the 4-16 Binary to select between all 16 Bytes of Ram. And like before feed there outputs through Tri-State Buffers.

And for the Store signal I turn the 16 Byte Selection signals back down to a 4 Byte signal to store if that 4-Byte Ram's Byte Signal is on.

Then use the full 16 Byte Selection Signals to pick between which Byte in the 4-Byte Chip to store in.

And ALL of this uses a Clock, so it could be used in a computer.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Wow, you actually read all of this? Thanks.

-TheXadGaming

Well done! This will be super useful for your future projects!

(2 edits)

Thanks, I'm planning on making post about building up to a basic computer.