Skip to content

Commit

Permalink
[nix] refactor whole test attribute under emulator
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin committed Aug 13, 2024
1 parent 7fbe2de commit 0d7f4e5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions script/ci/src/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ object Main:
Logger.info("Fetching CI results")
val resultAttr = emuType.toLowerCase() match
case "verilator" =>
s".#t1.$config.ip.cases._allEmuResult"
case "vcs" => s".#t1.$config.ip.cases._allVCSEmuResult"
s".#t1.$config.ip.verilator-emu.cases._allEmuResult"
case "vcs" => s".#t1.$config.ip.cases.vcs-emu._allVCSEmuResult"
case _ => Logger.fatal(s"Invalid test type ${emuType}")
val emuResultPath = os.Path(nixResolvePath(
resultAttr,
Expand Down
3 changes: 3 additions & 0 deletions t1rocketemu/nix/rtl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ stdenvNoCC.mkDerivation {
mkdir -p $out
firtool ${mlirbc} ${mfcArgs} -o $out
echo "Fixing generated filelist.f"
cp $out/filelist.f original.f
cat $out/firrtl_black_box_resource_files.f original.f > $out/filelist.f
'';
}
3 changes: 2 additions & 1 deletion t1rocketemu/nix/vcs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, bash
, stdenv
, rtl
, rtlDesignMetadata
, callPackage
, vcs-dpi-lib
, vcs-fhs-env
Expand Down Expand Up @@ -40,7 +41,7 @@ let

passthru = {
inherit (vcs-dpi-lib) enable-trace;
inherit vcs-fhs-env;
inherit vcs-fhs-env rtlDesignMetadata;

cases = callPackage ../../tests {
configName = "t1rocket";
Expand Down

0 comments on commit 0d7f4e5

Please sign in to comment.