Hi all,
I am trying to set a configuration object in the configuration database in the build phase of the environment using the code section shown below:
environment_config env_cfg
function void build_phase (uvm_phase phase);
super.build_phase (phase);
env_cfg = environment_config::type_id::create("env_cfg", this);
if (!uvm_config_db#(environment_config)::set(this, "*", "env_cfg", env_cfg)) begin
`uvm_error ("CFG_ERR", "Couldn't set in DB")
end
I receive the following compilation error when I try to run using Incisiv:
Expecting a function name [10.3.3(IEEE)].
(`include file: /projects/iptet/members/ojarvie/work.main/digital/dai_top/verif/uvc/dai_uvc/sv/dai_pkg.sv line 26, file: dai_top.sv line 2)
package worklib.dai_pkg:sv
Could anybody be of assistance with this matter?