mohammad hassan Posted December 31, 2020 Report Share Posted December 31, 2020 Hello, Can we change the sc_clock period after defining it? Quote Link to comment Share on other sites More sharing options...
David Black Posted December 31, 2020 Report Share Posted December 31, 2020 No. sc_clock models a fixed period clock with an optional start delay. If you want to model a clock that can be changed, it is simple enough to model yourself. You can use sc_signal_if<T> as the basic interface and add to it from there. For example, I have modeled a no_clock as you can see https://github.com/dcblack/no_clock. 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.