UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
1,659 Views
Registered: ‎05-12-2017

xeleb overoptimizes unique if with empty branch resulting in warnings under xsim

I have following code:

 

// It will never happen that a && b
unique if (a) begin
    // ...
end else if (b) begin
    // ...
end else begin end // Silence the warning and do nothing

On default xeleb (-O2) it results in warnings that none of the conditions were true. On -O0 it is fine.

0 Kudos