Jump to content

Can uvm_config_db config event type variable?

Recommended Posts

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:


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?


Edited by mrforever
Link to comment
Share on other sites

  • 3 weeks later...

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...