veripool / verilog-perl

Verilog parser, preprocessor, and related tools for the Verilog-Perl package
https://www.veripool.org/verilog-perl
Artistic License 2.0
121 stars 34 forks source link

Verilog::SigParser falls over if localparam's are used in a parameterized interface #1133

Closed veripoolbot closed 6 years ago

veripoolbot commented 7 years ago

Author Name: Shareef Jalloq Original Redmine Issue: 1133 from https://www.veripool.org


I'm getting the following errors when parsing an interface that uses localparams.

syntax error, unexpected localparam, expecting CLASS-IDENTIFIER or COVERGROUP-IDENTIFIER or TYPE-IDENTIFIER

My interface is of the form:

interface blah_if 
#( localparam A = 0,
    localparam B = 1 );
  logic [A:0] in;
endinterface
veripoolbot commented 7 years ago

Original Redmine Comment Author Name: Wilson Snyder (@wsnyder) Original Date: 2017-03-08T12:26:31Z


The example you sent parses fine for me (when run through vhier ). Are you sure this is the exact case that fails for you, and you're using a recent version?

veripoolbot commented 7 years ago

Original Redmine Comment Author Name: Shareef Jalloq Original Date: 2017-03-08T13:14:35Z


Haven't tried that example. Will make sure I've got the latest version installed before I try again. Will report back (at the end of a long wait for IT to install the latest module).

veripoolbot commented 6 years ago

Original Redmine Comment Author Name: Wilson Snyder (@wsnyder) Original Date: 2017-11-18T23:16:40Z


Presume you got this settled, if not please reopen or make a new issue.