Netlist::ModPort(3)

🌸 NAME 🌸

okay bestie, this is Netlist::ModPort(3) from User Contributed Perl Documentation, and it's giving Perl module realness. the star is Verilog::Netlist::ModPort β€” a ModPort within a Verilog Interface. periodt. πŸ’…

✨ SYNOPSIS ✨

bestie, here's the little use-case snack:

use Verilog::Netlist;

...
my $interface = $netlist->find_interface('name');
my $modport =  $interface->find_modport('name')

πŸ¦‹ DESCRIPTION πŸ¦‹

so every modport under the interface gets its own Verilog::Netlist::ModPort object, and Verilog::Netlist::Interface is the one making it. no cap. πŸ’–

πŸ’– METHODS πŸ’–

also, check Verilog::Netlist::Subclass for additional accessors and methods. iykyk.

πŸŽ€ $self->comment

returns any comments that follow the definition. but heads up: keep_comments=>1 must be passed to Verilog::Netlist::new for comments to be retained. yes, fr fr.

bestie, that keep_comments=>1 flag is the whole vibe for keeping comments.

πŸ’€ $self->dump

prints debugging information for this modport. lowkey useful when you're snooping. πŸ‘€

$self->find_port(name)

returns Verilog::Netlist::Net matching the given name. slay.

$self->find_port_by_index

returns the port name associated with the given index. cute.

$self->module

returns Verilog::Netlist::Interface β€” the interface this ModPort belongs to.

$self->lint

checks the modport for errors. self-care for your netlist, honestly.

$self->name

the name of the modport. iconic.

$self->netlist

reference to the Verilog::Netlist the modport is under.

$self->nets

returns a list of references to Verilog::Netlist::Net in the interface.

$self->nets_sorted

returns a list of name sorted references to Verilog::Netlist::Net in the interface.

$self->nets_and_ports_sorted

returns a list of name sorted references to Verilog::Netlist::Net and Verilog::Netlist::Port in the modport. both? yes bestie, both. 🫢

$self->ports

returns a list of references to Verilog::Netlist::Port in the modport.

$self->ports_ordered

returns a list of references to Verilog::Netlist::Port in the modport, sorted by pin number.

$self->ports_sorted

returns a list of references to Verilog::Netlist::Port in the modport, sorted by name.

$self->verilog_text

returns verilog code which represents this modport. it comes back as an array that must be joined together to form the final text string. also important: the netlist must be already ->link'ed for this to work correctly. no cap. πŸ”₯

🌈 DISTRIBUTION 🌈

Verilog-Perl is part of the free Verilog EDA software tool suite at https://www.veripool.org/. 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> β€” that's the author, bestie. πŸ’œ

πŸ‘‘ SEE ALSO πŸ‘‘

  • Verilog-Perl
  • Verilog::Netlist::Subclass
  • Verilog::Netlist::Interface
  • Verilog::Netlist

footer cutie check: Netlist::ModPort(3) Β· perl v5.42.0 Β· 2025-07-25 πŸŽ€βœ¨

πŸ“¦ where this page comes from