NAME
SystemC::Netlist::File - File containing SystemC code
SYNOPSIS
use SystemC::Netlist;
my $nl = new SystemC::Netlist;
my $fileref = $nl->read_file (filename=>'filename');
$fileref->write (filename=>'new_filename',
expand_autos=>1,);
DESCRIPTION
SystemC::Netlist::File allows SystemC files to be read and written.
ACCESSORS
- $self->basename
-
The filename of the file with any path and . suffix stripped off.
- $self->name
-
The filename of the file.
MEMBER FUNCTIONS
- $self->read
-
Generally called as $netlist->read_file. Pass a hash of parameters. Reads the filename=> parameter, parsing all instantiations, ports, and signals, and creating SystemC::Netlist::Module structures. The optional preserve_autos=> parameter prevents default ripping of /*AUTOS*/ out for later recomputation.
- $self->write
-
Pass a hash of parameters. Writes the filename=> parameter with the contents of the previously read file. If the expand_autos=> parameter is set, /*AUTO*/ comments will be expanded in the output. If the as_implementation=> parameter is set, only implementation code (.cpp) will be written. If the as_interface=> parameter is set, only interface code (.h) will be written.
- $self->dump
-
Prints debugging information for this file.
SEE ALSO
AUTHORS
Wilson Snyder <wsnyder@wsnyder.org>