From f110f29b37264d4b73d401677a71f9bd0041781a Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Sun, 21 Apr 2024 18:18:22 -0700 Subject: [PATCH] Move chipyard stage to separate directory --- build.sbt | 3 ++- .../stage-chisel3/src/main/scala}/ChipyardAnnotations.scala | 0 .../stage-chisel3/src/main/scala}/ChipyardCli.scala | 0 .../stage-chisel3/src/main/scala}/ChipyardOptions.scala | 0 .../stage-chisel3/src/main/scala}/ChipyardStage.scala | 0 .../stage-chisel3/src/main/scala}/StageUtils.scala | 0 .../stage => tools/stage-chisel3/src/main/scala}/package.scala | 0 .../stage-chisel3/src/main/scala}/phases/AddDefaultTests.scala | 0 .../stage-chisel3/src/main/scala}/phases/Checks.scala | 0 .../src/main/scala}/phases/GenerateArtefacts.scala | 0 .../src/main/scala}/phases/GenerateFirrtlAnnos.scala | 0 .../src/main/scala}/phases/GenerateTestSuiteMakefrags.scala | 0 .../stage-chisel3/src/main/scala}/phases/PreElaboration.scala | 0 .../src/main/scala}/phases/TransformAnnotations.scala | 0 14 files changed, 2 insertions(+), 1 deletion(-) rename {generators/chipyard/src/main/scala/stage => tools/stage-chisel3/src/main/scala}/ChipyardAnnotations.scala (100%) rename {generators/chipyard/src/main/scala/stage => tools/stage-chisel3/src/main/scala}/ChipyardCli.scala (100%) rename {generators/chipyard/src/main/scala/stage => tools/stage-chisel3/src/main/scala}/ChipyardOptions.scala (100%) rename {generators/chipyard/src/main/scala/stage => tools/stage-chisel3/src/main/scala}/ChipyardStage.scala (100%) rename {generators/chipyard/src/main/scala/stage => tools/stage-chisel3/src/main/scala}/StageUtils.scala (100%) rename {generators/chipyard/src/main/scala/stage => tools/stage-chisel3/src/main/scala}/package.scala (100%) rename {generators/chipyard/src/main/scala/stage => tools/stage-chisel3/src/main/scala}/phases/AddDefaultTests.scala (100%) rename {generators/chipyard/src/main/scala/stage => tools/stage-chisel3/src/main/scala}/phases/Checks.scala (100%) rename {generators/chipyard/src/main/scala/stage => tools/stage-chisel3/src/main/scala}/phases/GenerateArtefacts.scala (100%) rename {generators/chipyard/src/main/scala/stage => tools/stage-chisel3/src/main/scala}/phases/GenerateFirrtlAnnos.scala (100%) rename {generators/chipyard/src/main/scala/stage => tools/stage-chisel3/src/main/scala}/phases/GenerateTestSuiteMakefrags.scala (100%) rename {generators/chipyard/src/main/scala/stage => tools/stage-chisel3/src/main/scala}/phases/PreElaboration.scala (100%) rename {generators/chipyard/src/main/scala/stage => tools/stage-chisel3/src/main/scala}/phases/TransformAnnotations.scala (100%) diff --git a/build.sbt b/build.sbt index c2ed80808a..07c5296977 100644 --- a/build.sbt +++ b/build.sbt @@ -168,7 +168,8 @@ lazy val chipyard = (project in file("generators/chipyard")) "org.reflections" % "reflections" % "0.10.2" ) ) - .settings(commonSettings) + .settings(commonSettings) + .settings(Compile / unmanagedSourceDirectories += file("tools/stage-chisel3/src/main/scala")) lazy val barf = (project in file("generators/bar-fetchers")) .dependsOn(rocketchip) diff --git a/generators/chipyard/src/main/scala/stage/ChipyardAnnotations.scala b/tools/stage-chisel3/src/main/scala/ChipyardAnnotations.scala similarity index 100% rename from generators/chipyard/src/main/scala/stage/ChipyardAnnotations.scala rename to tools/stage-chisel3/src/main/scala/ChipyardAnnotations.scala diff --git a/generators/chipyard/src/main/scala/stage/ChipyardCli.scala b/tools/stage-chisel3/src/main/scala/ChipyardCli.scala similarity index 100% rename from generators/chipyard/src/main/scala/stage/ChipyardCli.scala rename to tools/stage-chisel3/src/main/scala/ChipyardCli.scala diff --git a/generators/chipyard/src/main/scala/stage/ChipyardOptions.scala b/tools/stage-chisel3/src/main/scala/ChipyardOptions.scala similarity index 100% rename from generators/chipyard/src/main/scala/stage/ChipyardOptions.scala rename to tools/stage-chisel3/src/main/scala/ChipyardOptions.scala diff --git a/generators/chipyard/src/main/scala/stage/ChipyardStage.scala b/tools/stage-chisel3/src/main/scala/ChipyardStage.scala similarity index 100% rename from generators/chipyard/src/main/scala/stage/ChipyardStage.scala rename to tools/stage-chisel3/src/main/scala/ChipyardStage.scala diff --git a/generators/chipyard/src/main/scala/stage/StageUtils.scala b/tools/stage-chisel3/src/main/scala/StageUtils.scala similarity index 100% rename from generators/chipyard/src/main/scala/stage/StageUtils.scala rename to tools/stage-chisel3/src/main/scala/StageUtils.scala diff --git a/generators/chipyard/src/main/scala/stage/package.scala b/tools/stage-chisel3/src/main/scala/package.scala similarity index 100% rename from generators/chipyard/src/main/scala/stage/package.scala rename to tools/stage-chisel3/src/main/scala/package.scala diff --git a/generators/chipyard/src/main/scala/stage/phases/AddDefaultTests.scala b/tools/stage-chisel3/src/main/scala/phases/AddDefaultTests.scala similarity index 100% rename from generators/chipyard/src/main/scala/stage/phases/AddDefaultTests.scala rename to tools/stage-chisel3/src/main/scala/phases/AddDefaultTests.scala diff --git a/generators/chipyard/src/main/scala/stage/phases/Checks.scala b/tools/stage-chisel3/src/main/scala/phases/Checks.scala similarity index 100% rename from generators/chipyard/src/main/scala/stage/phases/Checks.scala rename to tools/stage-chisel3/src/main/scala/phases/Checks.scala diff --git a/generators/chipyard/src/main/scala/stage/phases/GenerateArtefacts.scala b/tools/stage-chisel3/src/main/scala/phases/GenerateArtefacts.scala similarity index 100% rename from generators/chipyard/src/main/scala/stage/phases/GenerateArtefacts.scala rename to tools/stage-chisel3/src/main/scala/phases/GenerateArtefacts.scala diff --git a/generators/chipyard/src/main/scala/stage/phases/GenerateFirrtlAnnos.scala b/tools/stage-chisel3/src/main/scala/phases/GenerateFirrtlAnnos.scala similarity index 100% rename from generators/chipyard/src/main/scala/stage/phases/GenerateFirrtlAnnos.scala rename to tools/stage-chisel3/src/main/scala/phases/GenerateFirrtlAnnos.scala diff --git a/generators/chipyard/src/main/scala/stage/phases/GenerateTestSuiteMakefrags.scala b/tools/stage-chisel3/src/main/scala/phases/GenerateTestSuiteMakefrags.scala similarity index 100% rename from generators/chipyard/src/main/scala/stage/phases/GenerateTestSuiteMakefrags.scala rename to tools/stage-chisel3/src/main/scala/phases/GenerateTestSuiteMakefrags.scala diff --git a/generators/chipyard/src/main/scala/stage/phases/PreElaboration.scala b/tools/stage-chisel3/src/main/scala/phases/PreElaboration.scala similarity index 100% rename from generators/chipyard/src/main/scala/stage/phases/PreElaboration.scala rename to tools/stage-chisel3/src/main/scala/phases/PreElaboration.scala diff --git a/generators/chipyard/src/main/scala/stage/phases/TransformAnnotations.scala b/tools/stage-chisel3/src/main/scala/phases/TransformAnnotations.scala similarity index 100% rename from generators/chipyard/src/main/scala/stage/phases/TransformAnnotations.scala rename to tools/stage-chisel3/src/main/scala/phases/TransformAnnotations.scala