Merge 12337ecb1e into e0c626e48a
This commit is contained in:
commit
01dfb23021
|
|
@ -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{
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
@ -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
|
||||
Loading…
Reference in New Issue