This code produces an incorrect value on variable 'a':
module test;
reg b;
wire a;
assign a = b===1 ? 1'b0 : 1'bz;
initial begin
$dumpfile( "test.vcd" );
$dumpvars;
#100;
end
endmodule
Since b is not exactly equal to 1, the test should evaluate to false, and
so 'a' should be assigned a value of 'z'. Instead, it stays 'x'.
Nobody/Anonymous
Verilog compiler bug
devel
Public
|
Date: 2008-12-17 17:45 I'm an idiot. Sorry about this. When I cleaned up the build problems I |
|
Date: 2008-12-17 17:39 Please reopen this bug. I checked out the latest git version, compiled it, |
|
Date: 2008-12-11 03:31 It works properly for me. Since you don't say what version you are using, |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2008-12-17 17:45 | theosib |
| close_date | - | 2008-12-17 17:45 | theosib |
| status_id | Closed | 2008-12-17 17:39 | theosib |
| close_date | 2008-12-11 03:31 | 2008-12-17 17:39 | theosib |
| resolution_id | None | 2008-12-11 03:31 | stevewilliams |
| close_date | - | 2008-12-11 03:31 | stevewilliams |
| status_id | Open | 2008-12-11 03:31 | stevewilliams |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use