-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.tcl
61 lines (49 loc) · 1.42 KB
/
setup.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
###################################################################
#
# This TCL script is for setting up axi-huffman-encoder-core
# Including synthesis, simulation, co-simulation, export-rtl
# Copyright (c) 2018 Xing GUO
#
###################################################################
# Global settings
set project_name huffman_encoding_core_build
set device "xc7z020clg400-1"
set clock_period 10
set solution_dir solution
# Open project
open_project $project_name -reset
# add files for synthesis
add_files {
./hls-src/huffman_canonize_tree.cpp
./hls-src/huffman_create_tree.cpp
./hls-src/huffman_filter.cpp
./hls-src/huffman_compute_bit_length.cpp
./hls-src/huffman_encoding.cpp
./hls-src/huffman_sort.cpp
./hls-src/huffman_create_codeword.cpp
./hls-src/huffman_truncate_tree.cpp
}
# set top module
set_top huffman_encoding
# open solution
open_solution $solution_dir -reset
# set device part
set_part $device
# create clock
create_clock -period $clock_period
# C-simulation
# csim_design -compiler clang
# C-synthesis
csynth_design
# export_design
# [Options]
# -description <string>
# -flow <syn|impl>
# -format <sysgen|ip_catalog|syn_dcp>
# -library <string>
# -rtl <verilog|vhdl>
# -vendor <string>
# -version <string>
export_design -flow syn -format ip_catalog -rtl verilog -vendor "com.xilinx.hls" -version "0.0.1"
# exit
exit