Skip to content

Testbenches

Tim Brewis edited this page Jul 1, 2022 · 2 revisions

APPS Input Testbench

  • Set RUN_APPS_TESTBENCH to 1 to enable this testbench.
  • The APPS inputs are disabled and replaced wit inputs from the lookup tables.
  • Set APPS_TESTBENCH_LAPS to determine the number of laps in the test.
    • The first lap always uses the standing start input data.
    • The second lap and beyond use the flying lap input data.
  • The ready-to-drive behaviour is unchanged, but can be overridden to use the 'USER' button as the signal with READY_TO_DRIVE_OVERRIDE.

Fault State Testbench

  • Set RUN_FAULT_STATE_TESTBENCH to 1 to enable this testbench.
  • After the system enters the ready-to-drive state and the threads begin running, pressing the 'USER' button on the dev board will trigger the fault state.
  • This allows us to easily cause a fault and test the behaviour of the system in the fault condition.