1Netlist::Subclass(3) User Contributed Perl Documentation Netlist::Subclass(3)
2
3
4
6 Verilog::Netlist::Subclass - Common routines for all classes
7
9 package Verilog::Netlist::Something;
10 use Verilog::Netlist::Subclass;
11 use base qw(Verilog::Netlist::Subclass);
12
13 ...
14
15 $self->info("We're here\n");
16 $self->warn("Things look bad\n");
17 $self->error("Things are even worse\n");
18 $self->exit_if_error();
19
21 The Verilog::Netlist::Subclass is used as a base class for all
22 Verilog::Netlist::* structures. It is mainly used so that
23 $self->warn() and $self->error() will produce consistent results.
24
26 $self->error(Text...)
27 Print an error in a standard format.
28
29 $self->errors()
30 Return number of errors detected.
31
32 $self->exit_if_error()
33 Exits the program if any errors were detected.
34
35 $self->filename()
36 The filename number the entity was created in.
37
38 $self->info(Text...)
39 Print a informational in a standard format.
40
41 $self->lineno()
42 The line number the entity was created on.
43
44 $self->logger()
45 The class to report errors using, generally a
46 Verilog::Netlist::Logger object.
47
48 $self->userdata(key) =item $self->userdata(key, data)
49 Sets (with two arguments) or retrieves the specified key from an
50 opaque hash. This may be used to store application data on the
51 specified node.
52
53 $self->warn(Text...)
54 Print a warning in a standard format.
55
56 $self->warnings()
57 Return number of warnings detected.
58
60 Verilog-Perl is part of the <http://www.veripool.org/> free Verilog EDA
61 software tool suite. The latest version is available from CPAN and
62 from <http://www.veripool.org/verilog-perl>.
63
64 Copyright 2000-2019 by Wilson Snyder. This package is free software;
65 you can redistribute it and/or modify it under the terms of either the
66 GNU Lesser General Public License Version 3 or the Perl Artistic
67 License Version 2.0.
68
70 Wilson Snyder <wsnyder@wsnyder.org>
71
73 Verilog-Perl, Verilog::Netlist
74
75
76
77perl v5.28.1 2019-05-04 Netlist::Subclass(3)