Described internal signals of fdivsqrt top

This commit is contained in:
Cedar Turek 2022-12-30 11:01:02 -08:00
parent dd78eb6484
commit 320b1a7a89

View File

@ -57,23 +57,25 @@ module fdivsqrt(
); );
// Floating-point division and square root module, with optional integer division and remainder // Floating-point division and square root module, with optional integer division and remainder
// Computes X/Y, sqrt(X), A/B, or A%B
logic [`DIVb+3:0] WS, WC; logic [`DIVb+3:0] WS, WC; // Partial remainder components
logic [`DIVb+3:0] X; logic [`DIVb+3:0] X; // Iterator Initial Value (from dividend)
logic [`DIVb-1:0] D; logic [`DIVb-1:0] DPreproc, D; // Iterator Divisor
logic [`DIVb-1:0] DPreproc; logic [`DIVb:0] FirstU, FirstUM; // Intermediate result values
logic [`DIVb:0] FirstU, FirstUM; logic [`DIVb+1:0] FirstC; // Step tracker
logic [`DIVb+1:0] FirstC; logic Firstun; // Quotient selection
logic Firstun; logic WZeroE; // Early termination flag
logic WZeroE; logic SpecialCaseM; // Divide by zero, square root of negative, etc.
logic SpecialCaseM; logic DivStartE; // Enable signal for flops during stall
logic DivStartE;
// Integer div/rem signals // Integer div/rem signals
logic AZeroM, BZeroM, AZeroE, BZeroE, MDUM; logic AZeroE, BZeroE; // Numerator/Denominator is zero (Execute)
logic [`DIVBLEN:0] nE, nM, mM; logic AZeroM, BZeroM; // Numerator/Denominator is zero (Memory)
logic NegQuotM, ALTBM, AsM, W64M; logic MDUM; // Integer operation
logic [`XLEN-1:0] AM; logic [`DIVBLEN:0] nE, nM, mM; // Shift amounts
logic NegQuotM, ALTBM, AsM, W64M; // Special handling for postprocessor
logic [`XLEN-1:0] AM; // Original Numerator for postprocessor
fdivsqrtpreproc fdivsqrtpreproc( // Preprocessor fdivsqrtpreproc fdivsqrtpreproc( // Preprocessor
// Inputs // Inputs