mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Update fregfile.sv
Program clean up
This commit is contained in:
parent
7770f7e79b
commit
2739ea26a7
@ -30,8 +30,8 @@ module fregfile #(parameter FLEN) (
|
|||||||
input logic clk, reset,
|
input logic clk, reset,
|
||||||
input logic we4, // write enable
|
input logic we4, // write enable
|
||||||
input logic [4:0] a1, a2, a3, a4, // adresses
|
input logic [4:0] a1, a2, a3, a4, // adresses
|
||||||
input logic [FLEN-1:0] wd4, // write data
|
input logic [FLEN-1:0] wd4, // write data
|
||||||
output logic [FLEN-1:0] rd1, rd2, rd3 // read data
|
output logic [FLEN-1:0] rd1, rd2, rd3 // read data
|
||||||
);
|
);
|
||||||
|
|
||||||
logic [FLEN-1:0] rf[31:0];
|
logic [FLEN-1:0] rf[31:0];
|
||||||
@ -51,4 +51,3 @@ module fregfile #(parameter FLEN) (
|
|||||||
assign #2 rd3 = rf[a3];
|
assign #2 rd3 = rf[a3];
|
||||||
|
|
||||||
endmodule // regfile
|
endmodule // regfile
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user