NAME

SystemC::Vregs::Enum - Definition object

SYNOPSIS

    use SystemC::Vregs;

DESCRIPTION

This package contains a blessed hash object for each enumeration.

FIELDS

These fields may be specified with the new() function, and accessed via the self hash: $self->{field}.

bits

Number of bits wide the enumeration values are.

desc

Description comment for the object.

name

Name of the object.

pack

Reference to the package (SystemC::Vregs) object self is a member of.

fields

Hash containing SystemC::Vregs::Enum::Value objects. Each value object contains a name, desc, and rst field, just like the SystemC::Vregs::Define objects.

METHODS

new

Creates a new enumeration object.

check

Checks the object for errors, and parses to create derived Fields.

DISTRIBUTION

Vregs is part of the http://www.veripool.org/ free Verilog software tool suite. The latest version is available from CPAN and from http://www.veripool.org/vregs. /www.veripool.org/>.

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.

AUTHORS

Wilson Snyder <wsnyder@wsnyder.org>

SEE ALSO

SystemC::Vregs