Open superpung opened 1 year ago
In the definition of the VerilogGraphGenerator class, one of the arguments of its generate method is do_reorder: https://github.com/PyHDI/Pyverilog/blob/81838bc463d17148ef6872af34eb27585ee349ba/pyverilog/dataflow/graphgen.py#L57 However, in the example_graphgen.py file, this argument is mistakenly referred to as reorder. https://github.com/PyHDI/Pyverilog/blob/81838bc463d17148ef6872af34eb27585ee349ba/examples/example_graphgen.py#L100-L101 So when running python3 pyverilog/examples/example_graphgen.py -t top -s top.led test.v, I encountered error messages that are as follows:
VerilogGraphGenerator
generate
do_reorder
example_graphgen.py
reorder
python3 pyverilog/examples/example_graphgen.py -t top -s top.led test.v
Generating LALR tables WARNING: 183 shift/reduce conflicts Traceback (most recent call last): File "/path/to/pyverilog-demo/pyverilog/examples/example_graphgen.py", line 107, in <module> main() File "/path/to/pyverilog-demo/pyverilog/examples/example_graphgen.py", line 100, in main graphgen.generate(target, walk=options.walk, identical=options.identical, TypeError: VerilogGraphGenerator.generate() got an unexpected keyword argument 'reorder'
Fixes #97 and #117.
Bug has been introduced in commit 7086786a6f5f8ad965b097344a77b4b86d21a93c.
/cc @shtaxxx
@shtaxxx
In the definition of the
VerilogGraphGenerator
class, one of the arguments of itsgenerate
method isdo_reorder
: https://github.com/PyHDI/Pyverilog/blob/81838bc463d17148ef6872af34eb27585ee349ba/pyverilog/dataflow/graphgen.py#L57 However, in theexample_graphgen.py
file, this argument is mistakenly referred to asreorder
. https://github.com/PyHDI/Pyverilog/blob/81838bc463d17148ef6872af34eb27585ee349ba/examples/example_graphgen.py#L100-L101 So when runningpython3 pyverilog/examples/example_graphgen.py -t top -s top.led test.v
, I encountered error messages that are as follows: