Initial load of files
This commit is contained in:
92
builds/Resources/Include_RISCY_Config.mk
Normal file
92
builds/Resources/Include_RISCY_Config.mk
Normal file
@@ -0,0 +1,92 @@
|
||||
### -*-Makefile-*-
|
||||
|
||||
# Copyright (c) 2018-2019 Bluespec, Inc. All Rights Reserved
|
||||
|
||||
# ================================================================
|
||||
# Macros from RISCY_HOME/procs/RV64G_OOO/Makefile
|
||||
|
||||
PROC := RV64G_OOO
|
||||
|
||||
# core size
|
||||
CORE_SIZE ?= SMALL
|
||||
# cache size
|
||||
CACHE_SIZE ?= LARGE
|
||||
# always include perf counter
|
||||
PERF_COUNT := true
|
||||
# dram type in simulation: VC707 or AWSF1
|
||||
SIM_DRAM_TYPE := AWSF1
|
||||
# use Xilinx FPU IP cores
|
||||
USE_XILINX_FPU ?= true
|
||||
|
||||
# default 1 core
|
||||
CORE_NUM ?= 1
|
||||
# TSO or WEAK
|
||||
TSO_MM ?= false
|
||||
# Lr upgrades line to E (no forward progress guarantee)
|
||||
LR_UP_TO_E ?= false
|
||||
# Forbid LLC from respoding a load (toS) request with E state
|
||||
NO_LOAD_RESP_E ?= false
|
||||
# Use self inv cache? (only for WEAK mm), value is the max hits in D$
|
||||
SELF_INV_CACHE ?=
|
||||
# self inv D$ in case of system inst or trap
|
||||
SYSTEM_SELF_INV_L1D ?= false
|
||||
# security
|
||||
SECURITY ?= false
|
||||
SECURE_LLC ?= false
|
||||
SECURE_FLUSH ?= false
|
||||
SECURE_NONE ?= false
|
||||
SECURE_MSHR ?= false
|
||||
SECURE_ARBITER ?= false
|
||||
DISABLE_SECURE_BW ?= false
|
||||
SIM_LOG_LLC_PARTITION_NUM ?=
|
||||
SIM_LOG_LLC_MSHR_BANK_NUM ?=
|
||||
SIM_LLC_ARBITER_NUM ?=
|
||||
SIM_LLC_ARBITER_LAT ?=
|
||||
# default check cache deadlock and rename error
|
||||
CHECK_DEADLOCK ?= true
|
||||
RENAME_DEBUG ?= false
|
||||
|
||||
# clk frequency depends on core size
|
||||
ifneq (,$(filter $(CORE_SIZE),TINY SMALL BOOM MEDIUM))
|
||||
USER_CLK_PERIOD ?= 24
|
||||
else ifneq (,$(filter $(CORE_SIZE),SMALL_WIDE LARGE))
|
||||
USER_CLK_PERIOD ?= 32
|
||||
else ifneq (,$(filter $(CORE_SIZE),LARGE_WIDE))
|
||||
USER_CLK_PERIOD ?= 40
|
||||
else
|
||||
$(error unsupported CORE_SIZE)
|
||||
endif
|
||||
|
||||
ifeq (,$(filter $(CACHE_SIZE),SMALL LARGE MC_1MB MC_2MB))
|
||||
$(error unsupported CACHE_SIZE)
|
||||
endif
|
||||
|
||||
|
||||
# ================================================================
|
||||
# These are taken from: RISCY_HOME/procs/scripts/Makefile.common
|
||||
|
||||
XILINX_FP_FMA_LATENCY = 3
|
||||
XILINX_INT_MUL_LATENCY = 2
|
||||
|
||||
|
||||
BSC_COMPILATION_FLAGS += \
|
||||
-D BSIM \
|
||||
-D CORE_$(CORE_SIZE) \
|
||||
-D NUM_CORES=$(CORE_NUM) \
|
||||
-D CACHE_$(CACHE_SIZE) \
|
||||
-D USE_XILINX_FPU \
|
||||
-D XILINX_FP_FMA_LATENCY=$(XILINX_FP_FMA_LATENCY) \
|
||||
-D XILINX_INT_MUL_LATENCY=$(XILINX_INT_MUL_LATENCY) \
|
||||
-D USE_BSV_BRAM_SYNC_FIFO \
|
||||
|
||||
# TODO:
|
||||
# -D SELF_INV_CACHE -D L1D_MAX_HITS=$(SELF_INV_CACHE)
|
||||
# -D SYSTEM_SELF_INV_L1D
|
||||
# -D LR_UP_TO_E
|
||||
# -D NO_LOAD_RESP_E
|
||||
# various SECURITY related flags
|
||||
# -D PERF_COUNT -D CHECK_DEADLOCK -D RENAME_DEBUG ...
|
||||
|
||||
# +RTS -K1G -RTS " --bscflags=" -steps-max-intervals 200 -check-assert
|
||||
|
||||
# ================================================================
|
||||
Reference in New Issue
Block a user