| Login | | Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name. | |
| Who's Online | There are currently, 64 guest(s) and 0 member(s) that are online.
You are Anonymous user. You can register for free by clicking here | |
 | |
|
Verification Guild: Forums |
|
| View previous topic :: View next topic |
| Author |
Message |
tsengr Senior


Joined: Aug 11, 2006 Posts: 53
|
Posted: Fri Jun 08, 2012 1:14 pm Post subject: Configure `uvm_info() message format |
|
|
Hi
Is there anyway to trim off the file path portion of the UVM macro generated message? For example, I have this message generated with `uvm_info():
# UVM_INFO /prj/qct/coredev/cutthroat/sandiego/builds2/hctseng_fsm/libs/verification/uvcs/qbiq/env/src/qbiq_ul_bfm.sv(49) @ 0 ns: reporter [tb_top_cutthroat2.u_cutthroat2_top_wrap.ul_dawg_driver_gen[0].qbiq_driver] Opening file "ant00.daw" to read...
What I really want is to get rid of the long path name in the string, so it will look like this:
# UVM_INFO @ 0 ns: reporter [tb_top_cutthroat2.u_cutthroat2_top_wrap.ul_dawg_driver_gen[0].qbiq_driver] Opening file "ant00.daw" to read...
Thanks,
Richard |
|
| Back to top |
|
 |
dave_59 Senior


Joined: Jun 22, 2004 Posts: 974 Location: Fremont, CA
|
Posted: Fri Jun 08, 2012 5:00 pm Post subject: |
|
|
You can use this awk script to trim your transcript or log file.
| Code: | | awk '/# UVM_INFO/{$3=""} {print} ' transcript |
You can also add +define+UVM_REPORT_DISABLE_FILE_LINE to your compilation command line, but that has the disadvantage of losing file names and line numbers for all messages including `uvm_error and `uvm_fatal. You also lose the ability to click on the messages in the GUI and have it hyperlink to the line in your source file.
Last edited by dave_59 on Fri Jun 08, 2012 5:19 pm; edited 1 time in total |
|
| Back to top |
|
 |
tsengr Senior


Joined: Aug 11, 2006 Posts: 53
|
Posted: Fri Jun 08, 2012 5:03 pm Post subject: |
|
|
| Thanks a lot Dave |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
| |
|
|