How do you use the instruction register and manage memory in a computer system?

  • Thread starter Thread starter vead
  • Start date Start date
  • Tags Tags
    Memory Program
Click For Summary
SUMMARY

The discussion focuses on the use of the instruction register and memory management in computer systems, specifically addressing the interaction between ROM and RAM. It is established that ROM (Read-Only Memory) stores programs that can only be read, while RAM (Random Access Memory) is utilized during program execution. The conversation highlights the importance of a memory map that defines the access points for both ROM and RAM, typically starting from address 0x0000 or 0x0001, depending on the processor architecture. Additionally, it emphasizes the necessity of managing CE~ and OE~ signals to ensure that only one type of memory is enabled at a time.

PREREQUISITES
  • Understanding of ROM (Read-Only Memory) and RAM (Random Access Memory)
  • Familiarity with memory mapping concepts
  • Knowledge of processor architecture and instruction execution
  • Basic understanding of control signals like CE~ and OE~
NEXT STEPS
  • Research how to create and utilize a memory map in embedded systems
  • Learn about different processor architectures and their memory addressing schemes
  • Explore the role of control signals in memory management
  • Investigate the differences between various types of memory (e.g., EEPROM, Flash) and their applications
USEFUL FOR

Computer engineers, embedded systems developers, and students studying computer architecture will benefit from this discussion, particularly those interested in memory management and instruction execution processes.

vead
Messages
92
Reaction score
0
Hello ,
I need help , rom memory is memory that store program. we can only read rom memory.

https://www.physicsforums.com/attachments/https://www.physicsforums.com/attachments/77060
look this diagram why does we connect both memory. I have read that when we start to read the program memory. we get data from program memory and store into instruction register. In my first diagram.

https://www.physicsforums.com/attachments/https://www.physicsforums.com/attachments/77061

how and where to use Instruction register ?
 

Attachments

  • PC2.png
    PC2.png
    8.4 KB · Views: 593
  • Untitled.jpg
    Untitled.jpg
    37.5 KB · Views: 465
Technology news on Phys.org
vead said:
Hello ,
I need help , rom memory is memory that store program. we can only read rom memory.

https://www.physicsforums.com/attachments/https://www.physicsforums.com/attachments/77060
look this diagram why does we connect both memory. I have read that when we start to read the program memory. we get data from program memory and store into instruction register. In my first diagram.

https://www.physicsforums.com/attachments/https://www.physicsforums.com/attachments/77061

how and where to use Instruction register ?

You have different CE~ and OE~ signals for the EPROM and RAM memory chips. They are not both enabled at the same time. You would start with the program reading from ROM address 0x0000 or 0x0001 (depending on the processor architecture), and executing the instructions that you read from there. As the program progresses, it can use part of the RAM memory chip. You would typically have a "memory map" that defines what part of that 64KB ROM and what part of the 64KB RAM you access. You would not generally use all of either chip, since they generally share the same "memory map". Make sense?
 
  • Like
Likes   Reactions: WhatHitMe

Similar threads

  • · Replies 5 ·
Replies
5
Views
9K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
9K
  • · Replies 6 ·
Replies
6
Views
3K
  • Sticky
  • · Replies 13 ·
Replies
13
Views
8K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
7K