verilator/test_regress/t/t_force_assign.v

25 lines
422 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain
// SPDX-FileCopyrightText: 2025 Antmicro
// SPDX-License-Identifier: CC0-1.0
module t;
reg [2:0] a = 0;
initial begin
a = 1;
if (a != 1) $stop;
force a = 2;
if (a != 2) $stop;
a = 3;
if (a != 2) $stop;
$write("*-* All Finished *-*\n");
$finish;
end
endmodule