lundi 4 janvier 2016

genvar block in verilog giving errors

    for (o=0;o<row2;o=o+1) 


if (finout[o]>524288 || finout[o]==524288 || finout[o]< -524288)

     assign finout[o]=finout[o]+1;
     assign finout[o]=finout[o]>>>1;

 end

The above is my code in verilog where finout changes every posedge of clock cycle. I have to access every element of finout and check if it lies in a specified range and if not i have to do certain steps. But i'm getting error in IF loop that i have used and not able to access the elements of finout "Line 104: finout is not a constant"

Can someone help me on this.

Thanks in advance, Sandy

Aucun commentaire:

Enregistrer un commentaire