Quantcast
Channel: Cadence Digital Implementation Forum
Viewing all articles
Browse latest Browse all 1480

Function call in verilog

$
0
0

I have written a verilog for ma project work. In it,I wrote the followin code:

for(i=n-2;i>=0;i=i-1)
begin
ge (w[2*i+1],w[2*i],w[2*i+2],w[2*i+3],a[i],b[i]);
end

I am getting error. how should i declare ' i ' ? First I declared as integer and then i tried genvar. Everytime it is showing error. Also it is showing block identifier is required. Pls help me out.


Viewing all articles
Browse latest Browse all 1480

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>