Subject: | Netlist module converts "supply" statements to "wire" |
"supply0" and "supply1" statements frequently appear in netlists to
indicate nets that are connected to power supplies. Presently an input
such as:
supply1 Vdd;
will be silently converted to:
wire Vdd;
on output, resulting in an undriven net.
A patch is attached.
Regards,
Jeff Trull
Subject: | supply01.diff |
--- Verilog-Perl-2.361/Netlist/File.pm 2006-10-02 06:22:49.000000000 -0700
+++ Verilog-Perl-2.361-mrhack/Netlist/File.pm 2007-01-05 15:06:07.737060000 -0800
@@ -161,10 +161,14 @@
|| $inout eq "supply0" || $inout eq "supply1"
) {
my $net = $modref->find_net ($netname);
+ my $nettype = "wire";
+ if ($inout =~ /^supply\d/) {
+ $nettype = $inout;
+ }
$net or $net = $modref->new_net
(name=>$netname,
filename=>$self->filename, lineno=>$self->lineno,
- simple_type=>1, type=>'wire', array=>$array,
+ simple_type=>1, type=>$nettype, array=>$array,
comment=>undef, msb=>$msb, lsb=>$lsb,
signed=>$signed,
);