Wilson Snyder > SystemPerl-1.341 > SystemC::Netlist::File

Download:
SystemPerl-1.341.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.341   Source   Latest Release: SystemPerl-1.342

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->dump

Prints debugging information for this file.

$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 type=> parameter is set to 'implementation', 'interface' or 'slow', only that type of code will be written.

DISTRIBUTION ^

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-2013 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>

SEE ALSO ^

SystemC::Netlist

syntax highlighting: