From 65b2856c1f1a3b0379b140f9e97867bc4c64e7a4 Mon Sep 17 00:00:00 2001 From: Durga challa Date: Tue, 8 Jul 2014 18:42:33 +0530 Subject: [PATCH] tpg: Added html files. Modified tpg.mdd and tpg.tcl files. Signed-off-by: Durga challa --- XilinxProcessorIPLib/drivers/tpg/data/tpg.mdd | 1 - XilinxProcessorIPLib/drivers/tpg/data/tpg.tcl | 7 +- .../drivers/tpg/examples/example.c | 86 ------------------- 3 files changed, 5 insertions(+), 89 deletions(-) delete mode 100755 XilinxProcessorIPLib/drivers/tpg/examples/example.c diff --git a/XilinxProcessorIPLib/drivers/tpg/data/tpg.mdd b/XilinxProcessorIPLib/drivers/tpg/data/tpg.mdd index 03906fd3..7a372198 100755 --- a/XilinxProcessorIPLib/drivers/tpg/data/tpg.mdd +++ b/XilinxProcessorIPLib/drivers/tpg/data/tpg.mdd @@ -29,7 +29,6 @@ # this Software without prior written authorization from Xilinx. # ############################################################################## -OPTION psf_version = 2.1; BEGIN driver tpg diff --git a/XilinxProcessorIPLib/drivers/tpg/data/tpg.tcl b/XilinxProcessorIPLib/drivers/tpg/data/tpg.tcl index a41c897b..1ce46977 100755 --- a/XilinxProcessorIPLib/drivers/tpg/data/tpg.tcl +++ b/XilinxProcessorIPLib/drivers/tpg/data/tpg.tcl @@ -37,6 +37,9 @@ ############################################################### proc generate {drv_handle} { - xdefine_include_file $drv_handle "xparameters.h" "tpg" "C_BASEADDR" "C_HIGHADDR" - xdefine_canonical_xpars $drv_handle "xparameters.h" "tpg" "C_BASEADDR" "C_HIGHADDR" + xdefine_include_file $drv_handle "xparameters.h" "TPG" "NUM_INSTANCES" "DEVICE_ID" "C_BASEADDR" "C_HIGHADDR" "C_S_AXIS_VIDEO_FORMAT" "C_M_AXIS_VIDEO_FORMAT" "C_S_AXI_CLK_FREQ_HZ" "C_ACTIVE_ROWS" "C_ACTIVE_COLS" "C_PATTERN_CONTROL" "C_MOTION_SPEED" "C_CROSS_HAIRS" "C_ZPLATE_HOR_CONTROL" "C_ZPLATE_VER_CONTROL" "C_BOX_SIZE" "C_BOX_COLOR" "C_STUCK_PIXEL_THRESH" "C_NOISE_GAIN" "C_BAYER_PHASE" "C_HAS_INTC_IF" "C_ENABLE_MOTION" + + xdefine_config_file $drv_handle "xtpg_g.c" "XTpg" "DEVICE_ID" "C_BASEADDR" "C_S_AXIS_VIDEO_FORMAT" "C_M_AXIS_VIDEO_FORMAT" "C_S_AXI_CLK_FREQ_HZ" "C_ACTIVE_ROWS" "C_ACTIVE_COLS" "C_PATTERN_CONTROL" "C_MOTION_SPEED" "C_CROSS_HAIRS" "C_ZPLATE_HOR_CONTROL" "C_ZPLATE_VER_CONTROL" "C_BOX_SIZE" "C_BOX_COLOR" "C_STUCK_PIXEL_THRESH" "C_NOISE_GAIN" "C_BAYER_PHASE" "C_HAS_INTC_IF" "C_ENABLE_MOTION" + + xdefine_canonical_xpars $drv_handle "xparameters.h" "TPG" "DEVICE_ID" "C_BASEADDR" "C_HIGHADDR" "C_S_AXIS_VIDEO_FORMAT" "C_M_AXIS_VIDEO_FORMAT" "C_S_AXI_CLK_FREQ_HZ" "C_ACTIVE_ROWS" "C_ACTIVE_COLS" "C_PATTERN_CONTROL" "C_MOTION_SPEED" "C_CROSS_HAIRS" "C_ZPLATE_HOR_CONTROL" "C_ZPLATE_VER_CONTROL" "C_BOX_SIZE" "C_BOX_COLOR" "C_STUCK_PIXEL_THRESH" "C_NOISE_GAIN" "C_BAYER_PHASE" "C_HAS_INTC_IF" "C_ENABLE_MOTION" } diff --git a/XilinxProcessorIPLib/drivers/tpg/examples/example.c b/XilinxProcessorIPLib/drivers/tpg/examples/example.c deleted file mode 100755 index ab50c3f2..00000000 --- a/XilinxProcessorIPLib/drivers/tpg/examples/example.c +++ /dev/null @@ -1,86 +0,0 @@ -/***************************************************************************** -* -* Copyright (C) 2001 - 2014 Xilinx, Inc. All rights reserved. -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"),to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* Use of the Software is limited solely to applications: -* (a) running on a Xilinx device, or -* (b) that interact with a Xilinx device through a bus or interconnect. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* XILINX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF -* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -* -* Except as contained in this notice, the name of the Xilinx shall not be used -* in advertising or otherwise to promote the sale, use or other dealings in -* this Software without prior written authorization from Xilinx. -* -*****************************************************************************/ - /** - * - * @file example.c - * - * This file demonstrates how to use Xilinx Test Pattern Generator (TPG) - * ore pcore driver functions. - * - * - * *************************************************************************** - */ - -#include "tpg.h" -#include "xparameters.h" - -/***************************************************************************/ -// Test Pattern Generator Register Reading Example -// This function provides an example of how to read the current configuration -// settings of the TPG core. -/***************************************************************************/ -void report_tpg_settings(u32 BaseAddress) { - - u32 status, reg_val; - unsigned char inchar=0; - - xil_printf("Test Pattern Generator Core Configuration:\r\n"); - xil_printf(" Enable Bit: %1d\r\n", TPG_ReadReg(BaseAddress, TPG_CONTROL) & TPG_CTL_EN_MASK); - xil_printf(" Register Update Bit: %1d\r\n", (TPG_ReadReg(BaseAddress, TPG_CONTROL) & TPG_CTL_RUE_MASK) >> 1); - xil_printf(" Reset Bit: %1d\r\n", TPG_ReadReg(BaseAddress, TPG_CONTROL) & TPG_RST_RESET); - status = TPG_ReadReg(BaseAddress, TPG_STATUS); - xil_printf(" TPG Status: %08x \r\n", status); - xil_printf(" Core Version: %1d.%1d\r\n", TPG_ReadReg(BaseAddress, TPG_VERSION)); - reg_val = TPG_ReadReg(BaseAddress, TPG_CONTROL ); - xil_printf("TPG_CONTROL : %8x\r\n", reg_val); - reg_val = TPG_ReadReg(BaseAddress, TPG_IRQ_EN ); - xil_printf("TPG_IRQ_EN : %8x\r\n", reg_val); - reg_val = (TPG_ReadReg(BaseAddress, TPG_ACTIVE_SIZE ) && 0x1FFF); - xil_printf("Active Rows : %8d\r\n", reg_val); - reg_val = (TPG_ReadReg(BaseAddress, TPG_ACTIVE_SIZE) >> 16); - xil_printf("Active Columns : %8d\r\n", reg_val); - xil_printf("Press Space to continue!\r\n", reg_val); - while (inchar != ' ') inchar = inbyte(); -} - -/*****************************************************************************/ -// -// This is the main function for the TPG example. -// -/*****************************************************************************/ -int main(void) -{ - // Print the current settings for the TPG core - report_tpg_settings(XPAR_TPG_0_BASEADDR); - - return 0; -}