| SystemPerl documentation | Contained in the SystemPerl distribution. |
SystemC::Netlist::Port - Port for a SystemC Module
This is a superclass of Verilog::Netlist::Port, derived for a SystemC netlist port.
SystemPerl is part of the http://www.veripool.org/ free SystemC software tool suite. The latest version is available from CPAN and from http://www.veripool.org/systemperl.
Copyright 2001-2010 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.
Wilson Snyder <wsnyder@wsnyder.org>
| SystemPerl documentation | Contained in the SystemPerl distribution. |
# SystemC - SystemC Perl Interface # See copyright, etc in below POD section. ###################################################################### package SystemC::Netlist::Port; use Class::Struct; use Verilog::Netlist; use SystemC::Netlist; @ISA = qw(Verilog::Netlist::Port); $VERSION = '1.336'; use strict; ###################################################################### #### Accessors sub inherited { $_[0]->attributes("_sp_inherited", $_[1]) if exists $_[1]; return $_[0]->attributes("_sp_inherited")||0; } sub _decl_order { $_[0]->attributes("_sp_decl_order", $_[1]) if exists $_[1]; return $_[0]->attributes("_sp_decl_order")||0; } sub iotype { # Type including I/O direction return "sc_".$_[0]->direction."<".(($_[0]->net && $_[0]->net->sc_type) || $_[0]->data_type)." >"; } ###################################################################### #### Methods sub lint { my $self = shift; $self->SUPER::lint(); if ($self->module->attributes('check_outputs_used') && ($self->direction eq "out") && !defined $self->module->_code_symbols->{$self->name} && $self->netlist->{lint_checking} ) { $self->warn("Module with AUTOATTR(check_outputs_used) is missing reference: ",$self->name(), "\n"); $self->dump_drivers(8); } } sub verilog_text { my $self = shift; return $self->net->verilog_text(@_); } ###################################################################### #### Package return 1; __END__