byuccl / spydrnet

A flexible framework for analyzing and transforming FPGA netlists. Official repository.
https://byuccl.github.io/spydrnet
BSD 3-Clause "New" or "Revised" License
86 stars 20 forks source link

[verilog] Fixed parser not properly handling empty instance port list #199

Closed agg23 closed 1 year ago

agg23 commented 1 year ago

The Verilog parser currently crashes when instantiating modules with an empty port list, of the form:

MyModule crasher ();

This fixes this minor issue and adds tests for the situation.