getvictor Posted January 2, 2014 Report Share Posted January 2, 2014 What is the recommended way to call UVM report functions and macros from a static method in a uvm_component? Having the following code: static function static_check(); `uvm_error("ID", "Something failed"); endfunction causes a compile error: ** Error: testbench.sv(15): (vlog-2888) Illegal to access non-static method 'uvm_report_enabled' from a static method. Full example can be edited and run here: http://www.edaplayground.com/s/4/762 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.