floating point support fixes
This commit is contained in:
21
hw/rtl/interfaces/VX_cmt_to_csr_if.v
Normal file
21
hw/rtl/interfaces/VX_cmt_to_csr_if.v
Normal file
@@ -0,0 +1,21 @@
|
||||
`ifndef VX_CMT_TO_CSR_IF
|
||||
`define VX_CMT_TO_CSR_IF
|
||||
|
||||
`include "VX_define.vh"
|
||||
|
||||
interface VX_cmt_to_csr_if ();
|
||||
|
||||
wire valid;
|
||||
wire [`NE_BITS:0] num_commits;
|
||||
|
||||
wire upd_fflags;
|
||||
wire [`NW_BITS-1:0] fpu_warp_num;
|
||||
wire fflags_NV;
|
||||
wire fflags_DZ;
|
||||
wire fflags_OF;
|
||||
wire fflags_UF;
|
||||
wire fflags_NX;
|
||||
|
||||
endinterface
|
||||
|
||||
`endif
|
||||
@@ -1,5 +1,5 @@
|
||||
`ifndef VX_COMMIT_IS_IF
|
||||
`define VX_COMMIT_IS_IF
|
||||
`ifndef VX_CMT_TO_ISSUE_IF
|
||||
`define VX_CMT_TO_ISSUE_IF
|
||||
|
||||
`include "VX_define.vh"
|
||||
|
||||
@@ -13,7 +13,7 @@ typedef struct packed {
|
||||
} is_data_t;
|
||||
|
||||
|
||||
interface VX_commit_is_if ();
|
||||
interface VX_cmt_to_issue_if ();
|
||||
|
||||
wire alu_valid;
|
||||
wire lsu_valid;
|
||||
@@ -1,5 +1,5 @@
|
||||
`ifndef VX_FPU_FROM_CSR_IF
|
||||
`define VX_FPU_FROM_CSR_IF
|
||||
`ifndef VX_CSR_TO_FPU_IF
|
||||
`define VX_CSR_TO_FPU_IF
|
||||
|
||||
`include "VX_define.vh"
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
`IGNORE_WARNINGS_BEGIN
|
||||
`endif
|
||||
|
||||
interface VX_fpu_from_csr_if ();
|
||||
interface VX_csr_to_fpu_if ();
|
||||
|
||||
wire [`NW_BITS-1:0] warp_num;
|
||||
wire [`NW_BITS-1:0] warp_num;
|
||||
wire [`FRM_BITS-1:0] frm;
|
||||
|
||||
endinterface
|
||||
21
hw/rtl/interfaces/VX_fpu_to_cmt_if.v
Normal file
21
hw/rtl/interfaces/VX_fpu_to_cmt_if.v
Normal file
@@ -0,0 +1,21 @@
|
||||
`ifndef VX_FPU_TO_CMT_IF
|
||||
`define VX_FPU_TO_CMT_IF
|
||||
|
||||
`include "VX_define.vh"
|
||||
|
||||
interface VX_fpu_to_cmt_if ();
|
||||
|
||||
wire valid;
|
||||
wire [`ISTAG_BITS-1:0] issue_tag;
|
||||
wire [`NUM_THREADS-1:0][31:0] data;
|
||||
wire upd_fflags;
|
||||
wire fflags_NV;
|
||||
wire fflags_DZ;
|
||||
wire fflags_OF;
|
||||
wire fflags_UF;
|
||||
wire fflags_NX;
|
||||
wire ready;
|
||||
|
||||
endinterface
|
||||
|
||||
`endif
|
||||
@@ -1,14 +0,0 @@
|
||||
`ifndef VX_GPR_DATA_IF
|
||||
`define VX_GPR_DATA_IF
|
||||
|
||||
`include "VX_define.vh"
|
||||
|
||||
interface VX_gpr_data_if ();
|
||||
|
||||
wire [`NUM_THREADS-1:0][31:0] rs1_data;
|
||||
wire [`NUM_THREADS-1:0][31:0] rs2_data;
|
||||
wire [`NUM_THREADS-1:0][31:0] rs3_data;
|
||||
|
||||
endinterface
|
||||
|
||||
`endif
|
||||
29
hw/rtl/interfaces/VX_gpr_read_if.v
Normal file
29
hw/rtl/interfaces/VX_gpr_read_if.v
Normal file
@@ -0,0 +1,29 @@
|
||||
`ifndef VX_GPR_READ_IF
|
||||
`define VX_GPR_READ_IF
|
||||
|
||||
`include "VX_define.vh"
|
||||
|
||||
interface VX_gpr_read_if ();
|
||||
|
||||
wire valid;
|
||||
|
||||
wire [`NW_BITS-1:0] warp_num;
|
||||
|
||||
wire [`NR_BITS-1:0] rs1;
|
||||
wire [`NR_BITS-1:0] rs2;
|
||||
wire [`NR_BITS-1:0] rs3;
|
||||
|
||||
wire use_rs3;
|
||||
|
||||
wire rs1_is_fp;
|
||||
wire rs2_is_fp;
|
||||
|
||||
wire [`NUM_THREADS-1:0][31:0] rs1_data;
|
||||
wire [`NUM_THREADS-1:0][31:0] rs2_data;
|
||||
wire [`NUM_THREADS-1:0][31:0] rs3_data;
|
||||
|
||||
wire ready;
|
||||
|
||||
endinterface
|
||||
|
||||
`endif
|
||||
@@ -1,13 +0,0 @@
|
||||
`ifndef VX_PERF_CNTRS_IF
|
||||
`define VX_PERF_CNTRS_IF
|
||||
|
||||
`include "VX_define.vh"
|
||||
|
||||
interface VX_perf_cntrs_if ();
|
||||
|
||||
wire [63:0] total_cycles;
|
||||
wire [63:0] total_instrs;
|
||||
|
||||
endinterface
|
||||
|
||||
`endif
|
||||
Reference in New Issue
Block a user