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

In summary, the conversation discusses the use of ROM and RAM memory in storing and executing programs. The EPROM and RAM memory chips are enabled separately and the program typically starts by reading instructions from ROM address 0x0000 or 0x0001. A memory map is used to define which parts of the ROM and RAM are accessed, and it is not necessary to use all of either chip.
  • #1
vead
92
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: 516
  • Untitled.jpg
    Untitled.jpg
    37.5 KB · Views: 405
Technology news on Phys.org
  • #2
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 WhatHitMe

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

What is fetching from program memory?

Fetching from program memory is the process of retrieving instructions or data from the memory of a computer program. It is an essential step in the execution of a program and involves the CPU accessing the program's instructions and data from the memory and loading them into its registers for processing.

Why is fetching from program memory important?

Fetching from program memory is important because it allows the CPU to access and retrieve instructions and data necessary for the program's execution. This enables the program to carry out its intended functions and operations.

How does fetching from program memory work?

Fetching from program memory involves the CPU sending out a request to the memory for specific instructions or data. The memory then responds by providing the requested information to the CPU, which is then loaded into the CPU's registers for processing.

What is the difference between fetching from program memory and fetching from data memory?

Fetching from program memory involves retrieving instructions and data from the memory used by the program itself, while fetching from data memory involves retrieving data from a separate memory used for storing variables and other data used by the program.

Can fetching from program memory be optimized?

Yes, fetching from program memory can be optimized through various techniques such as caching, prefetching, and pipelining. These methods aim to reduce the time and resources needed for fetching instructions and data, thereby improving the overall performance of a program.

Similar threads

  • Programming and Computer Science
Replies
2
Views
2K
  • Programming and Computer Science
Replies
6
Views
1K
  • Programming and Computer Science
Replies
5
Views
9K
  • Programming and Computer Science
Replies
3
Views
1K
  • Sticky
  • Programming and Computer Science
Replies
13
Views
4K
  • Programming and Computer Science
Replies
22
Views
1K
  • Programming and Computer Science
Replies
29
Views
3K
Replies
6
Views
1K
  • Programming and Computer Science
Replies
30
Views
4K
Back
Top