Skip to content

Commit

Permalink
[nix] use vcs rtlink in all cases
Browse files Browse the repository at this point in the history
  • Loading branch information
FanShupei committed Feb 25, 2025
1 parent 0dd0af8 commit 84134cf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
5 changes: 2 additions & 3 deletions nix/t1/run/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
, verilator-emu
, verilator-emu-trace
, vcs-emu
, vcs-emu-rtlink
, vcs-emu-cover
, vcs-emu-trace
, vcs-dpi-lib
Expand Down Expand Up @@ -44,7 +43,7 @@ let

vcs-emu = runEmu {
inherit testCase;
emulator = vcs-emu-rtlink;
emulator = vcs-emu;
};

vcs-emu-trace = runEmu {
Expand Down Expand Up @@ -73,7 +72,7 @@ let

vcs-prof-vcd = runFsdb2vcd (runEmu {
inherit testCase;
emulator = vcs-emu-rtlink;
emulator = vcs-emu;
emuExtraArgs = {
vcsDpiLib = vcs-dpi-lib;
};
Expand Down
14 changes: 8 additions & 6 deletions nix/t1/t1.nix
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,19 @@ forEachTop (topName: generator: self: {

inherit (t1Scope) sim-checker;

# We do not use vcs-emu-static every day,
# but we may switch back to static once rtLink breaks
vcs-emu-static = self.vcs-emu.override {
mainProgram = "${topName}-vcs-simulator-static";
vcsLinkLibs = [ "${self.vcs-dpi-lib}/lib/libdpi_${topName}.a" ];
rtLinkDpiLib = null;
};

vcs-emu = t1Scope.sv-to-vcs-simulator {
mainProgram = "${topName}-vcs-simulator";
topModule = "TestBench";
rtl = self.rtl;
vsrc = lib.filesystem.listFilesRecursive self.clean-vsrc.outPath;
vcsLinkLibs = [ "${self.vcs-dpi-lib}/lib/libdpi_${topName}.a" ];
rtLinkDpiLib = self.vcs-dpi-lib;
};
vcs-emu-rtlink = self.vcs-emu.override {
mainProgram = "${topName}-vcs-simulator-rtlink";
vcsLinkLibs = [ ];
rtLinkDpiLib = self.vcs-dpi-lib;
};
vcs-emu-cover = self.vcs-emu.override {
Expand Down

0 comments on commit 84134cf

Please sign in to comment.