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, use msb/lsb/width. For newer applications use data_type() as it supports SystemVerilog types. πŸŽ€
  • $self->comment β€” Returns any comments following the definition. You must pass keep_comments=>1 to Verilog::Netlist::new for 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 the port method β€” or "net" β€” and see the net_type method. πŸ‘‘
  • $self->module β€” Reference to the Verilog::Netlist::Module or Verilog::Netlist::Interface the 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 β€” The type function is provided for backward compatibility to Verilog-Perl versions before 3.200. Applications should change to use data_type() and/or decl_type() instead. The type function returns an agglomeration of data_type, net_type and decl_type that worked ok in Verilog, but does not work with SystemVerilog. Calls to type() will be converted to calls to data_type, decl_type or net_type in 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 by Verilog::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-Perl
  • Verilog::Netlist::Subclass
  • Verilog::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