forked from verilator/verilator
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: Add module-in-module coverage
- Loading branch information
Showing
4 changed files
with
54 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
%Error-UNSUPPORTED: t/t_mod_mod.v:10:3: Unsupported: module decls within module decls | ||
10 | program p_in_m(); | ||
| ^~~~~~~ | ||
... For error description see https://verilator.org/warn/UNSUPPORTED?v=latest | ||
%Error-UNSUPPORTED: t/t_mod_mod.v:12:3: Unsupported: program decls within module decls | ||
12 | interface i_in_m(); | ||
| ^~~~~~~~~ | ||
%Error-UNSUPPORTED: t/t_mod_mod.v:14:1: Unsupported: interface decls within module decls | ||
14 | endmodule | ||
| ^~~~~~~~~ | ||
%Error-UNSUPPORTED: t/t_mod_mod.v:19:3: Unsupported: interface decls within interface decls | ||
19 | program p_in_i(); | ||
| ^~~~~~~ | ||
%Error-UNSUPPORTED: t/t_mod_mod.v:21:1: Unsupported: program decls within interface decls | ||
21 | endinterface | ||
| ^~~~~~~~~~~~ | ||
%Error: Exiting due to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env python3 | ||
# DESCRIPTION: Verilator: Verilog Test driver/expect definition | ||
# | ||
# Copyright 2024 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 | ||
|
||
import vltest_bootstrap | ||
|
||
test.scenarios('vlt') | ||
|
||
test.lint(fails=test.vlt_all, expect_filename=test.golden_filename) | ||
|
||
test.passes() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// DESCRIPTION: Verilator: Verilog Test module | ||
// | ||
// This file ONLY is placed under the Creative Commons Public Domain, for | ||
// any use, without warranty, 2008 by Wilson Snyder. | ||
// SPDX-License-Identifier: CC0-1.0 | ||
|
||
module m(); | ||
module m_in_m; | ||
endmodule | ||
program p_in_m(); | ||
endprogram | ||
interface i_in_m(); | ||
endinterface | ||
endmodule | ||
|
||
interface i(); | ||
interface i_in_i(); | ||
endinterface | ||
program p_in_i(); | ||
endprogram | ||
endinterface |