Update fregfile.sv

Program clean up
This commit is contained in:
Harshini Srinath 2023-06-11 16:49:20 -07:00 committed by GitHub
parent a98096aa7d
commit cf39819bac

View File

@ -30,8 +30,8 @@ module fregfile #(parameter FLEN) (
input logic clk, reset,
input logic we4, // write enable
input logic [4:0] a1, a2, a3, a4, // adresses
input logic [FLEN-1:0] wd4, // write data
output logic [FLEN-1:0] rd1, rd2, rd3 // read data
input logic [FLEN-1:0] wd4, // write data
output logic [FLEN-1:0] rd1, rd2, rd3 // read data
);
logic [FLEN-1:0] rf[31:0];
@ -51,4 +51,3 @@ module fregfile #(parameter FLEN) (
assign #2 rd3 = rf[a3];
endmodule // regfile