Skip to content

Commit

Permalink
fix: fix batch include on fpga
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaokamikami committed Mar 4, 2025
1 parent f8746f0 commit 0fbf9b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/DPIC.scala
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,9 @@ object DPIC {
interfaceCpp += ""
interfaceCpp += "#include <cstdint>"
interfaceCpp += "#include \"diffstate.h\""
interfaceCpp += "#ifdef CONFIG_DIFFTEST_BATCH"
interfaceCpp += "#if defined(CONFIG_DIFFTEST_BATCH) && !defined(CONFIG_PLATFORM_FPGA)"
interfaceCpp += "#include \"svdpi.h\""
interfaceCpp += "#endif // CONFIG_DIFFTEST_BATCH"
interfaceCpp += "#endif // CONFIG_DIFFTEST_BATCH && !CONFIG_PLATFORM_FPGA"
interfaceCpp += "#ifdef CONFIG_DIFFTEST_PERFCNT"
interfaceCpp += "#include \"perf.h\""
interfaceCpp += "#endif // CONFIG_DIFFTEST_PERFCNT"
Expand Down

0 comments on commit 0fbf9b9

Please sign in to comment.