P_sequencer with dynamic arrays

Hi All :)

I need in my sequence file to use array elements defined in the sequencer file.

For single data type it works ok (int x; p_sequencer.x )
For Dynamic array it gives problem

sequencer.sv

int arr ;
int unsigned n = 10;
arr = new[n];

sequence.sv
int x = p_sequencer.arr[0];

Thanks in advance

Araik

It should not cause any problem, please provide more code to understand the problem.

Hello Arayik,

Instead of
int arr ;
int unsigned n = 10;
arr = new[n];

declare as

int arr = {0,0,0,0,0,0,0,0,0,0}

This declares the length and initializes the array variables. It worked for me.

Yours faithfully,
Sanjay