Test and Handle Discovery #
This document is about how cocotb discovers and stores handles once initialized after vlog_startup_routine.
__init__.py
is eventually called, which callsget_root_handle
to get youdut
CHECK_AND_STORE(dut)
- Adds
dut
to a vector ofGpiObjHdl
-handle_map
- python creates
SimHandle(dut)
- starts test via regression_manager._execute
- ???? still need to figure out how it discovers each VpiHandle when a test initializes