mirror of
https://github.com/verilator/verilator.git
synced 2025-01-03 21:27:35 +00:00
Fix --timescale-override not suppressing TIMESCALEMOD (#2838).
This commit is contained in:
parent
26c0fa0a6a
commit
38f6a467e9
18
test_regress/t/t_timescale_lint.pl
Executable file
18
test_regress/t/t_timescale_lint.pl
Executable file
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env perl
|
||||
if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); die; }
|
||||
# DESCRIPTION: Verilator: Verilog Test driver/expect definition
|
||||
#
|
||||
# Copyright 2008 by Wilson Snyder. This program is free software; you
|
||||
# can redistribute it and/or modify it under the terms of either the GNU
|
||||
# Lesser General Public License Version 3 or the Perl Artistic License
|
||||
# Version 2.0.
|
||||
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
|
||||
|
||||
scenarios(linter => 1);
|
||||
|
||||
lint(
|
||||
verilator_flags2 => ["--lint-only --timescale-override 1ns/1ns"],
|
||||
);
|
||||
|
||||
ok(1);
|
||||
1;
|
18
test_regress/t/t_timescale_lint.v
Normal file
18
test_regress/t/t_timescale_lint.v
Normal file
@ -0,0 +1,18 @@
|
||||
// DESCRIPTION: Verilator: Verilog Test module
|
||||
//
|
||||
// This file ONLY is placed under The Creative Commons Public Domain, for
|
||||
// any use, without warranty, 2020 by Wilson Snyder.
|
||||
// SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
module pre_no_ts;
|
||||
endmodule
|
||||
|
||||
`timescale 1ns/1ns
|
||||
|
||||
module t;
|
||||
pre_no_ts pre_no_ts();
|
||||
post_no_ts pst_no_ts();
|
||||
endmodule
|
||||
|
||||
module post_no_ts;
|
||||
endmodule
|
Loading…
Reference in New Issue
Block a user