Question: ( 2 5 points ) Design a simple pipelined microprocessor: instructions are of the form a = b op c , where operands
points Design a simple pipelined microprocessor: instructions are of the form op where
operands a and are memory locations, operand is a provided value, and op is the operation: AND,
OR To execute one instruction, follow this process:
Cycle : Fetch b from memory using the read memory port; note that bs value won't be available
until the next clock cycle.
Cycle : Now that bs value is fetched, perform the operation of b value addsubtractANDOR
cvalue.
Cycle : Store the result of the operation using the write memory port.
Use pipelining to start executing a new instruction every clock cycle.
typedef enum logic
ADD,
SUBTRACT,
AND,
OR
operationt;
module springexamproblem
input logic clk
The address of each operand.
input logic : aaddress,
input logic : baddress,
The value for operand
input logic : cvalue,
The operation.
input operationt operation,
The read memory port: one cycle after setting the address, the data for this address is valid.
output logic : readaddress,
input logic : readdata,
The write memory port: the provided data is written to the given address every clock cycle.
output logic : writeaddress,
output logic : writedata
;
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
