-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMPFS_VIDEO_KIT_REFERENCE_DESIGN.tcl
41 lines (34 loc) · 1.41 KB
/
MPFS_VIDEO_KIT_REFERENCE_DESIGN.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
#!/usr/bin/tclsh
#This script selects the PolarFire SoC reference Libero SoC based design which needs
#to be generated
# ###################################################################################
# # // Process arguments passed by the user
# ###################################################################################
if { $::argc > 0 } {
set i 1
foreach arg $::argv {
if {[string match "*:*" $arg]} {
set temp [split $arg ":"]
puts "Setting parameter [lindex $temp 0] to [lindex $temp 1]"
set [lindex $temp 0] "[lindex $temp 1]"
} else {
set $arg 1
}
incr i
}
} else {
puts "No command line argument passed"
}
# ###################################################################################
# # // Run the Libero SoC flow based on the input arguments passed by the user
# ###################################################################################
if {[info exists RAW_BAYER]} {
puts "Raw Bayer has been selected"
source ./MPFS_VIDEO_KIT_RAW_BAYER_REFERENCE_DESIGN.tcl
} elseif {[info exists H264_MM]} {
puts "H264 modular design is selected"
source ./MPFS_VIDEO_KIT_H264_MM_REFERENCE_DESIGN.tcl
} else {
puts "H264 legacy design is selected"
source ./MPFS_VIDEO_KIT_H264_REFERENCE_DESIGN.tcl
}