Skip to content

Commit 6a3e3d9

Browse files
authored
Merge pull request #1549 from JL102/patch-2
Updated part of "Integrating Custom Chisel Projects into the Generator Build System" docs which was out of date
2 parents 6ecbdb1 + 75ee2cf commit 6a3e3d9

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

docs/Customization/Custom-Chisel.rst

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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
5454
you 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

Comments
 (0)