mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
typo in srtfsm
This commit is contained in:
parent
1f74528792
commit
13831aa3d3
@ -56,7 +56,7 @@ module srtfsm(
|
|||||||
output logic DivDone,
|
output logic DivDone,
|
||||||
output logic NegSticky,
|
output logic NegSticky,
|
||||||
output logic DivBusy
|
output logic DivBusy
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef enum logic [1:0] {IDLE, BUSY, DONE} statetype;
|
typedef enum logic [1:0] {IDLE, BUSY, DONE} statetype;
|
||||||
statetype state;
|
statetype state;
|
||||||
@ -69,7 +69,7 @@ module srtfsm(
|
|||||||
assign DivBusy = (state == BUSY);
|
assign DivBusy = (state == BUSY);
|
||||||
// calculate sticky bit
|
// calculate sticky bit
|
||||||
// - there is a chance that a value is subtracted infinitly, resulting in an exact QM result
|
// - there is a chance that a value is subtracted infinitly, resulting in an exact QM result
|
||||||
// this is only a problem on radix 2 (and pssibly maximally redundant 4) since minimally redundant
|
// this is only a problem on radix 2 (and possibly maximally redundant 4) since minimally redundant
|
||||||
// radix-4 division can't create a QM that continually adds 0's
|
// radix-4 division can't create a QM that continually adds 0's
|
||||||
if (`RADIX == 2) begin
|
if (`RADIX == 2) begin
|
||||||
logic [`DIVb+3:0] FZero, FSticky;
|
logic [`DIVb+3:0] FZero, FSticky;
|
||||||
|
Loading…
Reference in New Issue
Block a user