@@ -52,8 +52,22 @@ Then add ``yourproject`` to the Chipyard top-level build.sbt file.
5252
5353 You can then import the classes defined in the submodule in a new project if
5454you add it as a dependency. For instance, if you want to use this code in
55- the ``chipyard `` project, change the final line in build.sbt to the following.
55+ the ``chipyard `` project, add your project to the list of sub-projects in the
56+ `.dependsOn() ` for `lazy val chipyard `. The original code may change over time, but it
57+ should look something like this:
5658
5759.. code-block :: scala
5860
59- lazy val chipyard = (project in file(".")).settings(commonSettings).dependsOn(testchipip, yourproject)
61+ lazy val chipyard = (project in file("generators/chipyard"))
62+ .dependsOn(testchipip, rocketchip, boom, hwacha, sifive_blocks, sifive_cache, iocell,
63+ sha3, dsptools, `rocket-dsp-utils`,
64+ gemmini, icenet, tracegen, cva6, nvdla, sodor, ibex, fft_generator,
65+ yourproject, // <- added to the middle of the list for simplicity
66+ constellation, mempress)
67+ .settings(libraryDependencies ++= rocketLibDeps.value)
68+ .settings(
69+ libraryDependencies ++= Seq(
70+ "org.reflections" % "reflections" % "0.10.2"
71+ )
72+ )
73+ .settings(commonSettings)
0 commit comments