-
Notifications
You must be signed in to change notification settings - Fork 0
/
Phase2JetTrigger_ExportIP_KU115.tcl
67 lines (61 loc) · 2.28 KB
/
Phase2JetTrigger_ExportIP_KU115.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
set part xcku115-flvd1517-2-i
set clock 300MHz
## STEP 1: Building and exporting to IP format the jet clustering
# creating project and solution
open_project -reset HLS_JetClustering
open_solution -reset IP_Export
#setting target device
set_part $part
create_clock -period $clock
#adding hls files
add_files -cflags "-std=c++11" "JetClustering/HLS_Phase1Clustering.cpp"
# adding testbench files
add_files -cflags "-std=c++11" -tb "JetClustering/TB_Phase1Clustering.cpp"
# Sets the top-level function name that is going to be starting point for synthetisation
set_top hls_jet_clustering
# removing reset
config_rtl -reset none
#synthetising
csynth_design
#exporting IP
export_design -format ip_catalog -vendor "cern-cms" -version 0.3 -description jet_clustering
## STEP 2: Building and exporting to IP format the histogrammer
# creating project and solution
open_project -reset HLS_Histogrammer
open_solution -reset IP_Export
#setting target device
set_part $part
create_clock -period $clock
#adding hls files
add_files -cflags "-std=c++11" "HistogramAndBuffer/HLS_Histogrammer.cpp"
add_files -cflags "-std=c++11" "HistogramAndBuffer/RegionOffsets.cpp"
# adding testbench files
add_files -cflags "-std=c++11" -tb "HistogramAndBuffer/TB_Histogrammer.cpp"
# Sets the top-level function name that is going to be starting point for synthetisation
set_top hls_histogrammer
# removing reset
config_rtl -reset none
#synthetising
csynth_design
#exporting IP
export_design -format ip_catalog -vendor "cern-cms" -version 0.2 -description histogrammer
## STEP 3: Building and exporting to IP format the buffer
# creating project and solution
open_project -reset HLS_HistogramBuffer
open_solution -reset IP_Export
#setting target device
set_part $part
create_clock -period $clock
#adding hls files
add_files -cflags "-std=c++11" "HistogramAndBuffer/HLS_HistogramBuffer.cpp"
# adding testbench files
add_files -cflags "-std=c++11" -tb "HistogramAndBuffer/TB_HistogramBuffer.cpp"
add_files -cflags "-std=c++11" "HistogramAndBuffer/RegionOffsets.cpp"
# Sets the top-level function name that is going to be starting point for synthetisation
set_top hls_histogram_buffer
# removing reset
config_rtl -reset none
#synthetising
csynth_design
#exporting IP
export_design -format ip_catalog -vendor "cern-cms" -version 0.1 -description histogram_buffer