AdamMooers / upsilon

1 stars 1 forks source link

Control loop currently does not work in hardware #6

Open mcgoron-peter opened 9 months ago

mcgoron-peter commented 9 months ago

The current control loop is written in Verilog. It works in simulation but fails when put into hardware. My bet is on failures due to the control loop math file, particularly the very large width arithmetic used.

A few solutions:

  1. Rewrite control_loop_math to use an ALU. This ALU only has to do addition, subtraction, multiplication.
  2. Rewrite control loop to be a real time module on Linux.
  3. Rewrite control loop to run on a coprocessor (branch)