Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
VerilatorSimulator: Update default CFLAGS to avoid invalid PCH error
Browse files Browse the repository at this point in the history
Signed-off-by: Eryk Szpotanski <[email protected]>
  • Loading branch information
eszpotanski committed Jul 29, 2024
1 parent 40d1826 commit 14c57bf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/scala/chiseltest/simulator/VerilatorSimulator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,11 @@ private object VerilatorSimulator extends Simulator {
}

private def DefaultCFlags(topName: String) = List(
"-O1",
"-Os",
"-DVL_USER_STOP",
"-DVL_USER_FATAL",
"-DVL_USER_FINISH", // this is required because we ant to overwrite the vl_finish function!
s"-DTOP_TYPE=V$topName",
s"-include V$topName.h"
s"-DTOP_TYPE=V$topName"
)

private def DefaultFlags(topName: String, verilatedDir: os.Path, cFlags: Seq[String], ldFlags: Seq[String]) = List(
Expand Down

0 comments on commit 14c57bf

Please sign in to comment.