Vyacheslav Posted January 22, 2016 Report Share Posted January 22, 2016 Hi! I need redirect all uvm_info messages to some log file. My testbench contain dut module, some environment modules and classes, which using for monitoring and driving. In environment modules, drivers and monitors exists `uvm_info callings. To save `uvm_info messages to log file In uvm agents build_phase: int log_file log_file = $fopen(path); uvm_top.set_report_default_file(log_file); uvm_top.set_report_severity_action (UVM_INFO, UVM_DISPLAY | UVM_LOG); In console i see messages of two types. 1st type: UVM_INFO @%time%: reporter [%uvm_info_id%] %some_message% Messages 1st type outputs by environment modules. Messages 1st type exists in output log. 2nd type UVM_INFO @ %time%: uvm_test_top.env.agent.%some_testcase% [%uvm_info_id%] %some_message% Messages 2st type outputs by monitors and drivers. Messages 2st type not exists in log. I need to output to file both type messages . Quote Link to comment Share on other sites More sharing options...
dave_59 Posted January 22, 2016 Report Share Posted January 22, 2016 Use *_hier to set all components below the top level. (I don't know why they abbreviated hierarchy) uvm_top.set_report_default_file_hier(log_file); uvm_top.set_report_severity_action_hier (UVM_INFO, UVM_DISPLAY | UVM_LOG); Vyacheslav 1 Quote Link to comment Share on other sites More sharing options...
Vyacheslav Posted January 29, 2016 Author Report Share Posted January 29, 2016 Thanks, your advice helped me. 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.