Netlist::Cell(3)

πŸ’– NAME πŸ’–

okay bestie, welcome to Netlist::Cell(3) β€” the user-contributed Perl documentation for Verilog::Netlist::Cell πŸ’…βœ¨

Verilog::Netlist::Cell β€” instantiated cell within a Verilog Netlist. That's the whole vibe: it's one instantiation living its main character life inside your module 🫢.


✨ SYNOPSIS ✨

okay so the tiny example is literally:

use Verilog::Netlist;

...
my $cell = $module->find_cell('cellname');
print $cell->name;

πŸ¦‹ DESCRIPTION πŸ¦‹

A Verilog::Netlist::Cell object is created by Verilog::Netlist for every instantiation in the current module. No cap, every instantiation gets one πŸ’–.


πŸ’… ACCESSORS πŸ’…

See also Verilog::Netlist::Subclass for additional accessors and methods. (Yes, the parent class has more stuff β€” go look πŸ‘€.)

  • $self->comment β€” returns any comments following the definition. You literally have to pass keep_comments=>1 to Verilog::Netlist::new for comments to be retained, or they're not sticking around 🫠.
  • $self->delete β€” deletes the cell from the module it's under.
  • $self->gateprim β€” true if the cell is a gate primitive instantiation (buf/cmos/etc), but not a UDP.
  • $self->module β€” pointer to the module the cell is in.
  • $self->name β€” the instantiation name of the cell.
  • $self->netlist β€” reference to the Verilog::Netlist the cell is under.
  • $self->pins β€” list of Verilog::Netlist::Pin connections for the cell.
  • $self->pins_sorted β€” list of name sorted Verilog::Netlist::Pin connections for the cell.
  • $self->range β€” the range for the cell (e.g. "[1:0]") or false (i.e. undef or "") if not ranged.
  • $self->submod β€” reference to the Verilog::Netlist::Module the cell instantiates. Only valid after the design is linked β€” don't try it before, bestie 🚨.
  • $self->submodname β€” the module name the cell instantiates (under the cell).

πŸŽ€ MEMBER FUNCTIONS πŸŽ€

See also Verilog::Netlist::Subclass for additional accessors and methods. (Same note as above, because consistency is iconic ✨.)

  • $self->lint β€” checks the cell for errors. Normally called by Verilog::Netlist::lint.
  • $self->new_pin β€” creates a new Verilog::Netlist::Pin connection for this cell.
  • $self->pins_sorted β€” returns all Verilog::Netlist::Pin connections for this cell. (Yep, she's also up in ACCESSORS β€” she contains multitudes πŸ’….)
  • $self->dump β€” prints debugging information for this cell.

🌈 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

xoxo, this page is from perl v5.42.0, dated 2025-07-25 β€” bye bestie πŸ’–πŸŽ€

πŸ“¦ where this page comes from