mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
renamed test-shared.vh to config-shared.vh
This commit is contained in:
parent
28823aca6e
commit
d58ece3d44
@ -159,4 +159,4 @@ localparam ZBS_SUPPORTED = 0;
|
|||||||
// Memory synthesis configuration
|
// Memory synthesis configuration
|
||||||
localparam USE_SRAM = 0;
|
localparam USE_SRAM = 0;
|
||||||
|
|
||||||
`include "test-shared.vh"
|
`include "config-shared.vh"
|
||||||
|
@ -172,4 +172,4 @@ localparam ZBS_SUPPORTED = 1;
|
|||||||
// Memory synthesis configuration
|
// Memory synthesis configuration
|
||||||
localparam USE_SRAM = 0;
|
localparam USE_SRAM = 0;
|
||||||
|
|
||||||
`include "test-shared.vh"
|
`include "config-shared.vh"
|
||||||
|
@ -160,5 +160,5 @@ localparam ZBS_SUPPORTED = 0;
|
|||||||
// Memory synthesis configuration
|
// Memory synthesis configuration
|
||||||
localparam USE_SRAM = 0;
|
localparam USE_SRAM = 0;
|
||||||
|
|
||||||
`include "test-shared.vh"
|
`include "config-shared.vh"
|
||||||
|
|
||||||
|
@ -161,4 +161,4 @@ localparam ZBS_SUPPORTED = 1;
|
|||||||
// Memory synthesis configuration
|
// Memory synthesis configuration
|
||||||
localparam USE_SRAM = 0;
|
localparam USE_SRAM = 0;
|
||||||
|
|
||||||
`include "test-shared.vh"
|
`include "config-shared.vh"
|
||||||
|
@ -160,4 +160,4 @@ localparam ZBS_SUPPORTED = 0;
|
|||||||
// Memory synthesis configuration
|
// Memory synthesis configuration
|
||||||
localparam USE_SRAM = 0;
|
localparam USE_SRAM = 0;
|
||||||
|
|
||||||
`include "test-shared.vh"
|
`include "config-shared.vh"
|
||||||
|
@ -159,4 +159,4 @@ localparam ZBS_SUPPORTED = 0;
|
|||||||
// Memory synthesis configuration
|
// Memory synthesis configuration
|
||||||
localparam USE_SRAM = 0;
|
localparam USE_SRAM = 0;
|
||||||
|
|
||||||
`include "test-shared.vh"
|
`include "config-shared.vh"
|
||||||
|
@ -162,4 +162,4 @@ localparam ZBS_SUPPORTED = 0;
|
|||||||
// Memory synthesis configuration
|
// Memory synthesis configuration
|
||||||
localparam USE_SRAM = 0;
|
localparam USE_SRAM = 0;
|
||||||
|
|
||||||
`include "test-shared.vh"
|
`include "config-shared.vh"
|
||||||
|
@ -165,4 +165,4 @@ localparam ZBS_SUPPORTED = 1;
|
|||||||
// Memory synthesis configuration
|
// Memory synthesis configuration
|
||||||
localparam USE_SRAM = 0;
|
localparam USE_SRAM = 0;
|
||||||
|
|
||||||
`include "test-shared.vh"
|
`include "config-shared.vh"
|
||||||
|
@ -162,4 +162,4 @@ localparam ZBS_SUPPORTED = 0;
|
|||||||
// Memory synthesis configuration
|
// Memory synthesis configuration
|
||||||
localparam USE_SRAM = 0;
|
localparam USE_SRAM = 0;
|
||||||
|
|
||||||
`include "test-shared.vh"
|
`include "config-shared.vh"
|
||||||
|
@ -112,8 +112,6 @@ module fdivsqrtpreproc import cvw::*; #(parameter cvw_t P) (
|
|||||||
assign Xfract = (IFX << ell) << 1;
|
assign Xfract = (IFX << ell) << 1;
|
||||||
assign Dfract = (IFD << mE) << 1;
|
assign Dfract = (IFD << mE) << 1;
|
||||||
|
|
||||||
// *** CT: move to fdivsqrtintpreshift
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////
|
||||||
// Integer Right Shift to digit boundary
|
// Integer Right Shift to digit boundary
|
||||||
// Determine DivXShifted (X shifted to digit boundary)
|
// Determine DivXShifted (X shifted to digit boundary)
|
||||||
@ -152,14 +150,14 @@ module fdivsqrtpreproc import cvw::*; #(parameter cvw_t P) (
|
|||||||
assign ISpecialCaseE = 0;
|
assign ISpecialCaseE = 0;
|
||||||
end
|
end
|
||||||
|
|
||||||
// CT *** fdivsqrtfplead1
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////
|
||||||
// Floating-Point Preprocessing
|
// Floating-Point Preprocessing
|
||||||
// append leading 1 (for nonzero inputs)
|
// append leading 1 (for nonzero inputs)
|
||||||
// shift square root to be in range [1/4, 1)
|
// shift square root to be in range [1/4, 1)
|
||||||
// Normalized numbers are shifted right by 1 if the exponent is odd
|
// Normalized numbers are shifted right by 1 if the exponent is odd
|
||||||
// Denormalized numbers have Xe = 0 and an unbiased exponent of 1-BIAS. They are shifted right if the number of leading zeros is odd.
|
// Subnormal numbers have Xe = 0 and an unbiased exponent of 1-BIAS. They are shifted right if the number of leading zeros is odd.
|
||||||
|
// NOTE: there might be a discrepancy that X is never right shifted by 2. However
|
||||||
|
// it comes out in the wash and gives the right answer. Investigate later if possible.
|
||||||
//////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////
|
||||||
|
|
||||||
assign DivX = {3'b000, ~NumerZeroE, Xfract};
|
assign DivX = {3'b000, ~NumerZeroE, Xfract};
|
||||||
|
Loading…
Reference in New Issue
Block a user