Files
iverilog/ivtest/ivltests/pr1864115.v
T
Stephen Williams cea237b407 Add ivtest to the iverilog source tree
By adding ivtest to the iverilog source tree, it is easier to keep
the regression test synchronized with the source that is being tested.
This should be especially helpful for PRs that add a new feature, and
have a matching ivtest PR with the regression test for that feature.
2022-01-15 10:18:50 -08:00

24 lines
554 B
Verilog

module top;
wire real result;
wire [63:0] bits;
real in;
assign bits = $realtobits(in);
// This generates incorrect code:
// The .net/real temporary is not needed.
// The .alias/real temporary is not needed.
// The .sfunc should connect directly to the "results" net.
// The .part is not needed and is causing a core dump.
//
// Once these are fixed it appears there is a concurrency issues
assign result = $bitstoreal(bits);
initial begin
$monitor(result,, bits,, in);
in = 0.0;
#1 in = 2.0;
end
endmodule