Add Hwacha config to example project

This commit is contained in:
Jerry Zhao
2019-04-23 16:20:23 -07:00
parent a3516a3fce
commit e0d1ba285d
5 changed files with 30 additions and 4 deletions

3
.gitmodules vendored
View File

@@ -28,3 +28,6 @@
[submodule "generators/sifive-blocks"]
path = generators/sifive-blocks
url = git@github.com:sifive/sifive-blocks.git
[submodule "generators/hwacha"]
path = generators/hwacha
url = git@github.com:ucb-bar/hwacha.git

View File

@@ -46,7 +46,11 @@ def conditionalDependsOn(prj: Project): Project = {
}
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)
lazy val boom = (project in file("generators/boom"))

1
generators/hwacha Submodule

Submodule generators/hwacha added at bc89157b28

View File

@@ -17,6 +17,10 @@ class DefaultRocketConfig extends Config(
new WithNormalRocketTop ++
new BaseRocketConfig)
class HwachaConfig extends Config(
new hwacha.DefaultHwachaConfig ++
new DefaultRocketConfig)
class RoccRocketConfig extends Config(
new WithRoccExample ++
new DefaultRocketConfig)
@@ -64,6 +68,10 @@ class DefaultBoomConfig extends Config(
new WithNormalBoomTop ++
new BaseBoomConfig)
class HwachaBoomConfig extends Config(
new hwacha.DefaultHwachaConfig ++
new DefaultBoomConfig)
class RoccBoomConfig extends Config(
new WithRoccExample ++
new DefaultBoomConfig)

View File

@@ -28,22 +28,22 @@ TOP ?= RocketTop
# make it so that you only change 1 param to change most or all of them!
SUB_PROJECT ?= example
# for a BOOM based system (provides all necessary params)
ifeq ($(SUB_PROJECT),boomexample)
# for a BOOM based system (provides all necessary params)
MODEL=BoomTestHarness
CONFIG=DefaultBoomConfig
TOP=BoomTop
endif
# for BOOM developers (only need to provide a CONFIG)
ifeq ($(SUB_PROJECT),boom)
# for BOOM developers (only need to provide a CONFIG)
PROJECT=boom.system
MODEL=TestHarness
CFG_PROJECT=boom.system
SBT_PROJECT=boom
TOP=ExampleBoomSystem
endif
# for Rocket-chip developers
ifeq ($(SUB_PROJECT),rocketchip)
# for Rocket-chip developers
PROJECT=freechips.rocketchip.system
MODEL=TestHarness
CONFIG=DefaultConfig
@@ -51,6 +51,16 @@ ifeq ($(SUB_PROJECT),rocketchip)
SBT_PROJECT=rebarrocketchip
TOP=ExampleRocketSystem
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