code refactoring for Vivado compatibility
This commit is contained in:
29
hw/rtl/interfaces/VX_gpr_req_if.sv
Normal file
29
hw/rtl/interfaces/VX_gpr_req_if.sv
Normal file
@@ -0,0 +1,29 @@
|
||||
`ifndef VX_GPR_REQ_IF
|
||||
`define VX_GPR_REQ_IF
|
||||
|
||||
`include "VX_define.vh"
|
||||
|
||||
interface VX_gpr_req_if ();
|
||||
|
||||
wire [`NW_BITS-1:0] wid;
|
||||
wire [`NR_BITS-1:0] rs1;
|
||||
wire [`NR_BITS-1:0] rs2;
|
||||
wire [`NR_BITS-1:0] rs3;
|
||||
|
||||
modport master (
|
||||
output wid,
|
||||
output rs1,
|
||||
output rs2,
|
||||
output rs3
|
||||
);
|
||||
|
||||
modport slave (
|
||||
input wid,
|
||||
input rs1,
|
||||
input rs2,
|
||||
input rs3
|
||||
);
|
||||
|
||||
endinterface
|
||||
|
||||
`endif
|
||||
Reference in New Issue
Block a user