Robert.g.Liu Posted March 14, 2011 Report Share Posted March 14, 2011 Hi, The code does support the wildcard instance override when the original type name argument contains wildcard metacharacters in the uvm_factory::set_inst_override_by_name method. Nonetheless, the user's guide and class reference manual don't mention this at all. So what's the intention concerning this feature ? Will it be deprecated in the next revision so it is not recommended for use in the new development? Thanks, Robert Quote Link to comment Share on other sites More sharing options...
jadec Posted March 23, 2011 Report Share Posted March 23, 2011 UVM 1.0 supports both glob (*+?) and regex expressions (if you're using the DPI library). In glob, *+? naturally match themselves (though not exclusively) so their presence in the real names is not a big problem. In regex, any special characters can be escaped with backslash. Currently, It looks like the glob to regex conversion does not handle backslash (it preserves them). Thus, you can escape glob metacharacters with backslash just like in regex. (But only if the regex DPI functions are used.) Quote Link to comment Share on other sites More sharing options...
jadec Posted March 24, 2011 Report Share Posted March 24, 2011 Or are you asking about wildcard matching of the type_name itself for string based overrides? Do you have an example? 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.