-
Notifications
You must be signed in to change notification settings - Fork 519
/
Makefile.vcs.inc
51 lines (45 loc) · 2.61 KB
/
Makefile.vcs.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# =============================================================================
# Amazon FPGA Hardware Development Kit
#
# Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Amazon Software License (the "License"). You may not use
# this file except in compliance with the License. A copy of the License is
# located at
#
# http://aws.amazon.com/asl/
#
# or in the "license" file accompanying this file. This file is distributed on
# an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or
# implied. See the License for the specific language governing permissions and
# limitations under the License.
# =============================================================================
clean:
@ -rm -rf $(SIM_ROOT)/*.jou
@ -rm -rf $(SIM_ROOT)/.cxl.vcs_mx.version
@ -rm -rf $(SIM_ROOT)/compile_simlib.log
@ -rm -rf $(SIM_ROOT)/synopsys_sim.setup
@ -rm -rf $(SIM_ROOT)/vivado.log
@ -rm -rf $(SIM_ROOT)/AN.DB
@ -rm -rf $(SIM_ROOT)/csrc
@ -rm -rf $(SIM_ROOT)/simv*
@ -rm -rf $(SIM_ROOT)/ucli.key
@ -rm -rf $(SIM_ROOT)/vc_hdrs.h
@ -rm -rf $(SIM_ROOT)/*.log
@ -rm -rf $(SIM_ROOT)/*.done
@ -rm -rf $(SIM_DIR)
VCS_C_INCLUDE_ARGS = $(foreach inc_dir,$(C_INCLUDE_DIRS),-CFLAGS "-I$(inc_dir)")
compile: $(COMPILE_CL_IP_DIR) generate_sim_file_list
cd ${SIM_DIR} && ln -s -f $(COMPLIB_DIR)/synopsys_sim.setup
cd $(SIM_DIR) && vlogan -ntb_opts tb_timescale=1ps/1ps -timescale=1ps/1ps -sverilog +systemverilogext+.sv +libext+.sv +libext+.v +libext+.svh -full64 -lca -v2005 +v2k -l compile.vlogan.log -debug_acc+all -debug_region+cell+encrypt -f $(SCRIPTS_DIR)/top.$(SIMULATOR).f +define+VCS +define+DMA_TEST $(DEFAULT_DEFINES) +lint=TFIPC-L
cd $(SIM_DIR) && vcs tb $(TEST) $(C_FILES) +error+9999 glbl -debug_region=cell+encrypt +warn=noFCDCI,noFCICIO +note=noFCICIO -Mupdate=0 $(VCS_C_INCLUDE_ARGS) -std=gnu99 -CFLAGS "-DSV_TEST" -CFLAGS "-DSCOPE" -debug_acc+all -debug_region+cell+encrypt -M +lint=TFIPC-L -debug_pp glbl -ntb_opts tb_timescale=1ps/1ps -timescale=1ps/1ps -sverilog -full64 +memcbk -licqueue -lca -v2005 -l compile.vcs.log +plusarg_save +timeout=1ms -ignore initializer_driver_checks
run:
ifeq ($(TEST),test_null)
ifneq ($(C_TEST),test_null)
cd $(SIM_DIR) && ./simv -l $(C_TEST).log $(PLUSARGS) +ntb_random_seed_automatic +vpdfile+$(TEST).vpd | $(FILTER_OUT_HBM_META_INJECTIONS)
else
cd $(SIM_DIR) && ./simv -l $(TEST).log $(PLUSARGS) +ntb_random_seed_automatic +vpdfile+$(TEST).vpd | $(FILTER_OUT_HBM_META_INJECTIONS)
endif
else
cd $(SIM_DIR) && ./simv -l $(TEST).log $(PLUSARGS) +ntb_random_seed_automatic +vpdfile+$(TEST).vpd | $(FILTER_OUT_HBM_META_INJECTIONS)
endif