Hi Dave,
In one of my sequences I am trying to get value for one of the vectors by calling:
for (int i=0; i<4;i++) begin
ovm_test_top.get_config_int($psprintf("ANA_OVFL_STATUS[%0d]",i),read_data[i] );
end
I am setting this field from one of my components.
set_config_int("*",$psprintf("ANA_OVFL_STATUS[%0d]",int'(m_cfg.m_chan_id/32)),ana_ovfl_mmio);
But i get X from get_config_int call
reporter [m_status_ana_ovfl_read_seq] GOT CONFIG INT FOR ANA_OVFL_STATUS[0] is x
reporter [m_status_ana_ovfl_read_seq] GOT CONFIG INT FOR ANA_OVFL_STATUS[1] is x
reporter [m_status_ana_ovfl_read_seq] GOT CONFIG INT FOR ANA_OVFL_STATUS[2] is x
reporter [m_status_ana_ovfl_read_seq] GOT CONFIG INT FOR ANA_OVFL_STATUS[3] is x
I have even used
for (int i=0; i<4;i++) begin
m_sequencer.get_config_int($psprintf("ANA_OVFL_STATUS[%0d]",i),read_data[i] );
end
But same result.
Please let me know if I am missing something.
Regards