1Netlist::ModPort(3)   User Contributed Perl Documentation  Netlist::ModPort(3)
2
3
4

NAME

6       Verilog::Netlist::ModPort - ModPort within a Verilog Interface
7

SYNOPSIS

9         use Verilog::Netlist;
10
11         ...
12         my $interface = $netlist->find_interface('name');
13         my $modport =  $interface->find_modport('name')
14

DESCRIPTION

16       A Verilog::Netlist::ModPort object is created by
17       Verilog::Netlist::Interface for every modport under the interface.
18

METHODS

20       See also Verilog::Netlist::Subclass for additional accessors and
21       methods.
22
23       $self->comment
24           Returns any comments following the definition.  keep_comments=>1
25           must be passed to Verilog::Netlist::new for comments to be
26           retained.
27
28       $self->dump
29           Prints debugging information for this modport.
30
31       $self->find_port(name)
32           Returns Verilog::Netlist::Net matching given name.
33
34       $self->find_port_by_index
35           Returns the port name associated with the given index.
36
37       $self->module
38           Returns Verilog::Netlist::Interface the ModPort belongs to.
39
40       $self->lint
41           Checks the modport for errors.
42
43       $self->name
44           The name of the modport.
45
46       $self->netlist
47           Reference to the Verilog::Netlist the modport is under.
48
49       $self->nets
50           Returns list of references to Verilog::Netlist::Net in the
51           interface.
52
53       $self->nets_sorted
54           Returns list of name sorted references to Verilog::Netlist::Net in
55           the interface.
56
57       $self->nets_and_ports_sorted
58           Returns list of name sorted references to Verilog::Netlist::Net and
59           Verilog::Netlist::Port in the modport.
60
61       $self->ports
62           Returns list of references to Verilog::Netlist::Port in the
63           modport.
64
65       $self->ports_ordered
66           Returns list of references to Verilog::Netlist::Port in the modport
67           sorted by pin number.
68
69       $self->ports_sorted
70           Returns list of references to Verilog::Netlist::Port in the modport
71           sorted by name.
72
73       $self->verilog_text
74           Returns verilog code which represents this modport.  Returned as an
75           array that must be joined together to form the final text string.
76           The netlist must be already ->link'ed for this to work correctly.
77

DISTRIBUTION

79       Verilog-Perl is part of the <http://www.veripool.org/> free Verilog EDA
80       software tool suite.  The latest version is available from CPAN and
81       from <http://www.veripool.org/verilog-perl>.
82
83       Copyright 2000-2019 by Wilson Snyder.  This package is free software;
84       you can redistribute it and/or modify it under the terms of either the
85       GNU Lesser General Public License Version 3 or the Perl Artistic
86       License Version 2.0.
87

AUTHORS

89       Wilson Snyder <wsnyder@wsnyder.org>
90

SEE ALSO

92       Verilog-Perl, Verilog::Netlist::Subclass Verilog::Netlist::Interface
93       Verilog::Netlist
94
95
96
97perl v5.30.0                      2019-09-13               Netlist::ModPort(3)
Impressum