Before FE BE abstraction
This commit is contained in:
45
rtl/interfaces/VX_mw_wb_inter.v
Normal file
45
rtl/interfaces/VX_mw_wb_inter.v
Normal file
@@ -0,0 +1,45 @@
|
||||
|
||||
`include "VX_define.v"
|
||||
|
||||
`ifndef VX_MW_WB_INTER
|
||||
|
||||
`define VX_MW_WB_INTER
|
||||
|
||||
interface VX_mw_wb_inter ();
|
||||
|
||||
wire[`NT_M1:0][31:0] alu_result;
|
||||
wire[`NT_M1:0][31:0] mem_result;
|
||||
wire[4:0] rd;
|
||||
wire[1:0] wb;
|
||||
wire[31:0] PC_next;
|
||||
wire[`NT_M1:0] valid;
|
||||
wire [`NW_M1:0] warp_num;
|
||||
|
||||
// source-side view
|
||||
modport snk (
|
||||
input alu_result,
|
||||
input mem_result,
|
||||
input rd,
|
||||
input wb,
|
||||
input PC_next,
|
||||
input valid,
|
||||
input warp_num
|
||||
);
|
||||
|
||||
|
||||
// source-side view
|
||||
modport src (
|
||||
input alu_result,
|
||||
input mem_result,
|
||||
input rd,
|
||||
input wb,
|
||||
input PC_next,
|
||||
input valid,
|
||||
input warp_num
|
||||
);
|
||||
|
||||
|
||||
endinterface
|
||||
|
||||
|
||||
`endif
|
||||
Reference in New Issue
Block a user