Question: That is all question In the single cycle CPU design it is necessary to have two memories, one for instructions and one for data. Now,
That is all question
In the single cycle CPU design it is necessary to have two memories, one for instructions and one for data. Now, you are asked to modify the single cycle CPU so that instructions and data can share the same memory.
Since arithmetic RR branch BEQ and jump instructions do not access data, they can still complete in one cycle since they access the memory only once However, loads LW and stores SW must take two cyeles. In the first cyele, the instruction is fetched and decoded, and the address is computed in the ALU; in the second cycle, the memory is accessed and, in the case of load, the returned value is stored in register.
The proposed data path is shown on the last page of the exam you can tear off for convenience For the second cyele of loads, we must buffer the memory address and the destination register address obtained in the first cycle. For this purpose, two registers, MemData@ bits and rtbuf bits have been added. Additionally, to handle stores, we must also buffer the value to store. For this purpose, a bit register MemData has been added. Since these three registers are clocked in every cycle, they do not need any control point.
The control unit must be sequential. So in effect, we now have a multicycle CPU. The state diagram for the controller has three states, and and is shown in Figure below. All instructions are fetched and decoded including fetching the registers in State RR JUMP or BEQ instructions are also executed in State A LW instruction is executed in State and a SW instruction is executed in State
Please complete the design by specifying the values of the control points using or X dont care in tables and respectively. Make sure you identify all the don't care's since they simplify the control circuit. Some examples of the notation to use are shown in the tables. Control points may depend not only on the state, but also on the opcode.
Table Control points in state pts
Table Control points in state pts
Table Control points in state pts
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
