upsilon/firmware/rtl/control_loop/control_loop_cmds.vh

12 lines
347 B
Plaintext
Raw Normal View History

`define CONTROL_LOOP_NOOP 0
`define CONTROL_LOOP_STATUS 1
`define CONTROL_LOOP_SETPT 2
`define CONTROL_LOOP_P 3
`define CONTROL_LOOP_I 4
`define CONTROL_LOOP_ERR 5
`define CONTROL_LOOP_Z 6
2022-10-23 14:21:31 -04:00
`define CONTROL_LOOP_CYCLES 7
2022-11-21 21:41:50 -05:00
`define CONTROL_LOOP_DELAY 8
`define CONTROL_LOOP_CMD_WIDTH 8
2022-11-21 21:41:50 -05:00
`define CONTROL_LOOP_WRITE_BIT (1 << (`CONTROL_LOOP_CMD_WIDTH-1))