cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Newbie
Newbie
330 Views
Registered: ‎07-01-2020

Warning: empty statement in Sequential block

Jump to solution

There is a warning named"empty statement in sequential block" appears a lot, i want to know why, here is related code:

 

if(add_result_reg[32] ^ add_result_reg[31] == 1'b1) begin //this line ***
	o_exception_flag <= `IS_EXCEPTION;
	o_alu_result <= `ZERO_WORD;
end else begin	
	o_alu_result <= add_result_reg[31:0];
end


// add_result_reg definition:
// wire [32:0] add_result_definition

 

 i will appreciate that if someone could tell me why, and how to solve that.

i am a little worried that warning could influence the synthesis and step after that.

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Scholar
Scholar
245 Views
Registered: ‎09-16-2009

It would help if you enter your code on these forums using code tags, and text, not a (mostly unreadable) picture.  It'll help us help you.

EDIT: I guess your code block is not a picture after all, just somehow formatted in some (mostly unreadable) font.  Weird forums related problems?  

Please show us your definition of `IS_EXCEPTION, and `ZERO_WORD

I'm expecting an extra semi-colon.

Regards,

Mark

View solution in original post

0 Kudos
3 Replies
Highlighted
Scholar
Scholar
246 Views
Registered: ‎09-16-2009

It would help if you enter your code on these forums using code tags, and text, not a (mostly unreadable) picture.  It'll help us help you.

EDIT: I guess your code block is not a picture after all, just somehow formatted in some (mostly unreadable) font.  Weird forums related problems?  

Please show us your definition of `IS_EXCEPTION, and `ZERO_WORD

I'm expecting an extra semi-colon.

Regards,

Mark

View solution in original post

0 Kudos
Highlighted
Newbie
Newbie
210 Views
Registered: ‎07-01-2020

Thanks a lot, it is really a problem about semi-colon. So stupid am i !!

i will pay attention when i code on forum next time

thanks !

0 Kudos
Highlighted
Scholar
Scholar
202 Views
Registered: ‎09-16-2009

These sorts of dangling semi-colons within defines are very common mistakes.  The only reason I recognized it is I've done it myself enough, and the error message was familiar to me...

Regards,

Mark