---
name: "Verilog::Netlist::Cell"
section: "3pm"
platform: "linux"
package: "libverilog-perl"
version: "3.482-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Verilog::Netlist::Cell"
---

# Verilog::Netlist::Cell(3pm)

Instantiated cell within a Verilog Netlist

## NAME

Verilog::Netlist::Cell - Instantiated cell within a Verilog Netlist

## SYNOPSIS

```
  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.

## ACCESSORS

See also Verilog::Netlist::Subclass for additional accessors and methods.

- $self-\>comment

  Returns any comments following the definition.  keep\_comments=\>1 must be passed to Verilog::Netlist::new for comments to be retained.

- $self-\>delete

  Delete 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.

- $self-\>submodname

  The module name the cell instantiates (under the cell).

## MEMBER FUNCTIONS

See also Verilog::Netlist::Subclass for additional accessors and methods.

- $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.

- $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
