The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.

DISTRIBUTION

The latest version is available from CPAN and from http://www.veripool.com/.

Copyright 2001-2005 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 or the Perl Artistic License.

AUTHORS

Wilson Snyder <wsnyder@wsnyder.org>

SEE ALSO

SystemC::Netlist