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