Skip to content

Instantly share code, notes, and snippets.

@majecty
Created October 28, 2016 13:46
Show Gist options
  • Save majecty/1d43cd79326f52e6bdaee6d3f440bf54 to your computer and use it in GitHub Desktop.
Save majecty/1d43cd79326f52e6bdaee6d3f440bf54 to your computer and use it in GitHub Desktop.
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