allow rocket builds | asm tests pass

This commit is contained in:
abejgonzalez
2019-04-23 11:50:36 -07:00
parent c1a0916e40
commit 862c217ff4
3 changed files with 23 additions and 4 deletions

View File

@@ -42,6 +42,15 @@ ifeq ($(SUB_PROJECT),boom)
SBT_PROJECT=boom
TOP=ExampleBoomSystem
endif
ifeq ($(SUB_PROJECT),rocketchip)
# for Rocket-chip developers
PROJECT=freechips.rocketchip.system
MODEL=TestHarness
CONFIG=DefaultConfig
CFG_PROJECT=freechips.rocketchip.system
SBT_PROJECT=rebarrocketchip
TOP=ExampleRocketSystem
endif
#########################################################################################
# path to rocket-chip and testchipip
@@ -55,6 +64,11 @@ REBAR_FIRRTL_DIR = $(base_dir)/tools/firrtl
#########################################################################################
long_name = $(PROJECT).$(MODEL).$(CONFIG)
# if building from rocketchip, override the long_name to match what they expect
ifeq ($(SBT_PROJECT),rebarrocketchip)
long_name=$(PROJECT).$(CONFIG)
endif
FIRRTL_FILE ?= $(build_dir)/$(long_name).fir
ANNO_FILE ?= $(build_dir)/$(long_name).anno.json
VERILOG_FILE ?= $(build_dir)/$(long_name).top.v