mrforever Posted March 19, 2013 Report Share Posted March 19, 2013 (edited) Hi experts, I am now using uvm_config_db to config event variable, but encountering such a compiling error. The piece of codes and compiling error are listed as follow: Codes: File1: tb_top.sv ... event event_tmp; uvm_config_db#(event)::set(uvm_root::get(), "*", "event_tmp", event_tmp); ... File2: config_monitor.sv ... event event_tmp; uvm_config_db#(event)::get(this, "", "event_tmp", event_tmp); ... Compiling error: Error-[sE] Syntax error Following verilog source has syntax error : "../sv_for_tmptest/02_master/config/config_monitor.sv", 67: token is 'event' uvm_config_db#(event)::get(this, "", "event_tmp", event_tmp); If i change the event keyword to int keyword, the compiling error disappears. Does uvm_config_db cann't config event type variable? Regards Edited March 19, 2013 by mrforever Quote Link to comment Share on other sites More sharing options...
Hash Posted March 19, 2013 Report Share Posted March 19, 2013 Looks you are using VCS If yes, what command line are you using? Quote Link to comment Share on other sites More sharing options...
mrforever Posted March 19, 2013 Author Report Share Posted March 19, 2013 Looks you are using VCS If yes, what command line are you using? Yes, I am using VCS, command line is: ./simv +UVM_VERBOSITY=UVM_LOW +UVM_TESTNAME=test_config -l run.log Quote Link to comment Share on other sites More sharing options...
zcahana Posted April 8, 2013 Report Share Posted April 8, 2013 Looks like VCS doesn't support class specializations with the event datatype. My suggestion is to use uvm_event class to achieve the required functionality. See here for class description: http://www.dvteclipse.com/uvm-1.1-HTML_API/uvm_pkg-uvm_event.html 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.