djg / verilated-rs

Verilator Porcelain
Apache License 2.0
36 stars 14 forks source link

Fix compilation for multiple modules #11

Open zebreus opened 1 year ago

zebreus commented 1 year ago

Verilator generates multiple cpp files, if there are multiple modules in a Verilog file. At the moment only the main module is compiled and linked into the Rust binary. This PR adds support for detecting other modules and linking them.

I have verified that the example still works with this PR.

Luke-Cashwell commented 1 month ago

I just started using this library and noticed this issue; I was about to come and see about fixing it but it looks as though you have done the work for me. Thank you!