-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_hls_tkobjalgo.tcl
49 lines (43 loc) · 2.1 KB
/
run_hls_tkobjalgo.tcl
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
# set up the vivado_hls licenses
#set env(XILINXD_LICENSE_FILE) [email protected]:/usr/users/aperloff/.Xilinx/Xilinx.lic
#set env(LM_LICENSE_FILE) [email protected]:/usr/users/aperloff/.Xilinx/Xilinx.lic
#puts $::env(XILINXD_LICENSE_FILE)
#puts $::env(LM_LICENSE_FILE)
# get the configuration
source config_hls_tkobjalgo.tcl
# open the project, don't forget to reset
open_project -reset proj_${l1board}_${l1tkobjAlgo}
#set_top bhv_add_track
set_top ${l1tkobjTopFunc}
add_files firmware/simple_tkobjalgo.cpp -cflags "-DTEST${l1board} -std=c++0x -DHLS_pipeline_II=2 -DQUALITY=${l1tkQualityCuts} -DDEBUG=${l1tkobjDebug}"
# -DCMSSW
add_files -tb simple_tkobjalgo_test.cpp -cflags "-DTEST${l1board} -DHLS_pipeline_II=2 -DTOP_FUNC=${l1tkobjTopFunc} -DREF_FUNC=${l1tkobjRefFunc} -D${l1board}_VALIDATE=${l1tkobjValidate} -DQUALITY=${l1tkQualityCuts} -DVERBOSE=${l1tkobjVerbose}"
add_files -tb simple_tkobjalgo_ref.cpp -cflags "-DTEST${l1board} -std=c++0x -DQUALITY=${l1tkQualityCuts}"
add_files -tb utils/pattern_serializer.cpp -cflags "-DTEST${l1board}"
add_files -tb utils/test_utils.cpp -cflags "-DTEST${l1board}"
add_files -tb utils/DiscretePFInputs.h -cflags "-DTEST${l1board} -std=c++0x"
add_files -tb utils/DiscretePFInputs_IO.h -cflags "-DTEST${l1board} -std=c++0x"
#add_files -tb data/regions_TTbar_PU140.dump
#add_files -tb data/barrel_sectors_1x12_TTbar_PU140.dump
add_files -tb data/barrel_alltracks_sectors_1x12_TTbar_PU140.dump
# reset the solution
open_solution -reset "solution"
#set_part {xcvu9p-flga2104-2-i-EVAL}
set_part {xcvu9p-flga2104-2l-e}
#200MHz
#create_clock -period 5 -name default
#240MHz
#create_clock -period 4.16667 -name default
#320MHz (might be a problem. Need to check the RTL implementation)
create_clock -period 3.125 -name default
set_clock_uncertainty 1.5
config_interface -trim_dangling_port
config_core DSP48 -latency 2
#config_dataflow -default_channel pingpong -fifo_depth 128
# do stuff
csim_design
csynth_design
#cosim_design -trace_level all
#export_design -format ip_catalog -vendor "cern-cms" -version ${l1tkobjIPVersion} -description "${l1tkobjTopFunc}"
# exit Vivado HLS
exit