cocotb_wrapper.testbench.Testbench.start_clk#

Testbench.start_clk(dut, period, units)[source]#

Start the clock.

Parameters:
  • dut (HierarchyObject) – The device under test

  • period (int) – The clock period. Must convert to an even number of timesteps

  • units (str | None) – One of 'step', 'fs', 'ps', 'ns', 'us', 'ms', 'sec'. When units is 'step', the timestep is determined by the simulator (see COCOTB_HDL_TIMEPRECISION)

Return type:

None