Beginner_KOR Posted November 15, 2020 Report Share Posted November 15, 2020 HI, Would you let me know "tlm_quantumkeeper" is? I saw some source code from the gitHub, tlm_quantumkeeper is used but I don't understand why this util is used now. It is looks like to be used a synced reset, however, if anyone let me know it details, I am happy to learn systemC more as a beginner. thanks. Quote Link to comment Share on other sites More sharing options...
Eyck Posted November 15, 2020 Report Share Posted November 15, 2020 The quantum keeper is used to hold the local time of a time domain in loosly-timed models. E.g. in https://git.minres.com/VP/HIFIVE1-VP/src/branch/master/platform/src/sc_main.cpp#L119 the global quantum is set (the amount of time a time domain is allowed to run ahead). In https://git.minres.com/DBT-RISE/DBT-RISE-RISCV/src/branch/develop/incl/sysc/core_complex.h#L112 the local time is updated (within each instruction) and if the quantum is exceeded, the control is returned to the SystemC kernel (line 114). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.