Skip to content

Verilator Performance Improvement on Testbench

Eclipse Webmaster requested to merge github/fork/Karl-Han/verilator into main

Created by: Karl-Han

As mentioned in #650 (closed) , the problems are tackled in the following ways:

  • $finish is required for Verilator while causing problem in QuestaSIM
    • use macro to conditional compile the $finish and $stop for different simulator
  • profiling error with 460% surplus
  • Testbench is running much slower in verilator
    • My intuition for the modification is that I am trying to eliminate unnecessary operations, and I found that the loading and validating the test is included inside a always block.
    • as it turns out, this solution eliminates the problem and it runs faster on verilator than QuestaSIM
  • Coding style is changed as #delays are removed https://github.com/verilator/verilator/issues/4858
    • Collaboratively work with David and remove all the #delay in code except the testbench
    • and it passes the regression.

Merge request reports

Loading