jameshanlon / netlist-paths

A library and command-line tool for querying a Verilog netlist.
https://jameshanlon.github.io/netlist-paths
Apache License 2.0
26 stars 3 forks source link

Pass includes and defines from Python #24

Closed heiner-bauer closed 2 years ago

heiner-bauer commented 2 years ago

Pass the previously unused Python command line arguments -I and -D to RunVerilator. The conversion from boost::python::list seems a bit clumsy, but the best I could come up with for now.

jameshanlon commented 2 years ago

Hey @heiner-bauer, thanks for raising this project's first pull request!

The changes look good to me, could you add unit tests for this to tests/integration/py_wrapper_tests.py and tests/integration/tool_tests.py?

Cheers, Jamie