From c32323a04306582f32e14930f7ee183c152d8168 Mon Sep 17 00:00:00 2001 From: Rohit Consul Date: Thu, 3 Sep 2015 15:46:41 -0700 Subject: [PATCH] vprocss: Add xsct tck script to automate sdk project creation xsct scipt file added to automate the process of generating the elf file(s) from the provided hdf file Signed-off-by: Rohit Consul Acked-by: Andrei-Liviu Simion --- .../drivers/vprocss/examples/readme.txt | 25 +++++++++++++++++++ .../vprocss/examples/{ => src}/lscript.ld | 0 .../drivers/vprocss/examples/{ => src}/main.c | 0 .../vprocss/examples/{ => src}/periph.c | 0 .../vprocss/examples/{ => src}/periph.h | 0 .../vprocss/examples/{ => src}/system.c | 0 .../vprocss/examples/{ => src}/system.h | 0 .../drivers/vprocss/examples/vpss_example.tcl | 23 +++++++++++++++++ 8 files changed, 48 insertions(+) create mode 100755 XilinxProcessorIPLib/drivers/vprocss/examples/readme.txt rename XilinxProcessorIPLib/drivers/vprocss/examples/{ => src}/lscript.ld (100%) rename XilinxProcessorIPLib/drivers/vprocss/examples/{ => src}/main.c (100%) rename XilinxProcessorIPLib/drivers/vprocss/examples/{ => src}/periph.c (100%) rename XilinxProcessorIPLib/drivers/vprocss/examples/{ => src}/periph.h (100%) rename XilinxProcessorIPLib/drivers/vprocss/examples/{ => src}/system.c (100%) rename XilinxProcessorIPLib/drivers/vprocss/examples/{ => src}/system.h (100%) create mode 100644 XilinxProcessorIPLib/drivers/vprocss/examples/vpss_example.tcl diff --git a/XilinxProcessorIPLib/drivers/vprocss/examples/readme.txt b/XilinxProcessorIPLib/drivers/vprocss/examples/readme.txt new file mode 100755 index 00000000..1f9e7150 --- /dev/null +++ b/XilinxProcessorIPLib/drivers/vprocss/examples/readme.txt @@ -0,0 +1,25 @@ +vpss_example.tcl automates the process of generating the downloadable bit & elf files from the provided vpss example hdf file. + +Example application design source files (contained within "examples/src" folder) are tightly coupled with the video processing subsystem example design available in Vivado Catalogue. +To run the provided tcl + 1. Copy the exported example design hdf file in the "examples" directory of the driver + (a) Default hdf name is "design_1_v_proc_ss_0_0_design_synth_wrapper.hdf". If generated hdf name is different then vpss_example.tcl needs to be updated with the new name + 2. Launch the xsct terminal + 3. cd into the examples directory + 4. run the tcl + xsct%>source vpss_example.tcl + +Script will perform following operations + 1. Create workspace + 2. Create HW project + 3. Create BSP + 4. Create Application Project + 5. Build BSP and Application Project + +After the process is complete required files will be available in + bit file -> vpss_example.sdk/vpss_example_hw_platform folder + elf file -> vpss_example.sdk/vpss_example_design/{Debug/Release} folder + +When executed on the board the example application will determine the video processing subsystem topology set the input and output stream configuration accordingly. Test pattern generator IP is used to generated the input stream. Video Lock Monitor IP will then monitor the output of the subsystem (to vidout) to determine if lock is achieved and present the status on the terminal + +Note: Serial terminal baud rate should be set to 9600 diff --git a/XilinxProcessorIPLib/drivers/vprocss/examples/lscript.ld b/XilinxProcessorIPLib/drivers/vprocss/examples/src/lscript.ld similarity index 100% rename from XilinxProcessorIPLib/drivers/vprocss/examples/lscript.ld rename to XilinxProcessorIPLib/drivers/vprocss/examples/src/lscript.ld diff --git a/XilinxProcessorIPLib/drivers/vprocss/examples/main.c b/XilinxProcessorIPLib/drivers/vprocss/examples/src/main.c similarity index 100% rename from XilinxProcessorIPLib/drivers/vprocss/examples/main.c rename to XilinxProcessorIPLib/drivers/vprocss/examples/src/main.c diff --git a/XilinxProcessorIPLib/drivers/vprocss/examples/periph.c b/XilinxProcessorIPLib/drivers/vprocss/examples/src/periph.c similarity index 100% rename from XilinxProcessorIPLib/drivers/vprocss/examples/periph.c rename to XilinxProcessorIPLib/drivers/vprocss/examples/src/periph.c diff --git a/XilinxProcessorIPLib/drivers/vprocss/examples/periph.h b/XilinxProcessorIPLib/drivers/vprocss/examples/src/periph.h similarity index 100% rename from XilinxProcessorIPLib/drivers/vprocss/examples/periph.h rename to XilinxProcessorIPLib/drivers/vprocss/examples/src/periph.h diff --git a/XilinxProcessorIPLib/drivers/vprocss/examples/system.c b/XilinxProcessorIPLib/drivers/vprocss/examples/src/system.c similarity index 100% rename from XilinxProcessorIPLib/drivers/vprocss/examples/system.c rename to XilinxProcessorIPLib/drivers/vprocss/examples/src/system.c diff --git a/XilinxProcessorIPLib/drivers/vprocss/examples/system.h b/XilinxProcessorIPLib/drivers/vprocss/examples/src/system.h similarity index 100% rename from XilinxProcessorIPLib/drivers/vprocss/examples/system.h rename to XilinxProcessorIPLib/drivers/vprocss/examples/src/system.h diff --git a/XilinxProcessorIPLib/drivers/vprocss/examples/vpss_example.tcl b/XilinxProcessorIPLib/drivers/vprocss/examples/vpss_example.tcl new file mode 100644 index 00000000..d00d55ba --- /dev/null +++ b/XilinxProcessorIPLib/drivers/vprocss/examples/vpss_example.tcl @@ -0,0 +1,23 @@ +#set workspace +puts "Create Workspace" +sdk set_workspace vpss_example.sdk + +#create hw project +puts "Create HW Project" +sdk create_hw_project -name vpss_example_hw_platform -hwspec ./design_1_v_proc_ss_0_0_design_synth_wrapper.hdf + +#create bsp +puts "Create BSP" +sdk create_bsp_project -name vpss_example_bsp -hwproject vpss_example_hw_platform -proc microblaze_ss_microblaze_0 -os standalone + +#create application project +puts "Create Application Project" +sdk create_app_project -name vpss_example_design -hwproject vpss_example_hw_platform -proc microblaze_ss_microblaze_0 -os standalone -lang C -app {Empty Application} -bsp vpss_example_bsp + +#copy example source files tp app project +puts "Get Example Design Source Files" +sdk import_sources -name vpss_example_design -path ./src + +#build project +puts "Build Project" +sdk build_project -type all