Hi,
I am using ius 8.2-s006 for simulation of ovm2.0,but for below code i am getting error.in this code i have randomise the enum type variable rand_a with dynamic array range." rand_a inside {cfg_inst.da}".
typedef enum {CMD,DATA} enum_a;
class cfg;
enum_a da[;
endclass
class abc;
rand enum_a rand_a;
cfg cfg_inst ;
constraint data_rand_a
{
rand_a inside {cfg_inst.da};
}
endclass
module test();
initial
begin
abc abc_inst;
abc_inst =new();
abc_inst.cfg_inst = new();
abc_inst.cfg_inst.da = new[2];
abc_inst.cfg_inst.da[0] = CMD;
abc_inst.cfg_inst.da[1] = DATA;
void'(abc_inst.randomize());
end
endmodule
Error:
ncsim: *F,INTERR: INTERNAL ERROR
Observed simulation time : 0 FS + 0
-----------------------------------------------------------------
The tool has encountered an unexpected condition and must exit.
Contact Cadence Design Systems customer support about this
problem and provide enough information to help us reproduce it,
including the logfile that contains this error message.