dwikle Posted November 28, 2012 Report Share Posted November 28, 2012 I am building a model of my DUT, and the model will include a reference to the UVM register models for the DUT. The model will need to generate predicted transactions when certain register fields in the DUT are written to, with certain values. For example, when a GO bit is set to 1, the DUT and model should both produce a transaction. What is the proper/best way to do this with uvm_reg? So far I have experimented with creating a callback (extending from uvm_reg_cbs), registering it with the register field I want to trigger on, and then checking for "kind == UVM_PREDICT_WRITE" in post_predict. But I'd prefer not do have to use a bunch of callbacks if I can avoid them. I'd rather have the register class contain some event that fired on reads/writes, but it doesn't seem to exist in the BCL. That way my model could just wait on the event and then query the current register value. I realize I can get that behavior with a callback... just want to see if there is some other facility that I'm missing. Thanks, Doug Quote Link to comment Share on other sites More sharing options...
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.