Netlist::Subclass(3)
π¦ Netlist::Subclass(3) π¦
okay bestie, welcome to Netlist::Subclass(3) β the manual-name corner is User Contributed Perl Documentation, and this page is lowkey the communal glue for the Verilog::Netlist::* classes. Itβs giving βcommon routines for all classesβ, periodt. π
πΈ NAME πΈ
Verilog::Netlist::Subclass β common routines for all classes. No cap.
β¨ SYNOPSIS β¨
Use it like this, bestie:
package Verilog::Netlist::Something;
use Verilog::Netlist::Subclass;
use base qw(Verilog::Netlist::Subclass);
...
$self->info("We're here\n");
$self->warn("Things look bad\n");
$self->error("Things are even worse\n");
$self->exit_if_error();
π DESCRIPTION π
Verilog::Netlist::Subclass is the base class for all the Verilog::Netlist::* structures β main character energy for the whole family. Itβs mainly there so $self->warn() and $self->error() produce consistent results. Thatβs the whole vibe: consistent reporting, no chaos-gremlin output. π«Ά
π MEMBER FUNCTIONS π
$self->error(Text...)β prints an error in a standard format. Itβs the βokay this is badβ announcement, but make it consistent. π$self->errors()β returns the number of errors detected. The receipts, basically. π$self->exit_if_error()β exits the program if any errors were detected. It does not gently ask; it exits. π₯$self->filename()β the filename number the entity was created in. Yes, βfilename numberβ β thatβs the wording, bestie. π$self->info(Text...)β prints an informational message in a standard format. Little status update moment. β¨$self->lineno()β the line number the entity was created on. Location check! π$self->logger()β the class to report errors using, generally aVerilog::Netlist::Loggerobject. Itβs the reporting bestie. π§$self->userdata(key),$self->userdata(key, data)β sets (with two arguments) or retrieves the specified key from an opaque hash. This may be used to store application data on the specified node. Opaque hash = mystery box, but useful. π$self->warn(Text...)β prints a warning in a standard format. The βhmm bestie, heads upβ of the API. π$self->warnings()β returns the number of warnings detected. Count βem. π
π DISTRIBUTION π
Verilog-Perl is part of the free Verilog EDA software tool suite at https://www.veripool.org/. The latest version is available from CPAN and from https://www.veripool.org/verilog-perl. π»β¨
Copyright 2000-2024 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>. Iconic. π
π¦ SEE ALSO π¦
Verilog-Perl, Verilog::Netlist. Go read those too, iykyk. πΈ
Cute little sign-off: this page came from perl v5.42.0, dated 2025-07-25 β bye bestie, go report consistently π
π
π¦ where this page comes from
- fedora 43: perl-Verilog-Perl 3.482-6.fc43 Β· LGPL-3.0-only OR Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms