more default subprojects | fix example builds
This commit is contained in:
@@ -63,13 +63,13 @@ class RocketTopWithBlockDeviceModule(l: RocketTopWithBlockDevice)
|
|||||||
// BOOM Top Level Systems
|
// BOOM Top Level Systems
|
||||||
// ----------------------
|
// ----------------------
|
||||||
|
|
||||||
class BoomTop(implicit p: Parameters) extends boom.system.BoomSystem
|
class BoomTop(implicit p: Parameters) extends boom.system.ExampleBoomSystem
|
||||||
with HasNoDebug
|
with HasNoDebug
|
||||||
with HasPeripherySerial {
|
with HasPeripherySerial {
|
||||||
override lazy val module = new BoomTopModule(this)
|
override lazy val module = new BoomTopModule(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
class BoomTopModule[+L <: BoomTop](l: L) extends boom.system.BoomSystemModule(l)
|
class BoomTopModule[+L <: BoomTop](l: L) extends boom.system.ExampleBoomSystemModule(l)
|
||||||
with HasRTCModuleImp
|
with HasRTCModuleImp
|
||||||
with HasNoDebugModuleImp
|
with HasNoDebugModuleImp
|
||||||
with HasPeripherySerialModuleImp
|
with HasPeripherySerialModuleImp
|
||||||
|
|||||||
23
variables.mk
23
variables.mk
@@ -3,7 +3,7 @@
|
|||||||
#########################################################################################
|
#########################################################################################
|
||||||
|
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
# default variables to invoke the generator
|
# default variables to invoke the generator for a example Rocket system
|
||||||
# descriptions:
|
# descriptions:
|
||||||
# PROJECT = the scala package to find the MODEL/Generator in
|
# PROJECT = the scala package to find the MODEL/Generator in
|
||||||
# MODEL = the top level module of the project (normally the harness)
|
# MODEL = the top level module of the project (normally the harness)
|
||||||
@@ -17,17 +17,28 @@
|
|||||||
# SUB_PROJECT = use the specific subproject default variables
|
# SUB_PROJECT = use the specific subproject default variables
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
PROJECT ?= example
|
PROJECT ?= example
|
||||||
MODEL ?= TestHarness
|
MODEL ?= RocketTestHarness
|
||||||
CONFIG ?= DefaultExampleConfig
|
CONFIG ?= DefaultRocketConfig
|
||||||
CFG_PROJECT ?= $(PROJECT)
|
CFG_PROJECT ?= $(PROJECT)
|
||||||
SBT_PROJECT ?= $(PROJECT)
|
SBT_PROJECT ?= $(PROJECT)
|
||||||
TB ?= TestDriver
|
TB ?= TestDriver
|
||||||
TOP ?= ExampleTop
|
TOP ?= RocketTop
|
||||||
|
|
||||||
|
# make it so that you only change 1 param to change most or all of them!
|
||||||
SUB_PROJECT ?= example
|
SUB_PROJECT ?= example
|
||||||
ifeq ($(SUB_PROJECT),boom) # make it so that you only change 1 param to change them all!
|
ifeq ($(SUB_PROJECT),boomexample)
|
||||||
SBT_PROJECT=boom
|
# for a BOOM based system (provides all necessary params)
|
||||||
|
MODEL=BoomTestHarness
|
||||||
|
CONFIG=DefaultBoomConfig
|
||||||
|
TOP=BoomTop
|
||||||
|
endif
|
||||||
|
ifeq ($(SUB_PROJECT),boom)
|
||||||
|
# for BOOM developers (only need to provide a CONFIG)
|
||||||
PROJECT=boom.system
|
PROJECT=boom.system
|
||||||
|
MODEL=TestHarness
|
||||||
|
#CONFIG: User specified
|
||||||
|
CFG_PROJECT=boom.system
|
||||||
|
SBT_PROJECT=boom
|
||||||
TOP=ExampleBoomSystem
|
TOP=ExampleBoomSystem
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user