Fix false DECLFILENAME on black-boxed modules (#2430).
This commit is contained in:
parent
2abbd5c145
commit
2d7d2c5992
2
Changes
2
Changes
|
|
@ -9,6 +9,8 @@ The contributors that suggested a given feature are shown in []. Thanks!
|
||||||
|
|
||||||
** Support hierarchical Verilation (#2206). [Yutetsu TAKATSUKASA]
|
** Support hierarchical Verilation (#2206). [Yutetsu TAKATSUKASA]
|
||||||
|
|
||||||
|
**** Fix false DECLFILENAME on black-boxed modules (#2430). [Philipp Wagner]
|
||||||
|
|
||||||
|
|
||||||
* Verilator 4.040 2020-08-15
|
* Verilator 4.040 2020-08-15
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -201,6 +201,7 @@ private:
|
||||||
UINFO(2, "Link Module: " << nodep << endl);
|
UINFO(2, "Link Module: " << nodep << endl);
|
||||||
if (nodep->fileline()->filebasenameNoExt() != nodep->prettyName()
|
if (nodep->fileline()->filebasenameNoExt() != nodep->prettyName()
|
||||||
&& !v3Global.opt.isLibraryFile(nodep->fileline()->filename())
|
&& !v3Global.opt.isLibraryFile(nodep->fileline()->filename())
|
||||||
|
&& !VN_IS(nodep, NotFoundModule)
|
||||||
&& !nodep->recursiveClone() && !nodep->internal()) {
|
&& !nodep->recursiveClone() && !nodep->internal()) {
|
||||||
// We only complain once per file, otherwise library-like files
|
// We only complain once per file, otherwise library-like files
|
||||||
// have a huge mess of warnings
|
// have a huge mess of warnings
|
||||||
|
|
|
||||||
|
|
@ -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 2003 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(vlt => 1);
|
||||||
|
|
||||||
|
lint(
|
||||||
|
verilator_flags2 => ["--lint-only -Wall"],
|
||||||
|
);
|
||||||
|
|
||||||
|
ok(1);
|
||||||
|
1;
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
// DESCRIPTION: Verilator: Verilog Test module
|
||||||
|
//
|
||||||
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
||||||
|
// any use, without warranty, 2010 by Wilson Snyder.
|
||||||
|
// SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
|
module t_lint_declfilename_bbox ();
|
||||||
|
parameter IN = 0;
|
||||||
|
if (IN) begin
|
||||||
|
// Should not warn, see bug2430
|
||||||
|
BLACKBOXED bboxed ();
|
||||||
|
end
|
||||||
|
endmodule
|
||||||
Loading…
Reference in New Issue