Video Test Pattern Generator(7.0)软件调试记录
.
XVidC_VideoMode
XVIDC_VM_576_50_I = XVIDC_VM_720x576_50_I .
typedef struct {
u16 HActive;
u16 HFrontPorch;
u16 HSyncWidth;
u16 HBackPorch;
u16 HTotal;
u8 HSyncPolarity;
u16 VActive;
u16 F0PVFrontPorch;
u16 F0PVSyncWidth;
u16 F0PVBackPorch;
u16 F0PVTotal;
u16 F1VFrontPorch;
u16 F1VSyncWidth;
u16 F1VBackPorch;
u16 F1VTotal;
u8 VSyncPolarity;
} XVidC_VideoTiming; .
void XV_tpg_Set_height(XV_tpg *InstancePtr, u32 Data) {
Xil_AssertVoid(InstancePtr != NULL);
Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY); XV_tpg_WriteReg(InstancePtr->Config.BaseAddress, XV_TPG_CTRL_ADDR_HEIGHT_DATA, Data);
} .
void XV_tpg_Set_width(XV_tpg *InstancePtr, u32 Data) {
Xil_AssertVoid(InstancePtr != NULL);
Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY); XV_tpg_WriteReg(InstancePtr->Config.BaseAddress, XV_TPG_CTRL_ADDR_WIDTH_DATA, Data);
}
5.
GUI配置:
ila抓取波形:
6.
GUI配置:
ila抓取波形:
修改软件配置为:
XVIDC_VM_1080_50_I;
ila抓取波形:
修改软件配置为:
XVIDC_VM_480_60_I
ila抓取波形:
软件调试:
TestMode = XVIDC_VM_576_50_I;
TestMode = XVIDC_VM_480_60_I;