How does RAM give "4"th value when CPU requests the "001"th

In summary: So, the fourth cell could be accessed by enabling the fourth segment.In summary, the conversation discusses the process of calling a specific memory cell in a simulated 8-bit CPU and RAM. The issue is that the binary code for the cell needs to be translated into the correct decimal cell number. The conversation also touches on the implementation of address decoding in actual hardware, which involves a 2D array with row and column addresses. The solution proposed is to use a 3:8 decoder to enable the correct memory segment for accessing the desired cell.
  • #1
NotASmurf
150
2
Hey all, I'm currently building a 8 bit CPU and ram in simulator software but have no idea how to call a specific memory cell, ie I can't call the "001"(binary) cell, I'd want it to be translated to call the 4th cell. How does real ram solve that issue? Any help appreciated, thanks.
 
Engineering news on Phys.org
  • #2
While that looks like a strange convention: the 4th ram cell should check if the bits are "001", and get read out if this is true.
 
  • Like
Likes NotASmurf
  • #3
Does ram seriously have this on each cell? Doesn't it have a binary to decimal decoder or something?
 
  • #4
A binary to "every single RAM cell" decoder has one logic element for every single RAM cell.
In actual hardware this is not true as RAM forms a 2D array with row and column addresses, but there each row and each column needs such an element in the decoder. On the other hand, each memory address has more than one bit so you have to think about the actual implementation of it. I don't know how realistic your simulation is supposed to be.
 
  • #5
You need to implement address decoding.

In a simple implementation you would feed your 3 address bits to a 3:8 decoder. Each output of the decoder goes to a 'memory segment enable' input which let's the decoder control which segment is being accessed at a given moment (since a decoder only has one high output at a given moment).
 

Related to How does RAM give "4"th value when CPU requests the "001"th

1. How does RAM store and retrieve data?

RAM (random access memory) is a type of computer memory that stores data temporarily while the computer is running. It uses electronic circuits to store and retrieve data quickly, which is why it is referred to as "random access." When the CPU requests data, the RAM locates the data based on its address and retrieves it for the CPU to use.

2. What is the relationship between RAM and the CPU?

RAM and CPU (central processing unit) work together to store and process data in a computer. The CPU is responsible for executing instructions and performing calculations, while RAM provides a temporary storage space for the data needed for these operations. The CPU requests data from RAM and then uses it to complete tasks.

3. How does RAM give the "4"th value when CPU requests the "001"th?

RAM uses a system of addresses to store and retrieve data. Each byte of data is assigned a unique address, starting from 0 and increasing sequentially. When the CPU requests the "001"th value, RAM locates and retrieves the data stored at that address. Since RAM is able to access and retrieve data randomly, it can give the "4"th value even if the CPU requested the "001"th value first.

4. How does RAM handle multiple requests from the CPU?

RAM has the ability to handle multiple requests from the CPU at the same time. It uses a technique called interleaving, where it splits the data into smaller chunks and processes them simultaneously. This allows for faster retrieval of data and improves the overall performance of the computer.

5. Why is RAM important for computer performance?

RAM plays a crucial role in the performance of a computer. It provides a temporary storage space for data needed by the CPU, making it faster to access and process. The more RAM a computer has, the more data it can store and access at once, resulting in better overall performance and faster processing speed.

Similar threads

  • Electrical Engineering
Replies
15
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
5
Views
2K
  • Programming and Computer Science
Replies
5
Views
3K
Replies
1
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
13K
  • Beyond the Standard Models
Replies
32
Views
674
Replies
3
Views
1K
  • Programming and Computer Science
Replies
18
Views
6K
  • Engineering and Comp Sci Homework Help
Replies
0
Views
3K
Back
Top