CreateClock moved to ClockResetPkg in 2024.07

Why OSVVM™? Forums OSVVM CreateClock moved to ClockResetPkg in 2024.07

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #2554
    Jim Lewis
    Member

    In 2024.07, CreateClock (and CreateReset) moved from TbUtilPkg to ClockResetPkg. This was done to separate the dependencies that are needed from the low level synchronization primitives from the higher level CreateClock (and the checkers that check the clock period and reset).

    If you had a reference to CreateClock using a selected name as shown below, it must be updated.
    osvvm.TbUtilPkg.CreateClock(...) ;

    Update it to either:

    -- CreateClock from OSVVM Library
    CreateClock(...) ;  

    or
    osvvm.ClockResetPkg.CreateClock(...) ;

    In the past I had often been asked, “Where is CreateClock defined”, and I considered the selected path to be my answer. Unfortunately in the current release, the functionality was refactored and as a result moved. While at this point, I don’t expect it to move again, calling it as “CreateClock(…);” will always keep you forward compatible.

    I note the examples in most of the VC used selected names and I updated CreateClock and CreateReset with a two quick search and replace at the top level of the OsvvmLibraries.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.