mirror of
https://github.com/supleed2/cordic.git
synced 2024-12-22 21:55:50 +00:00
Adjust bit offsets, improve accuracy from 1.34601 to 0.752564
This commit is contained in:
parent
ef78c48a8a
commit
8d276e71a4
|
@ -13,8 +13,8 @@ always_comb reverse = i_saw[14];
|
||||||
|
|
||||||
logic [15:0] qsaw;
|
logic [15:0] qsaw;
|
||||||
always_comb qsaw = reverse
|
always_comb qsaw = reverse
|
||||||
? {~i_saw[13:0], 2'b01} // Reverse
|
? {~i_saw[13:0], 2'b11} // Reverse
|
||||||
: {i_saw[13:0], 2'b00}; // Normal
|
: {i_saw[13:0], 2'b01}; // Normal
|
||||||
|
|
||||||
logic [15:0] qsin;
|
logic [15:0] qsin;
|
||||||
cordic cordic
|
cordic cordic
|
||||||
|
|
Loading…
Reference in a new issue