Hi to all,

I am trying to do a parameter sweep for an array of values in the DSP domain.

Assuming I have a module with 2 parameters: A and B. For example, A can take the values of 1.4, 2.3, 5, 6.2 and the corresponding values for B are 1.1, 2, 8.9, 10.

Hence, I define A and B as follows:

A = {1.4, 2.3, 5, 6.2}

B = {1.1, 2, 8.9, 10}

I like to do a sweep through the various values within A and B, hence I define an index n, and I specify the values of A and B within the module as A[n], and B[n].

However, I got some errors when I tried to do a sweep of n from 1 to 4.

Does anyone know how I can overcome this problem?

Thanks in advance

I am trying to do a parameter sweep for an array of values in the DSP domain.

Assuming I have a module with 2 parameters: A and B. For example, A can take the values of 1.4, 2.3, 5, 6.2 and the corresponding values for B are 1.1, 2, 8.9, 10.

Hence, I define A and B as follows:

A = {1.4, 2.3, 5, 6.2}

B = {1.1, 2, 8.9, 10}

I like to do a sweep through the various values within A and B, hence I define an index n, and I specify the values of A and B within the module as A[n], and B[n].

However, I got some errors when I tried to do a sweep of n from 1 to 4.

Does anyone know how I can overcome this problem?

Thanks in advance

Error detected by hpeesofsim during controller analysis `Sweep1'.

Error evaluating `W1.Step': index is not integer-valued.

If yes, all you have to do is set your module's parameters to

A[int(n)] and B[int(n)] instead of A[n] and B[n].

If not, then please send us the error you get.

Yes yes, there was the error I got.

Based on your reply, I think it is working now. Thank you so much