djg / verilated-rs

Verilator Porcelain
Apache License 2.0
36 stars 14 forks source link

Enable performance optimisations in verilator #7

Closed hugoferreira closed 3 years ago

hugoferreira commented 3 years ago

As per verilator documentation:

-O3 Enables slow optimizations for the code Verilator itself generates (as opposed to "-CFLAGS -O3" which effects the C compiler's optimization. -O3 may improve simulation performance at the cost of compile time.

This PR adds a .with_performance_optimizations(bool) to the builder.

djg commented 3 years ago

Thanks for your PR!