How to Implement a Random Access Memory at the Transistor Level...

K

Kevin Simonson

Guest
I don\'t know if this is the right forum to post this to. If there\'s a forum that would be more appropriate for a question like this, please let me know.

Let\'s say for a moment that I need to build a Random Access Memory that consists of 256 nybbles. An eight-bit address bus and a four-bit data bus connect the CPU to each of the 256 nybbles. To make things simple, let\'s assume that one control bit is also sent from the CPU to each of the 256 nybbles; if that bit is set, then the CPU writes to one of the nybbles; if that bit is not set, then one of the nybbles gets read by the CPU. So in the former case, whichever nybble has its address (a number from 0 to 255) match the contents of the address bus, reads the contents of the data bus to its internal storage, and it\'s easy enough to imagine how I would do that. In the latter case, each of the 255 nybbles whose address does NOT match the value on the address bus writes high impedance to the data bus, and the nybble that DOES match the value on the address bus writes its contents to the data bus. How does it do that? How does it do that on the transistor level? An N-channel MOSFET can write high impedance to a bus, but the only logical value it is any good at writing to a bus is a zero. And a P-channel MOSFET can write high impedance to a bus, but the only logical value is is any good at writing to a bus is a one. So how can one of the mentioned nybbles be able to use MOSFETs of either or both variety to write to a bus when it might need to write any of those three values, a logical one, a logical zero, or high impedance?
 
On 2021-12-27 Kevin Simonson wrote in comp.arch.fpga:
I don\'t know if this is the right forum to post this to. If there\'s a forum that would be more appropriate for a question like this, please let me know.

Let\'s say for a moment that I need to build a Random Access Memory that consists of 256 nybbles. An eight-bit address bus and a four-bit data bus connect the CPU to each of the 256 nybbles. To make things simple, let\'s assume that one control bit is also sent from the CPU to each of the 256 nybbles; if that bit is set, then the CPU writes to one of the nybbles; if that bit is not set, then one of the nybbles gets read by the CPU. So in the former case, whichever nybble has its address (a number from 0 to 255) match the contents of the address bus, reads the contents of the data bus to its internal storage, and it\'s easy enough to imagine how I would do that. In the latter case, each of the 255 nybbles whose address does NOT match the value on the address bus writes high impedance to the data bus, and the nybble that DOES match the value on the address bus writes its contents to the data bus. How does it do that? How does it do that on the transistor level? An N-channel MOSFET can write high impedance to a bus, but the only logical value it is any good at writing to a bus is a zero. And a P-channel MOSFET can write high impedance to a bus, but the only logical value is is any goo
d at writing to a bus is a one. So how can one of the mentioned nybbles be able to use MOSFETs of either or both variety to write to a bus when it might need to write any of those three values, a logical one, a logical zero, or high impedance?

This is probably not the right group, but to get you started.

Did you use a search engine to try and find some answers? You will find
documents like this one that tell you memory cells are not simple single
on/off transistors. And that the construction varies with type of
memory.
https://copeland.ece.gatech.edu/jac/2030/2002/Slides/Chap.10%20Memory.pdf

--
Stef

How comes it to pass, then, that we appear such cowards in reasoning,
and are so afraid to stand the test of ridicule?
-- A. Cooper
 
Kevin Simonson <kvnsmnsn@hotmail.com> writes:
I don\'t know if this is the right forum to post this to. If there\'s a forum=
that would be more appropriate for a question like this, please let me kno=
w.

Let\'s say for a moment that I need to build a Random Access Memory that con=
sists of 256 nybbles. An eight-bit address bus and a four-bit data bus conn=
ect the CPU to each of the 256 nybbles. To make things simple, let\'s assume=
that one control bit is also sent from the CPU to each of the 256 nybbles;=
if that bit is set, then the CPU writes to one of the nybbles; if that bit=
is not set, then one of the nybbles gets read by the CPU. So in the former=
case, whichever nybble has its address (a number from 0 to 255) match the =
contents of the address bus, reads the contents of the data bus to its inte=
rnal storage, and it\'s easy enough to imagine how I would do that. In the l=
atter case, each of the 255 nybbles whose address does NOT match the value =
on the address bus writes high impedance to the data bus, and the nybble th=
at DOES match the value on the address bus writes its contents to the data =
bus. How does it do that? How does it do that on the transistor level? An N=
-channel MOSFET can write high impedance to a bus, but the only logical val=
ue it is any good at writing to a bus is a zero. And a P-channel MOSFET can=
write high impedance to a bus, but the only logical value is is any good a=
t writing to a bus is a one. So how can one of the mentioned nybbles be abl=
e to use MOSFETs of either or both variety to write to a bus when it might =
need to write any of those three values, a logical one, a logical zero, or =
high impedance?

There\'s always Ben Eater\'s design/description as well.
https://www.youtube.com/watch?v=FnxPIZR1ybs
 

Welcome to EDABoard.com

Sponsor

Back
Top