Skip to content

Commit

Permalink
Makefile: move bender defined to a separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Belano committed Jan 22, 2025
1 parent d7a555a commit 25a63c7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
20 changes: 5 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,11 @@ REGRESSIONS := $(ROOT_DIR)/regression_tests

VLOG_ARGS += -suppress vlog-2583 -suppress vlog-13314 -suppress vlog-13233 -timescale \"1 ns / 1 ps\" \"+incdir+$(shell pwd)/include\"

bender_defs += -D FEATURE_ICACHE_STAT
bender_defs += -D PRIVATE_ICACHE
bender_defs += -D HIERARCHY_ICACHE_32BIT
bender_defs += -D ICAHE_USE_FF
bender_defs += -D TRACE_EXECUTION
bender_defs += -D CLUSTER_ALIAS
bender_defs += -D USE_PULP_PARAMETERS
bender_defs += -D SNITCH_ICACHE

bender_targs += -t rtl
bender_targs += -t test
bender_targs += -t mchan
bender_targs += -t cluster_standalone
bender_targs += -t scm_use_fpga_scm
bender_targs += -t cv32e40p_use_ff_regfile
##########
# Bender #
##########

include bender.mk

define generate_vsim
echo 'set ROOT [file normalize [file dirname [info script]]/$3]' > $1
Expand Down
19 changes: 19 additions & 0 deletions bender.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2025 ETH Zurich and University of Bologna
# Solderpad Hardware License, Version 0.51, see LICENSE for details.
# SPDX-License-Identifier: SHL-0.51

bender_defs += -D FEATURE_ICACHE_STAT
bender_defs += -D PRIVATE_ICACHE
bender_defs += -D HIERARCHY_ICACHE_32BIT
bender_defs += -D ICAHE_USE_FF
bender_defs += -D TRACE_EXECUTION
bender_defs += -D CLUSTER_ALIAS
bender_defs += -D USE_PULP_PARAMETERS
bender_defs += -D SNITCH_ICACHE

bender_targs += -t rtl
bender_targs += -t test
bender_targs += -t mchan
bender_targs += -t cluster_standalone
bender_targs += -t scm_use_fpga_scm
bender_targs += -t cv32e40p_use_ff_regfile

0 comments on commit 25a63c7

Please sign in to comment.