This commit is contained in:
Todd Strader 2026-02-13 15:34:11 -05:00 committed by GitHub
commit 01dfb23021
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 43 additions and 1 deletions

View File

@ -56,7 +56,8 @@ string V3LinkDotIfaceCapture::extractIfacePortName(const string& dotText) {
void V3LinkDotIfaceCapture::add(AstRefDType* refp, AstCell* cellp, AstNodeModule* ownerModp,
AstTypedef* typedefp, AstNodeModule* typedefOwnerModp,
AstVar* ifacePortVarp) {
if (!refp) return;
// TODO -- probably classes too
if (!refp || cellp->modp() == ownerModp) return;
if (!typedefp) typedefp = refp->typedefp();
if (!typedefOwnerModp && typedefp) typedefOwnerModp = findOwnerModule(typedefp);
s_map[refp] = CapturedIfaceTypedef{

View File

@ -0,0 +1,18 @@
#!/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: 2025 Wilson Snyder
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
import vltest_bootstrap
test.scenarios('simulator')
test.compile()
test.execute()
test.passes()

View File

@ -0,0 +1,23 @@
// 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 ifc #(parameter int width)(input logic [width-1:0] b);
logic [width-1:0] a;
typedef logic[width-1:0] type_t;
always_comb a = type_t'(b);
endinterface
module t;
logic [15:0] x;
ifc #(.width(16)) x_ifc(x);
logic [7:0] y;
ifc #(.width(8)) y_ifc(y);
initial begin
$write("*-* All Finished *-*\n");
$finish;
end
endmodule