Test and Handle Discovery

Test and Handle Discovery #

This document is about how cocotb discovers and stores handles once initialized after vlog_startup_routine.

  1. __init__.py is eventually called, which calls get_root_handle to get you dut
  2. CHECK_AND_STORE(dut)
  3. Adds dut to a vector of GpiObjHdl - handle_map
  4. python creates SimHandle(dut)
  5. starts test via regression_manager._execute
  6. ???? still need to figure out how it discovers each VpiHandle when a test initializes

learncocotb.com Copyright © 2023