23 lines
428 B
Systemverilog
23 lines
428 B
Systemverilog
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed under the Creative Commons Public Domain.
|
|
// SPDX-FileCopyrightText: 2022 Antmicro Ltd
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
module t (
|
|
input clk
|
|
);
|
|
|
|
input clk;
|
|
int cyc = 0;
|
|
logic val = 0;
|
|
|
|
always @(posedge clk) begin
|
|
cyc <= cyc + 1;
|
|
val = ~val;
|
|
end
|
|
|
|
assert property (disable iff (cyc < 5) @(posedge clk) cyc >= 5);
|
|
|
|
endmodule
|