Question: ( 2 5 points ) Design a simple pipelined microprocessor: instructions are of the form a = b op c , where operands

(25 points) Design a simple pipelined microprocessor: instructions are of the form "a=b op c", where
operands a and b are memory locations, operand c is a provided value, and op is the operation: +,-, AND,
OR. To execute one instruction, follow this process:
Cycle 1: Fetch b from memory using the read memory port; note that b's value won't be available
until the next clock cycle.
Cycle 2: Now that b's value is fetched, perform the operation of (b value) add/subtract/AND/OR
c_value.
Cycle 3: 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
} operation_t;
module spring_exam_2_problem_3(
input logic clk,
The address of each operand.
input logic [15:0] a_address,
input logic 15:0 b_address,
The value for operand c.
input logic 15:0 c_value,
The operation.
input operation_t operation,
The read memory port: one cycle after setting the address, the data for this address is valid.
output logic [15:0] read_address,
input logic [15:0] read_data,
The write memory port: the provided data is written to the given address every clock cycle.
output logic [15:0] write_address,
output logic 15:0 write_data
;
( 2 5 points ) Design a simple pipelined

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!