Verilog::Netlist::Cell(3pm)

Verilog::Netlist::Cell3pm

Instantiated cell within a verilog netlist

Usage

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

Overview

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.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

Authors

Wilson Snyder <[email protected]>

From libverilog-perl 3.482-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.