Program Memory - muneeb-mbytes/computerArchitectureCourse GitHub Wiki
MIPS:
Usually one could work with a design which has a single memory and data or one could have seperate one.
Let's have a look on two seperate memory:
The instruction memory is something from where we only read instructions; we do not modify this. Memories are sequential elements but in this present context we will not be changing the state of it so it will act like a combinational circuit because we will assume that the contents of these are fixed we are not changing it.
Address is supplied to it, address is an input, instruction which comes from the program is the output. As like that of combinational circuit, it responds instantly to the input.
RISC V:
-
A program memory is a memory unit to store the instructions of a program and supply instructions as per the address given.
-
The program memory has only read access because we cannot write any instructions in it.
-
Since the instruction memory only reads, we treat it as combinational logic.
-
The output of program memory is the contents of the location specified by the address input.