-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalveou55c_gen_xo.tcl
36 lines (30 loc) · 1.14 KB
/
alveou55c_gen_xo.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
#
# Copyright (C) 2019-2021 Xilinx, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may
# not use this file except in compliance with the License. A copy of the
# License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
if { $::argc != 4 } {
puts "ERROR: Program \"$::argv0\" requires 4 arguments!\n"
puts "Usage: $::argv0 <xoname> <target> <xpfm_path> <device>\n"
exit
}
set xoname [lindex $::argv 0]
set target [lindex $::argv 1]
set xpfm_path [lindex $::argv 2]
set device [lindex $::argv 3]
set suffix "bondmachine_${target}_${device}"
source -notrace ./src/krnl_bondmachine/package_kernel.tcl
if {[file exists "${xoname}"]} {
file delete -force "${xoname}"
}
package_xo -xo_path ${xoname} -kernel_name krnl_bondmachine_rtl -ip_directory ./packaged_kernel_${suffix}