Created
October 28, 2016 13:46
-
-
Save majecty/1d43cd79326f52e6bdaee6d3f440bf54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module verilogbug(); | |
reg x = 1; | |
initial | |
begin | |
if (x === 0) begin | |
$display("x === 0 is true"); | |
end | |
else begin | |
$display("x === 0 is false"); | |
end | |
if (0 === x) begin | |
$display("0 === x is true"); | |
end | |
else begin | |
$display("0 === x is false"); | |
end | |
end | |
endmodule |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment