forked from PHANTOM-Platform/IP-Core-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.tcl
32 lines (21 loc) · 747 Bytes
/
script.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
############################################################
## This file is generated automatically by Vivado HLS.
## Please DO NOT edit it.
## Copyright (C) 1986-2017 Xilinx, Inc. All Rights Reserved.
############################################################
# Open project and reset to get a clean state
open_project generated-ipcores -reset
# Add files to project
for { set a 3} {$a < [lindex $argc]} {incr a} {
add_files [lindex $argv $a]
#add_files <file>.cpp -cflags "-I<include_dir>"
}
# Configure Project
set_top [lindex $argv 2]
open_solution [lindex $argv 1]
set_part [lindex $argv 0] -tool vivado
create_clock -period 5 -name default
# Run Synthesis
csynth_design
# Export IP Core
export_design -format ip_catalog