Fix --timescale-override not suppressing TIMESCALEMOD (#2838).

This commit is contained in:
Wilson Snyder 2021-03-16 22:44:13 -04:00
parent 26c0fa0a6a
commit 38f6a467e9
2 changed files with 36 additions and 0 deletions

View 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;

View 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