Verification Guild
A Community of Verification Professionals

 Create an AccountHome | Calendar | Downloads | FAQ | Links | Site Admin | Your Account  

Login
Nickname

Password

Security Code: Security Code
Type Security Code
BACKWARD

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.

Modules
· Home
· Downloads
· FAQ
· Feedback
· Recommend Us
· Web Links
· Your Account

Advertising

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

 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile  ProfileDigest    Log inLog in 

Configure `uvm_info() message format

 
Post new topic   Reply to topic    Verification Guild Forum Index -> Main
View previous topic :: View next topic  
Author Message
tsengr
Senior
Senior


Joined: Aug 11, 2006
Posts: 53

PostPosted: Fri Jun 08, 2012 1:14 pm    Post subject: Configure `uvm_info() message format Reply with quote

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
View user's profile
dave_59
Senior
Senior


Joined: Jun 22, 2004
Posts: 974
Location: Fremont, CA

PostPosted: Fri Jun 08, 2012 5:00 pm    Post subject: Reply with quote

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
View user's profile Send e-mail Visit poster's website
tsengr
Senior
Senior


Joined: Aug 11, 2006
Posts: 53

PostPosted: Fri Jun 08, 2012 5:03 pm    Post subject: Reply with quote

Thanks a lot Dave
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Verification Guild Forum Index -> Main All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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
Verification Guild © 2006 Janick Bergeron
Web site engine's code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.158 Seconds