UCSBarchlab / PyRTL

A collection of classes providing simple hardware specification, simulation, tracing, and testing suitable for teaching and research. Simplicity, usability, clarity, and extensibility are the overarching goals, rather than performance or optimization.
http://ucsbarchlab.github.io/PyRTL
BSD 3-Clause "New" or "Revised" License
253 stars 76 forks source link

"toplevel" in verilog output is hardcoded #420

Open bjourne opened 2 years ago

bjourne commented 2 years ago

When outputting your design to verilog using output_to_verilog the name of the module is always set to "toplevel". It would be great if you could pass the module name as a parameter to that function.