33 lines
712 B
Verilog
33 lines
712 B
Verilog
`ifndef VX_DECODE_IF
|
|
`define VX_DECODE_IF
|
|
|
|
`include "VX_define.vh"
|
|
|
|
interface VX_decode_if ();
|
|
|
|
wire [`NUM_THREADS-1:0] valid;
|
|
wire [`NW_BITS-1:0] warp_num;
|
|
wire [31:0] curr_PC;
|
|
wire [31:0] next_PC;
|
|
|
|
wire [`EX_BITS-1:0] ex_type;
|
|
wire [`OP_BITS-1:0] instr_op;
|
|
|
|
wire [`NR_BITS-1:0] rd;
|
|
wire [`NR_BITS-1:0] rs1;
|
|
wire [`NR_BITS-1:0] rs2;
|
|
wire [31:0] imm;
|
|
|
|
wire rs1_is_PC;
|
|
wire rs2_is_imm;
|
|
|
|
wire use_rs1;
|
|
wire use_rs2;
|
|
|
|
wire [`WB_BITS-1:0] wb;
|
|
|
|
wire ready;
|
|
|
|
endinterface
|
|
|
|
`endif |