Always block does not synthesize
I just want to use some if/else statement in Verilog. So I have to use always block. integer count, index; reg a = 0; always @(a) begin a = 1; for (count=0; count<7; count=count+1) begin index = 4*count; if ((significand[index]==1'b0) &&(significand[index+1]==1'b0) && (significand[index+2]==1'b0) && (significand[index+3]==1'b0)) lzero=lzero+1; end end This code does make some sense now. I was able to get the correct simulation result, but I failed to get the correct synthesis on the board.
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.