
v_tpg IP has a new example design available in vivado catalogue. Associated example software is added to the driver along with the xsct script to create sdk project Signed-off-by: Rohit Consul <rohit.consul@xilinx.com> Acked-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
35 lines
1 KiB
Tcl
35 lines
1 KiB
Tcl
proc vtpg_example args {
|
|
|
|
if {[llength $args] != 1} {
|
|
puts "error: hdf file name missing from command line"
|
|
puts "Please specify hdf to process"
|
|
puts "Example Usage: vtpg_example.tcl design1.hdf"
|
|
} else {
|
|
|
|
set hdf [lindex $args 0]
|
|
|
|
#set workspace
|
|
puts "Create Workspace"
|
|
sdk set_workspace vtpg_example.sdk
|
|
|
|
#create hw project
|
|
puts "Create HW Project"
|
|
sdk create_hw_project -name vtpg_example_hw_platform -hwspec ./$hdf
|
|
|
|
#create bsp
|
|
puts "Create BSP"
|
|
sdk create_bsp_project -name vtpg_example_bsp -hwproject vtpg_example_hw_platform -proc microblaze_0 -os standalone
|
|
|
|
#create application project
|
|
puts "Create Application Project"
|
|
sdk create_app_project -name vtpg_example_design -hwproject vtpg_example_hw_platform -proc microblaze_0 -os standalone -lang C -app {Empty Application} -bsp vtpg_example_bsp
|
|
|
|
#copy example source files tp app project
|
|
puts "Get Example Design Source Files"
|
|
file copy main.c ./vtpg_example.sdk/vtpg_example_design/src
|
|
|
|
#build project
|
|
puts "Build Project"
|
|
sdk build_project -type all
|
|
}
|
|
}
|