Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 06/13/2019 in all areas

  1. 1 point
    Eyck

    tlm model with clocks & code sample

    My fault, SC_THREAD has a sensitivity list and you can call wait() for the default event. In my experience -and this guided my answer- it is better to have no sensitivity list and wait explicitly for events. When specifying a port in the sensitivity list you need to use an event finder (with .pos()) as the port is not bound yet and hence does not have an event associated. In the thread itself you can use the pos_edge event. So your code shown above is correct. BR
×
×
  • Create New...