fbochud Posted August 28, 2013 Report Share Posted August 28, 2013 Hi, Is there limitations when using uvm_config_db with interface array: Here is an example where I get compilation error: module tb_top(); import uvm_pkg::*; /* DUT interfaces */ test_if #(.MY_PARAM(4)) my_if  (); // array of interfaces // Clocks and resets [...] // design under verification [...] initial begin string inst_name; for (int i = 0; i < 3; i++) begin $sformat(inst_name, "*.source[%0d].*",i); uvm_config_db#(virtual test_if#(.MY_PARAM(4)))::set(uvm_root::get(), inst_name, "vif", my_if); // This line gives compilation error !!! end run_test(); $finish; endendmodule Compilation error: Identifier 'my_if' has not been declared yet. If this error is not expected, please check if you have set `default_nettype to none. Is that a simulator issue or is that not supported at all? Thank you Florian Quote Link to comment Share on other sites More sharing options...
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.