ggupta Posted June 5, 2013 Report Share Posted June 5, 2013 Hi All, I am getting following error message while using `uvm_object_utils to register a sequence : 1) m_do_cycle_check is not a class item 2) Expecting a function name 3) m_uvm_cycle_scopes is not a class item. Please let me know if any one knows about these issues. Thanks and Regards, GG Annossyenudge 1 Quote Link to comment Share on other sites More sharing options...
apfitch Posted June 5, 2013 Report Share Posted June 5, 2013 Perhaps you've derived the sequence from the wrong class? Can you post the code? Alan Quote Link to comment Share on other sites More sharing options...
DavidLarson Posted June 6, 2013 Report Share Posted June 6, 2013 I see errors like this when the macro is not called correctly. Check these: If the object is parameterized you should be using `uvm_object_param_utils (<object_name>#(<parameters>)). make sure that the argument to the macro contains the name of the class and there are no typos. Make sure the registration macro isn't called more than once. Other than that, it would be helpful to see your source code. Quote Link to comment Share on other sites More sharing options...
ggupta Posted June 6, 2013 Author Report Share Posted June 6, 2013 Thanks for the reply. Here is the sequence: class addr_hole_seq extends uvm_sequence # (uvm_sequence_item); `uvm_object_utils(addr_hole_seq) After this the tool reports the error. Thanks and Regards, GG Quote Link to comment Share on other sites More sharing options...
dave_59 Posted June 6, 2013 Report Share Posted June 6, 2013 How about showing the exact error message. Also what version of the UVM are you using and are you sure the macro file you are including is from the same version of the package you are importing. Quote Link to comment Share on other sites More sharing options...
apfitch Posted June 6, 2013 Report Share Posted June 6, 2013 class addr_hole_seq extends uvm_sequence # (uvm_sequence_item); `uvm_object_utils(addr_hole_seq) In the code you've parameterized with uvm_sequence_item - is that what you meant to do? Or do you have some transaction class derived from uvm_sequence_item that should be used as the parameter? Alan P.S. As Dave says, the exact error message would be helpful. Quote Link to comment Share on other sites More sharing options...
DavidLarson Posted June 6, 2013 Report Share Posted June 6, 2013 I just compiled your code (I added the endclass keyword): class addr_hole_seq extends uvm_sequence # (uvm_sequence_item); `uvm_object_utils(addr_hole_seq) endclass and it compiled fine. Now you need to check elsewhere ... the code preceding this, how you are compiling, etc. Quote Link to comment Share on other sites More sharing options...
ggupta Posted June 11, 2013 Author Report Share Posted June 11, 2013 Thanks a lot for your reply. There were some factory registration issues. It is resolved . Thanks and Regards, GG Quote Link to comment Share on other sites More sharing options...
BaditCoral Posted September 11, 2013 Report Share Posted September 11, 2013 Make sure the registration macro isn't called more than once. 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.