Quantcast
Channel: Cadence Functional Verification Forum
Viewing all articles
Browse latest Browse all 1074

Parameterized UVM Environment Creation Issue.

$
0
0

Hi all, 

  when we are trying to create Parameterized UVM environment, we are not able to pass parameter from top to bottom of the component.Please help Us to solve this Issue, Our Dummy Environment should be like below,

class driver (parameter DATAWIDTH)

bit[DATAWIDTH-1:0]data;

endclass:driver

class agent(parameter DATAWIDTH)

driver#(DATAWIDTH) driver_m;

class agent

class env();

  agent#() agent_m[];

function new();

  

endfunction

function build_phase();

  agent_m=new[3];

  agent_m[0]=agent#(32)::type_id::create("agent", this)

  agent_m[1]=agent#(64)::type_id::create("agent", this)

  agent_m[2]=agent#(128)::type_id::create("agent", this)

endfunction

endclass:env

we need to create agent with different parameters. we tried but, parameter value is not passing correctly some time we are facing fatal error.

Is any one have experience with this environment. please share the Information

Thanks,

selvavinayakam.na


Viewing all articles
Browse latest Browse all 1074

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>