mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-04-24 13:57:07 -04:00
formatting
This commit is contained in:
parent
b9317e7cd3
commit
b1f340ba5c
1 changed files with 1 additions and 2 deletions
|
@ -76,8 +76,7 @@ module fround import cvw::*; #(parameter cvw_t P) (
|
|||
assign Eeqm1 = ($signed(E) == -1);
|
||||
|
||||
// Logic for nonnegative mask and rounding bits
|
||||
// assign IMask = {1'b1, {P.NF{1'b0}}} >>> E; /// if E > Nf, this produces all 0s instead of all 1s. Hence exact handling is needed below.
|
||||
assign IMask = $signed({1'b1, {P.NF{1'b0}}}) >>> E;
|
||||
assign IMask = $signed({1'b1, {P.NF{1'b0}}}) >>> E; /// if E > Nf, this produces all 0s instead of all 1s. Hence exact handling is needed below.
|
||||
assign Tmasknonneg = ~IMask >>> 1'b1;
|
||||
assign HotE = IMask & ~(IMask << 1'b1);
|
||||
assign HotEP1 = HotE >> 1'b1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue