SerialLite II IP Core User Guide

ID 683179
Date 7/13/2021
Public
Document Table of Contents

4.3.2.2. Testbench Time-Out

The testbench uses a maximum simulation time to guard against infinite loops or stuck simulations.
The default value of 500,000,000 picoseconds is sufficient for most simulation runs. If more time is needed for a particularly long run, you can increase the WATCHTIME value.
  • For Verilog HDL: Change the already defined WATCHTIME inside the testbench main section`define WATCHTIME 100,000,000.
  • For VHDL: edit the <variation_name> _tb.vhd to change the constant WATCHTIME: time: = 100000000 ns.
In Verilog HDL, instead of increasing gthe WATCHTIM, you could reset the watch timer from time to time (for example, after each test case or even after each packet is sent) by adding the following line, as needed, to the testbench main section:
reset_watchdog_timer;
Every time the reset_watchdog_timer task is called, the testbench time-out resets with another WATCHTIME time.