GPR Wrapper Interface Done

This commit is contained in:
felsabbagh3
2019-09-09 14:04:07 -04:00
parent bce9bc443c
commit 1882147370
29 changed files with 3549 additions and 3707 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -9,9 +9,7 @@ interface VX_csr_write_request_inter ();
wire is_csr;
wire[11:0] csr_address;
/* verilator lint_off UNUSED */
wire[31:0] csr_result;
/* verilator lint_on UNUSED */
// source-side view
modport snk (

View File

@@ -0,0 +1,28 @@
`ifndef VX_GPR_CLONE_INTER
`define VX_GPR_CLONE_INTER
interface VX_gpr_clone_inter ();
wire is_clone;
wire[`NW_M1:0] warp_num;
modport snk (
input is_clone,
input warp_num
);
modport src (
output is_clone,
output warp_num
);
endinterface
`endif

View File

@@ -0,0 +1,28 @@
`ifndef VX_GPR_JAL_INTER
`define VX_GPR_JAL_INTER
interface VX_gpr_jal_inter ();
wire is_jal;
wire[31:0] curr_PC;
modport snk (
input is_jal,
input curr_PC
);
modport src (
output is_jal,
output curr_PC
);
endinterface
`endif

View File

@@ -0,0 +1,30 @@
`ifndef VX_GPR_READ
`define VX_GPR_READ
interface VX_gpr_read_inter ();
wire[4:0] rs1;
wire[4:0] rs2;
wire[`NW_M1:0] warp_num;
modport snk (
input rs1,
input rs2,
input warp_num
);
modport src (
output rs1,
output rs2,
output warp_num
);
endinterface
`endif

View File

@@ -0,0 +1,29 @@
`ifndef VX_GPR_WSPAWN_INTER
`define VX_GPR_WSPAWN_INTER
interface VX_gpr_wspawn_inter ();
wire is_wspawn;
wire[`NW_M1:0] which_wspawn;
// wire[`NW_M1:0] warp_num;
modport snk (
input is_wspawn,
input which_wspawn
);
modport src (
output is_wspawn,
output which_wspawn
);
endinterface
`endif

View File

@@ -6,11 +6,11 @@
interface VX_wb_inter ();
wire[`NT_M1:0][31:0] write_data;
wire[4:0] rd;
wire[1:0] wb;
wire[`NT_M1:0] wb_valid;
wire[`NW_M1:0] wb_warp_num;
wire[`NT_M1:0][31:0] write_data;
wire[4:0] rd;
wire[1:0] wb;
wire[`NT_M1:0] wb_valid;
wire[`NW_M1:0] wb_warp_num;