Minu Posted June 19, 2022 Report Share Posted June 19, 2022 I am beginner in SystemC and wants to learn concept of loosely timed implementation on my timer code. I got some idea on LT but unable to implement following functionalities . How can I apply following functionalities in my code Timer model should not have pin for clock and there should be some provision through which clock interval can be provided to timer model. Either it can be a constructor argument or may add an API. Timer should not count/increment at every clock edge, rather we should apply mathematical formulas to calculate when the interrupts will be generated. Please help me out. My code link:https://www.edaplayground.com/x/Dqz Quote Link to comment Share on other sites More sharing options...
David Black Posted June 19, 2022 Report Share Posted June 19, 2022 This looks suspiciously like assigned homework at a university. The description of the task is quite clear. I don't believe it would be fair to you or your classmates for anybody here to provide you with a solution. I will provide you with a few function clues: sc_core::wait( sc_time ) sc_core::sc_time_stamp() You should be able to solve this problem. Read the textbook if all else fails. 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.