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-PerlVerilog::Netlist::SubclassVerilog::Netlist::InterfaceVerilog::Netlist
footer cutie check: Netlist::ModPort(3) Β· perl v5.42.0 Β· 2025-07-25 πβ¨
π¦ where this page comes from
- fedora 43: perl-Verilog-Perl 3.482-6.fc43 Β· LGPL-3.0-only OR Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms