Netlist::Net(3)
π NAME π
Okay bestie, welcome to the user-contributed Perl documentation for Netlist::Net(3) β¨ β this is the page for Verilog::Netlist::Net β the Net for a Verilog Module. Periodt. π«Ά
πΈ SYNOPSIS πΈ
Here's the starter vibe:
use Verilog::Netlist;
...
my $net = $module->find_net('signalname');
print $net->name;
π¦ DESCRIPTION π¦
A Verilog::Netlist::Net object is created by Verilog::Netlist::Module for every signal and input/output declaration, and parameter in the current module. Literally every one gets a Net object, no cap. π
β¨ ACCESSORS β¨
See also Verilog::Netlist::Subclass for additional accessors and methods. So if you need more than what's here, that's the spot.
$self->arrayβ Any array (vector) declaration for the net. This is for Verilog 2001 multidimensional signals; for the width of a signal, usemsb/lsb/width. For newer applications usedata_type()as it supports SystemVerilog types. π$self->commentβ Returns any comments following the definition. You must passkeep_comments=>1toVerilog::Netlist::newfor comments to be retained. π«Ά$self->data_typeβ The data type of the net. This may be a data type keyword ("integer","logic", etc.), a user defined type from a type def, a range ("[11:0]","signed [1:0]"or""for an implicit wire). π$self->decl_typeβ How the net was declared. This is a declaration keyword ("genvar","localparam","parameter","var") or"port"if only as a port β and see theportmethod β or"net"β and see thenet_typemethod. π$self->moduleβ Reference to theVerilog::Netlist::ModuleorVerilog::Netlist::Interfacethe net is under. π$self->lsbβ The least significant bit number of the net. β$self->msbβ The most significant bit number of the net. β$self->nameβ The name of the net. π·οΈ$self->net_typeβ The net type, if one applies. Always a net type keyword ('supply0','supply1','tri','tri0','tri1','triand','trior','trireg','wand','wire','wor'). π₯$self->typeβ Thetypefunction is provided for backward compatibility to Verilog-Perl versions before3.200. Applications should change to usedata_type()and/ordecl_type()instead. Thetypefunction returns an agglomeration ofdata_type,net_typeanddecl_typethat worked ok in Verilog, but does not work with SystemVerilog. Calls totype()will be converted to calls todata_type,decl_typeornet_typein a way that attempts to maintain backward compatibility, however compatibility is not always possible. π$self->valueβ If the net's type is'parameter', the value from the parameter's declaration. π$self->widthβ The width of the net in bits. π
π§ MEMBER FUNCTIONS π§
See also Verilog::Netlist::Subclass for additional accessors and methods.
$self->lintβ Checks the net for errors. Normally called byVerilog::Netlist::lint. π΅οΈββοΈ$self->dumpβ Prints debugging information for this net. πͺ$self->dump_driversβ Prints debugging information for this net, and all pins driving the net. ππ¨
π DISTRIBUTION π
Verilog-Perl is part of the <https://www.veripool.org/> free Verilog EDA software tool suite. The latest version is available from CPAN and from <https://www.veripool.org/verilog-perl>. π
Copyright 2000-2024 by Wilson Snyder. This package 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. π
π AUTHORS π
- Wilson Snyder
<wsnyder@wsnyder.org>π
π SEE ALSO π
Verilog-PerlVerilog::Netlist::SubclassVerilog::Netlist
That's the tea β β footer vibes: source/version perl v5.42.0, dated 2025-07-25, page Netlist::Net(3). Bye bestie, go slay those nets π
β¨
π¦ where this page comes from
- fedora 43: perl-Verilog-Perl 3.482-6.fc43 Β· LGPL-3.0-only OR Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms