Apply suggestion

Signed-off-by: Kamil Danecki <kdanecki@internships.antmicro.com>
This commit is contained in:
Kamil Danecki 2026-02-12 18:17:07 +01:00
parent 94307f8970
commit 5610989e1a
1 changed files with 9 additions and 11 deletions

View File

@ -1,21 +1,19 @@
// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2026 Antmicro
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2026 by PlanV GmbH.
// SPDX-License-Identifier: CC0-1.0
class Packet;
rand real x;
constraint cons { x + 1.0 > 0.0; }
rand real x;
constraint cons { x + 1.0 > 0.0; }
endclass
module t;
Packet p;
Packet p;
initial begin
p = new;
void'(p.randomize());
$finish;
end
initial begin
p = new;
void'(p.randomize());
end
endmodule