Skip to content

Commit

Permalink
[nix] fix verilator build
Browse files Browse the repository at this point in the history
  • Loading branch information
FanShupei authored and sequencer committed Sep 11, 2024
1 parent e6139f5 commit 45e293f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nix/t1/conversion/sv-to-verilator-emulator.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ rec {
verilatorTop
]
++ extraVerilatorArgs
++ lib.optionals (enableTrace) [ "--trace-fst" ];
++ lib.optionals (enableTrace) [
"+define+T1_ENABLE_TRACE"
"--trace-fst"
];

buildPhase = ''
runHook preBuild
Expand Down
2 changes: 2 additions & 0 deletions nix/t1/t1rocket.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@
verilator-dpi-lib = scope.makeDifftest {
outputName = "t1rocket-verilator-dpi-lib";
moduleType = "dpi_t1rocket";
emuType = "verilator";
};
verilator-dpi-lib-trace = scope.makeDifftest {
outputName = "t1rocket-verilator-trace-dpi-lib";
moduleType = "dpi_t1rocket";
emuType = "verilator";
enableTrace = true;
};

Expand Down

0 comments on commit 45e293f

Please sign in to comment.