Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
verilator runs out of memory at gateAll #1260
Author Name: Alex Solomatnikov
Original Assignee: Wilson Snyder (@wsnyder)
verilator consumes ~100 GB of memory at gateAll stage and runs out of memory eventually:
It looks like copy constructor is creating another copy of the graph and at that point it runs out of memory:
It looks like verilator is stuck at this point for several minutes before running out of memory.
Original Redmine Comment
The code has thousands of lines similar to this
Obviously they are machine generated. The optimizer is going crazy optimizing them. I would recommend creating more sane code, it will translate and run a lot faster. But anyhow...
Fixed in git to stop optimizing at some point, and added --gate-stmts parameter to tune this.