minor update

This commit is contained in:
Blaise Tine 2020-08-31 09:34:19 -04:00
parent c358226098
commit c1df08843c
2 changed files with 21 additions and 9 deletions

View file

@ -89,7 +89,7 @@
`endif
`ifndef LATENCY_FSQRT
`define LATENCY_FSQRT 9
`define LATENCY_FSQRT 10
`endif
`ifndef LATENCY_ITOF
@ -100,6 +100,18 @@
`define LATENCY_FTOI 3
`endif
`ifndef LATENCY_FADDMUL
`define LATENCY_FADDMUL 2
`endif
`ifndef LATENCY_FDIVSQRT
`define LATENCY_FDIVSQRT 2
`endif
`ifndef LATENCY_FCONV
`define LATENCY_FCONV 2
`endif
// CSR Addresses //////////////////////////////////////////////////////////////
`define CSR_FFLAGS 12'h001

View file

@ -53,14 +53,14 @@ module VX_fpnew #(
};
localparam fpnew_pkg::fpu_implementation_t FPU_IMPLEMENTATION = '{
PipeRegs:'{'{`LATENCY_FMADD, 0, 0, 0, 0}, // ADDMUL
'{default: `LATENCY_FDIV}, // DIVSQRT
'{default: `LATENCY_FNONCOMP}, // NONCOMP
'{default: `LATENCY_ITOF}}, // CONV
UnitTypes:'{'{default: UNIT_FMULADD}, // ADDMUL
'{default: UNIT_FDIVSQRT}, // DIVSQRT
'{default: UNIT_FNONCOMP}, // NONCOMP
'{default: UNIT_FCONV}}, // CONV
PipeRegs:'{'{`LATENCY_FADDMUL, 0, 0, 0, 0}, // ADDMUL
'{default: `LATENCY_FDIVSQRT}, // DIVSQRT
'{default: `LATENCY_FNONCOMP}, // NONCOMP
'{default: `LATENCY_FCONV}}, // CONV
UnitTypes:'{'{default: UNIT_FMULADD}, // ADDMUL
'{default: UNIT_FDIVSQRT}, // DIVSQRT
'{default: UNIT_FNONCOMP}, // NONCOMP
'{default: UNIT_FCONV}}, // CONV
PipeConfig: fpnew_pkg::DISTRIBUTED
};