mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
divsqrt working for floating point
This commit is contained in:
parent
f75d1c2eef
commit
d7e90a7086
@ -311,7 +311,7 @@ module creg(input logic clk,
|
|||||||
);
|
);
|
||||||
logic [`DIVLEN+3:0] CMux;
|
logic [`DIVLEN+3:0] CMux;
|
||||||
|
|
||||||
mux2 #(`DIVLEN+4) Cmux({1'b1, C[`DIVLEN+3:1]}, {4'b1111, Sqrt, {(`DIVLEN-1){1'b0}}}, Start, CMux);
|
mux2 #(`DIVLEN+4) Cmux({1'b1, C[`DIVLEN+3:1]}, {4'b11111, Sqrt, {(`DIVLEN-1){1'b0}}}, Start, CMux);
|
||||||
flop #(`DIVLEN+4) cflop(clk, CMux, C);
|
flop #(`DIVLEN+4) cflop(clk, CMux, C);
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user