Add Hwacha config to example project
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -28,3 +28,6 @@
|
|||||||
[submodule "generators/sifive-blocks"]
|
[submodule "generators/sifive-blocks"]
|
||||||
path = generators/sifive-blocks
|
path = generators/sifive-blocks
|
||||||
url = git@github.com:sifive/sifive-blocks.git
|
url = git@github.com:sifive/sifive-blocks.git
|
||||||
|
[submodule "generators/hwacha"]
|
||||||
|
path = generators/hwacha
|
||||||
|
url = git@github.com:ucb-bar/hwacha.git
|
||||||
|
|||||||
@@ -46,7 +46,11 @@ def conditionalDependsOn(prj: Project): Project = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
lazy val example = conditionalDependsOn(project in file("."))
|
lazy val example = conditionalDependsOn(project in file("."))
|
||||||
.dependsOn(boom, sifive_blocks)
|
.dependsOn(boom, hwacha, sifive_blocks)
|
||||||
|
.settings(commonSettings)
|
||||||
|
|
||||||
|
lazy val hwacha = (project in file ("generators/hwacha"))
|
||||||
|
.dependsOn(rebarrocketchip)
|
||||||
.settings(commonSettings)
|
.settings(commonSettings)
|
||||||
|
|
||||||
lazy val boom = (project in file("generators/boom"))
|
lazy val boom = (project in file("generators/boom"))
|
||||||
|
|||||||
1
generators/hwacha
Submodule
1
generators/hwacha
Submodule
Submodule generators/hwacha added at bc89157b28
@@ -17,6 +17,10 @@ class DefaultRocketConfig extends Config(
|
|||||||
new WithNormalRocketTop ++
|
new WithNormalRocketTop ++
|
||||||
new BaseRocketConfig)
|
new BaseRocketConfig)
|
||||||
|
|
||||||
|
class HwachaConfig extends Config(
|
||||||
|
new hwacha.DefaultHwachaConfig ++
|
||||||
|
new DefaultRocketConfig)
|
||||||
|
|
||||||
class RoccRocketConfig extends Config(
|
class RoccRocketConfig extends Config(
|
||||||
new WithRoccExample ++
|
new WithRoccExample ++
|
||||||
new DefaultRocketConfig)
|
new DefaultRocketConfig)
|
||||||
@@ -64,6 +68,10 @@ class DefaultBoomConfig extends Config(
|
|||||||
new WithNormalBoomTop ++
|
new WithNormalBoomTop ++
|
||||||
new BaseBoomConfig)
|
new BaseBoomConfig)
|
||||||
|
|
||||||
|
class HwachaBoomConfig extends Config(
|
||||||
|
new hwacha.DefaultHwachaConfig ++
|
||||||
|
new DefaultBoomConfig)
|
||||||
|
|
||||||
class RoccBoomConfig extends Config(
|
class RoccBoomConfig extends Config(
|
||||||
new WithRoccExample ++
|
new WithRoccExample ++
|
||||||
new DefaultBoomConfig)
|
new DefaultBoomConfig)
|
||||||
|
|||||||
16
variables.mk
16
variables.mk
@@ -28,22 +28,22 @@ TOP ?= RocketTop
|
|||||||
|
|
||||||
# make it so that you only change 1 param to change most or all of them!
|
# make it so that you only change 1 param to change most or all of them!
|
||||||
SUB_PROJECT ?= example
|
SUB_PROJECT ?= example
|
||||||
|
# for a BOOM based system (provides all necessary params)
|
||||||
ifeq ($(SUB_PROJECT),boomexample)
|
ifeq ($(SUB_PROJECT),boomexample)
|
||||||
# for a BOOM based system (provides all necessary params)
|
|
||||||
MODEL=BoomTestHarness
|
MODEL=BoomTestHarness
|
||||||
CONFIG=DefaultBoomConfig
|
CONFIG=DefaultBoomConfig
|
||||||
TOP=BoomTop
|
TOP=BoomTop
|
||||||
endif
|
endif
|
||||||
|
# for BOOM developers (only need to provide a CONFIG)
|
||||||
ifeq ($(SUB_PROJECT),boom)
|
ifeq ($(SUB_PROJECT),boom)
|
||||||
# for BOOM developers (only need to provide a CONFIG)
|
|
||||||
PROJECT=boom.system
|
PROJECT=boom.system
|
||||||
MODEL=TestHarness
|
MODEL=TestHarness
|
||||||
CFG_PROJECT=boom.system
|
CFG_PROJECT=boom.system
|
||||||
SBT_PROJECT=boom
|
SBT_PROJECT=boom
|
||||||
TOP=ExampleBoomSystem
|
TOP=ExampleBoomSystem
|
||||||
endif
|
endif
|
||||||
|
# for Rocket-chip developers
|
||||||
ifeq ($(SUB_PROJECT),rocketchip)
|
ifeq ($(SUB_PROJECT),rocketchip)
|
||||||
# for Rocket-chip developers
|
|
||||||
PROJECT=freechips.rocketchip.system
|
PROJECT=freechips.rocketchip.system
|
||||||
MODEL=TestHarness
|
MODEL=TestHarness
|
||||||
CONFIG=DefaultConfig
|
CONFIG=DefaultConfig
|
||||||
@@ -51,6 +51,16 @@ ifeq ($(SUB_PROJECT),rocketchip)
|
|||||||
SBT_PROJECT=rebarrocketchip
|
SBT_PROJECT=rebarrocketchip
|
||||||
TOP=ExampleRocketSystem
|
TOP=ExampleRocketSystem
|
||||||
endif
|
endif
|
||||||
|
# for Hwacha developers (only need to provide a CONFIG)
|
||||||
|
ifeq ($(SUB_PROJECT),hwacha)
|
||||||
|
PROJECT=freechips.rocketchip.system
|
||||||
|
MODEL=TestHarness
|
||||||
|
CFG_PROJECT=hwacha
|
||||||
|
SBT_PROJECT=hwacha
|
||||||
|
TOP=ExampleRocketSystem
|
||||||
|
TB=TestDriver
|
||||||
|
CONFIG=HwachaConfig
|
||||||
|
endif
|
||||||
|
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
# path to rocket-chip and testchipip
|
# path to rocket-chip and testchipip
|
||||||
|
|||||||
Reference in New Issue
Block a user