diff --git a/docs/Customization/Heterogeneous-SoCs.rst b/docs/Customization/Heterogeneous-SoCs.rst index 6ff88129c3..df5043c3b0 100644 --- a/docs/Customization/Heterogeneous-SoCs.rst +++ b/docs/Customization/Heterogeneous-SoCs.rst @@ -17,8 +17,8 @@ The following example shows a dual core BOOM with a single core Rocket. .. literalinclude:: ../../generators/chipyard/src/main/scala/config/HeteroConfigs.scala :language: scala - :start-after: DOC include start: DualBoomAndRocket - :end-before: DOC include end: DualBoomAndRocket + :start-after: DOC include start: DualBoomAndSingleRocket + :end-before: DOC include end: DualBoomAndSingleRocket Adding Hwachas diff --git a/generators/chipyard/src/main/scala/config/HeteroConfigs.scala b/generators/chipyard/src/main/scala/config/HeteroConfigs.scala index 862ee64385..55d2f77074 100644 --- a/generators/chipyard/src/main/scala/config/HeteroConfigs.scala +++ b/generators/chipyard/src/main/scala/config/HeteroConfigs.scala @@ -31,12 +31,17 @@ class LargeBoomAndHwachaRocketConfig extends Config( // DOC include end: DualBoomAndRocketOneHwacha -// DOC include start: DualBoomAndRocket class DualLargeBoomAndDualRocketConfig extends Config( new boom.common.WithNLargeBooms(2) ++ // add 2 boom cores new freechips.rocketchip.subsystem.WithNBigCores(2) ++ // add 2 rocket cores new chipyard.config.AbstractConfig) -// DOC include end: DualBoomAndRocket + +// DOC include start: DualBoomAndSingleRocket +class DualLargeBoomAndSingleRocketConfig extends Config( + new boom.common.WithNLargeBooms(2) ++ // add 2 boom cores + new freechips.rocketchip.subsystem.WithNBigCores(1) ++ // add 1 rocket core + new chipyard.config.AbstractConfig) +// DOC include end: DualBoomAndSingleRocket class LargeBoomAndRocketWithControlCoreConfig extends Config( new freechips.rocketchip.subsystem.WithNSmallCores(1) ++ // Add a small "control" core