Skip Menu |

This queue is for tickets about the Hardware-Verilog-Parser CPAN distribution.

Report information
The Basics
Id: 51080
Status: open
Priority: 0/
Queue: Hardware-Verilog-Parser

People
Owner: Nobody in particular
Requestors: jason.polychronopulos [...] nxp.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: "greg42 [...] bellatlantic.net" <greg42 [...] bellatlantic.net>
Subject: Hardware-Verilog-Parser bug?
Date: Tue, 3 Nov 2009 19:08:36 +0100
To: "bug-Hardware-Verilog-Parser [...] rt.cpan.org" <bug-Hardware-Verilog-Parser [...] rt.cpan.org>
From: jason polychronopulos <jason.polychronopulos [...] nxp.com>
Hello, I was very pleased to find "Hardware-Verilog-Parser" which gave me a good start to parsing the Verilog file I have for further analysis. After doing a few setup steps I run: ( I am using Perl 5.8.8 x64 on Redhat Enterprise 4.0) perl ./parser.pl ./test1.v Gives output: gbr02488@acs0014.gb-sou01$ perl ./parser.pl ./test1.v parsing filename ./test1.v parsing filename ./test1.v Use of uninitialized value in array dereference at PrecompiledParser.pm line 56041, <FILE> line 38. Use of uninitialized value in array dereference at PrecompiledParser.pm line 56041, <FILE> line 38. Use of uninitialized value in array dereference at PrecompiledParser.pm line 56041, <FILE> line 38. Use of uninitialized value in array dereference at PrecompiledParser.pm line 5182, <FILE> line 38. Use of uninitialized value in array dereference at PrecompiledParser.pm line 5182, <FILE> line 38. Use of uninitialized value in array dereference at PrecompiledParser.pm line 4425, <FILE> line 38. Use of uninitialized value in array dereference at PrecompiledParser.pm line 4425, <FILE> line 38. Use of uninitialized value in array dereference at PrecompiledParser.pm line 4425, <FILE> line 38. Use of uninitialized value in array dereference at PrecompiledParser.pm line 17768, <FILE> line 38. module testmodule contained the following input ports: clock myin reset_n contained the following inout ports: contained the following output ports: Use of uninitialized value in string eq at PrecompiledParser.pm line 61607, <FILE> line 38. Can't call method "numeric" on an undefined value at PrecompiledParser.pm line 61608, <FILE> line 38. myoutgbr02488@acs0014.gb-sou01$ Have I done something wrong? Best Regards, Jason Jason Polychronopulos ESL Design Methodology Engineer NXP Semiconductors / Corp. I&T / DTF GER-0-006, Second Avenue, Southampton, SO15 0DJ Intranet: http://nww.nxp.com/locations/southampton Seri: gbr02488@seri03 Email: jason.polychronopulos@nxp.com<mailto:jason.polychronopulos@nxp.com> Tel: +44 (0) 2380 316486 Fax: +44 (0) 2380 316303
From: PHIXCOCO [...] cpan.org
On Tue Nov 03 13:09:19 2009, jason.polychronopulos@nxp.com wrote: Show quoted text
> Hello, > > I was very pleased to find "Hardware-Verilog-Parser" which gave me a > good start to parsing the Verilog file I have for further analysis. > > After doing a few setup steps I run: ( I am using Perl 5.8.8 x64 on > Redhat Enterprise 4.0) > > perl ./parser.pl ./test1.v > > > Gives output: > > gbr02488@acs0014.gb-sou01$ perl ./parser.pl ./test1.v > > Use of uninitialized value in array dereference at > PrecompiledParser.pm line 56041, <FILE> line 38. > Use of uninitialized value in array dereference at > PrecompiledParser.pm line 56041, <FILE> line 38. > Use of uninitialized value in array dereference at > PrecompiledParser.pm line 56041, <FILE> line 38. > Use of uninitialized value in array dereference at > PrecompiledParser.pm line 5182, <FILE> line 38. > Use of uninitialized value in array dereference at > PrecompiledParser.pm line 5182, <FILE> line 38. > Use of uninitialized value in array dereference at > PrecompiledParser.pm line 4425, <FILE> line 38. > Use of uninitialized value in array dereference at > PrecompiledParser.pm line 4425, <FILE> line 38. > Use of uninitialized value in array dereference at > PrecompiledParser.pm line 4425, <FILE> line 38. > Use of uninitialized value in array dereference at > PrecompiledParser.pm line 17768, <FILE> line 38. > module testmodule >
Jason, This is a true bug, but I have no idea why the author didn't encounter and fix it at the first time. As the author claimed, this module is in beta development stage, so we just take this easy. Before the author add a patch to v0.13, you may fix the above issue as follows: 1. Open 'generate_precompiled_parser.pl' file on root of the installation package for edit, replay '$item{range}' with '$item{q{range (?)}}' throughout the file. 2. execute 'generate_precompiled_parser.pl' and generate the 'PrecompiledPaser.pm', and the above problem would disappear! Further more, since the generated PrecompiledParser.pm is not copy to the installed directory automatically. You'd better to copy it to any location in your @INC manually. Hope this helps! Shawn HU S3 Graphics