-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEX_WB.v
39 lines (30 loc) · 1.15 KB
/
EX_WB.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
`timescale 1ns / 1ps
/////////////////////////////////////////////////////////////////////////////////
// Michael Tangy //
// ECE 483-001 //
// //
// 7/14/2015 //
// //
// This file contains our intermediate Execute and memort write //
// register for our single cycle and pipelined CPU's //
/////////////////////////////////////////////////////////////////////////////////
module EX_WB(
input clk,
input rst,
input [71:0] in,
output [71:0] out
);
reg [71:0] control;
assign out = control;
always @ (posedge clk) begin
if(rst == 1)
begin
control <= 0;
end
else
control <= in;
/* control[31:0] <= in[31:0]; //result
control[32] <= in[32]; //WE
control[37:33] <= in[37:33]; //return Address*/
end
endmodule