generate statement

C

crazyrdx

Guest
I need to represent the following in a generate statement

p(1) = y(0) * c(1)
p(3) = y(1) * c(3)
p(5) = y(2) * c(5)
p(i) = y(i-n) * c(i)
and so on...

I basically need to use two indices. How can I do this?

Thanks
 
crazyrdx wrote:
I need to represent the following in a generate statement

p(1) = y(0) * c(1)
p(3) = y(1) * c(3)
p(5) = y(2) * c(5)
p(i) = y(i-n) * c(i)
and so on...

I basically need to use two indices. How can I do this?
What about two for-generate outside (and nested) for the indices and
finally an if generate?

Ralf
 

Welcome to EDABoard.com

Sponsor

Back
Top