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
This commit is contained in:
@@ -52,8 +52,22 @@ Then add ``yourproject`` to the Chipyard top-level build.sbt file.
|
|||||||
|
|
||||||
You can then import the classes defined in the submodule in a new project if
|
You can then import the classes defined in the submodule in a new project if
|
||||||
you add it as a dependency. For instance, if you want to use this code in
|
you add it as a dependency. For instance, if you want to use this code in
|
||||||
the ``chipyard`` project, change the final line in build.sbt to the following.
|
the ``chipyard`` project, add your project to the list of sub-projects in the
|
||||||
|
`.dependsOn()` for `lazy val chipyard`. The original code may change over time, but it
|
||||||
|
should look something like this:
|
||||||
|
|
||||||
.. code-block:: scala
|
.. code-block:: scala
|
||||||
|
|
||||||
lazy val chipyard = (project in file(".")).settings(commonSettings).dependsOn(testchipip, yourproject)
|
lazy val chipyard = (project in file("generators/chipyard"))
|
||||||
|
.dependsOn(testchipip, rocketchip, boom, hwacha, sifive_blocks, sifive_cache, iocell,
|
||||||
|
sha3, dsptools, `rocket-dsp-utils`,
|
||||||
|
gemmini, icenet, tracegen, cva6, nvdla, sodor, ibex, fft_generator,
|
||||||
|
yourproject, // <- added to the middle of the list for simplicity
|
||||||
|
constellation, mempress)
|
||||||
|
.settings(libraryDependencies ++= rocketLibDeps.value)
|
||||||
|
.settings(
|
||||||
|
libraryDependencies ++= Seq(
|
||||||
|
"org.reflections" % "reflections" % "0.10.2"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
.settings(commonSettings)
|
||||||
|
|||||||
Reference in New Issue
Block a user