Neel.011 Posted July 20, 2011 Report Share Posted July 20, 2011 Hi I would like to replace parametrized components using set type override command line option. I am not able to find any example for it. can someone provide the example please ? Regards, Neel Quote Link to comment Share on other sites More sharing options...
uwes Posted July 21, 2011 Report Share Posted July 21, 2011 for instance: any_driver#(apb_item)::type_id::set_type_override(my_apb_driver#(32,apb_item)::get_type()); with class my_apb_driver #(int L=16,type D=int) extends any_driver#(D); (unchecked) /uwe Quote Link to comment Share on other sites More sharing options...
Neel.011 Posted July 22, 2011 Author Report Share Posted July 22, 2011 Hi Uwe Thanks for the reply. I want to use same with command line option. +uvm_set_type_override=packet#(int L=16),my_packet#(int L=32) is above command correct ? simulator is not able to parse it due to #. Regards, Neel Quote Link to comment Share on other sites More sharing options...
uwes Posted July 22, 2011 Report Share Posted July 22, 2011 hi, the commandline type-override only works using the string based factory access. parameterized classes cannot really be handled using the string based factory access (thats why you have the 'param' macro set). Quote Link to comment Share on other sites More sharing options...
dave_59 Posted July 22, 2011 Report Share Posted July 22, 2011 I would add that parameterized classes cannot be handled using the string based factory access IF you use the macros. See http://go.mentor.com/mcem for an example that show how to register a parameterized class with a string. 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.