Skip to content

Commit

Permalink
[nix] tweak vcs link
Browse files Browse the repository at this point in the history
  • Loading branch information
sequencer committed Jul 21, 2024
1 parent db3ba2f commit c3f9e8d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions difftest/vcs-emu.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
, rust-analyzer
, rust-bindgen

, vcs-fhs-env
, vcStaticInstallPath
, vcs-lib

, cmake
Expand Down Expand Up @@ -41,7 +41,7 @@ let
buildFeatures = lib.optionals vcs-lib.enable-trace [ "trace" ];

env = {
VCS_LIB_DIR = "${vcs-fhs-env.vcStaticInstallPath}/vcs-mx/lib/linux64/lib";
VCS_LIB_DIR = "${vcStaticInstallPath}/vcs-mx/lib/linux64/lib";
VCS_COMPILED_LIB_DIR = "${vcs-lib}";
DESIGN_VLEN = elaborateConfig.parameter.vLen;
DESIGN_DLEN = elaborateConfig.parameter.dLen;
Expand Down
2 changes: 0 additions & 2 deletions nix/pkgs/vcs-fhs-env.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
}:
buildFHSEnv {
name = "vcs-fhs-env";
# used by other derivations to access vcs lib
vcStaticInstallPath = vcStaticInstallPath;
profile = ''
export TCL_TZ=UTC
export VC_STATIC_HOME=${vcStaticInstallPath}
Expand Down
4 changes: 2 additions & 2 deletions nix/t1/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ lib.makeScope newScope
};
vcs-emu-compiled = innerSelf.callPackage ./vcs.nix { rtl = vcs-emu-rtl; };
vcs-emu-compiled-trace = innerSelf.callPackage ./vcs.nix { rtl = vcs-emu-rtl; enable-trace = true; };
vcs-emu = innerSelf.callPackage ../../difftest/vcs-emu.nix { vcs-lib = vcs-emu-compiled; };
vcs-emu-trace = innerSelf.callPackage ../../difftest/vcs-emu.nix { vcs-lib = vcs-emu-compiled-trace; };
vcs-emu = innerSelf.callPackage ../../difftest/vcs-emu.nix { vcs-lib = vcs-emu-compiled; vcStaticInstallPath = builtins.getEnv "VC_STATIC_HOME"; };
vcs-emu-trace = innerSelf.callPackage ../../difftest/vcs-emu.nix { vcs-lib = vcs-emu-compiled-trace; vcStaticInstallPath = builtins.getEnv "VC_STATIC_HOME"; };
};

subsystem = rec {
Expand Down

0 comments on commit c3f9e8d

Please sign in to comment.