mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-22 13:57:18 +02:00
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.
24 lines
410 B
Verilog
24 lines
410 B
Verilog
module test;
|
|
reg [63:0] i, j;
|
|
|
|
initial
|
|
main;
|
|
task main;
|
|
integer k, l, m, n;
|
|
begin
|
|
i = 64'hffff_ffff_ffff_ffff;
|
|
j = 64'hffff_ffff_ffff_ffff;
|
|
|
|
k = $signed(i) < $signed(j);
|
|
l = $signed(i) <= $signed(j);
|
|
m = $signed(i) > $signed(j);
|
|
n = $signed(i) >= $signed(j);
|
|
|
|
$display("< : %s", k? "Y":"N");
|
|
$display("<=: %s", l? "Y":"N");
|
|
$display("> : %s", m? "Y":"N");
|
|
$display(">=: %s", n? "Y":"N");
|
|
end
|
|
endtask
|
|
endmodule
|