You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original Redmine Comment
Author Name: Jeff Short
Original Date: 2008-09-16T22:55:08Z
I was able to fix the output by doing the following in Net.pm :
sub verilog_text {
my $self = shift;
my @out;
foreach my $decl ($self->_decls) {
push @out, $decl;
push @out, " [".$self->msb.":".$self->lsb."]" if defined $self->msb;
push @out, " ".$self->name;
push @out, " ".$self->array if $self->array;
push @out, " = ".$self->value if defined $self->value && $self->value ne '';
push @out, ";";
}
return (wantarray ? @out : join('',@out));
}
Just added one new line to deal with value. Not sure this is 100% correct but it works in my case anyway. Let me know what you think.
Author Name: Jeff Short
Original Redmine Issue: 31 from https://www.veripool.org
Original Date: 2008-09-15
Original Assignee: Wilson Snyder (@wsnyder)
When I call $nl->verilog_text where $nl is a Verilog::Netlist object, the value property on a net seems to be dropped.
Example:
wire PWROK = VDD & ~VSS;
->dump on PWROK returns:
Net:PWROK Type:wire Array: Value:VDD&~VSS
However the ->verilog_text only shows:
wire PWROK;
It looks like I am using version 3.040 of your code.
Jeff Short
The text was updated successfully, but these errors were encountered: