Tests: Add t_interface_twoports (#5676)
This commit is contained in:
parent
d55790c91b
commit
be6780e44b
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env python3
|
||||
# DESCRIPTION: Verilator: Verilog Test driver/expect definition
|
||||
#
|
||||
# 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-FileCopyrightText: 2026 Wilson Snyder
|
||||
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
|
||||
|
||||
import vltest_bootstrap
|
||||
|
||||
test.scenarios('linter')
|
||||
|
||||
test.lint()
|
||||
|
||||
test.passes()
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
// DESCRIPTION: Verilator: Verilog Test module
|
||||
//
|
||||
// This file ONLY is placed under the Creative Commons Public Domain.
|
||||
// SPDX-FileCopyrightText: 2026 Wilson Snyder
|
||||
// SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
interface A;
|
||||
logic x;
|
||||
endinterface
|
||||
|
||||
module B;
|
||||
A a ();
|
||||
endmodule
|
||||
|
||||
module C (
|
||||
A a0,
|
||||
A a1
|
||||
);
|
||||
assign a1.x = a0.x;
|
||||
endmodule
|
||||
|
||||
module t;
|
||||
B b0 ();
|
||||
B b1 ();
|
||||
C c (
|
||||
b0.a,
|
||||
b1.a
|
||||
);
|
||||
initial $finish;
|
||||
endmodule
|
||||
Loading…
Reference in New Issue