Commit graph

11 commits

Author SHA1 Message Date
Aadi Desai 00d35d90b2
Update testbench for clocked saw2sin.sv 2023-06-04 14:26:05 +01:00
Aadi Desai 36b8ed998e
Add click to saw2sin.sv to fix glitches 2023-06-04 14:30:44 +01:00
Aadi Desai 550827217c
Output error from expected correctly, - means low 2023-05-30 14:15:44 +01:00
Aadi Desai bbf9bf3f0c
Further adjust bit offsets, improve accuracy from 1.34601 to 0.455326 2023-05-30 13:49:23 +01:00
Aadi Desai 8d276e71a4
Adjust bit offsets, improve accuracy from 1.34601 to 0.752564 2023-05-30 12:31:53 +01:00
Aadi Desai ef78c48a8a
Add info to testbench debug output 2023-05-30 12:29:18 +01:00
Aadi Desai 4ac4c5266a
Update README.md 2023-05-28 16:24:06 +01:00
Aadi Desai 6475de9495
Add cordic.sv and test_saw2sin.py
test_saw2sin.py: cocotb testbench using verilator
cordic.sv: o_sin adjustments mask erratic results at extremes, avg error is 1.346 vs testbench
2023-05-28 16:15:56 +01:00
Aadi Desai 44e148de38
Add saw2sin.sv
Handles inversion and reversing to create full sine wave from quarter wave
2023-05-28 16:04:18 +01:00
Aadi Desai e00149bb62
Add saw2sin_poly.sv
Polynomial approximation to sine
Input 0-65535 represents 0-90 degrees
Output 0-65535 represents 0-1
2023-05-28 16:03:39 +01:00
Aadi Desai 12139ee462
Initial commit 2023-05-28 16:01:36 +01:00