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
AI Thread Summary
ROM (Read-Only Memory) is used to store programs that can only be read, while RAM (Random Access Memory) is utilized for data that can be read and written. The connection between ROM and RAM is crucial for program execution. When a program starts, it reads instructions from ROM, beginning at a designated address, and these instructions are then stored in the instruction register for processing. The discussion highlights the importance of control signals like CE~ (Chip Enable) and OE~ (Output Enable) for managing access to EPROM and RAM, ensuring that only one memory type is active at a time. A memory map is typically employed to define the specific addresses allocated for ROM and RAM, allowing for efficient memory management during program execution.
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: 571
  • Untitled.jpg
    Untitled.jpg
    37.5 KB · Views: 448
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 WhatHitMe
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Thread 'Project Documentation'
Trying to package up a small bank account manager project that I have been tempering on for a while. One that is certainly worth something to me. Although I have created methods to whip up quick documents with all fields and properties. I would like something better to reference in order to express the mechanical functions. It is unclear to me about any standardized format for code documentation that exists. I have tried object orientated diagrams with shapes to try and express the...
Back
Top