Video Test Pattern Generator(7.0)軟件調試記錄

Video Test Pattern Generator(7.0)軟件調試記錄ide

 

 1 1.
 2 XVidC_VideoMode
 3 XVIDC_VM_576_50_I = XVIDC_VM_720x576_50_I
 4 
 5 2.
 6 typedef struct {
 7     u16 HActive;
 8     u16 HFrontPorch;
 9     u16 HSyncWidth;
10     u16 HBackPorch;
11     u16 HTotal;
12     u8 HSyncPolarity;
13     u16 VActive;
14     u16 F0PVFrontPorch;
15     u16 F0PVSyncWidth;
16     u16 F0PVBackPorch;
17     u16 F0PVTotal;
18     u16 F1VFrontPorch;
19     u16 F1VSyncWidth;
20     u16 F1VBackPorch;
21     u16 F1VTotal;
22     u8 VSyncPolarity;
23 } XVidC_VideoTiming;
24 
25 3.
26 void XV_tpg_Set_height(XV_tpg *InstancePtr, u32 Data) {
27     Xil_AssertVoid(InstancePtr != NULL);
28     Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
29 
30     XV_tpg_WriteReg(InstancePtr->Config.BaseAddress, XV_TPG_CTRL_ADDR_HEIGHT_DATA, Data);
31 }
32 
33 4.
34 void XV_tpg_Set_width(XV_tpg *InstancePtr, u32 Data) {
35     Xil_AssertVoid(InstancePtr != NULL);
36     Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
37 
38     XV_tpg_WriteReg(InstancePtr->Config.BaseAddress, XV_TPG_CTRL_ADDR_WIDTH_DATA, Data);
39 }

 

5.spa

GUI配置:3d

ila抓取波形:調試

 6.code

GUI配置:blog

 ila抓取波形:it

修改軟件配置爲:class

XVIDC_VM_1080_50_I;軟件

ila抓取波形:配置

修改軟件配置爲:

XVIDC_VM_480_60_I

ila抓取波形:

 軟件調試:

TestMode = XVIDC_VM_576_50_I;

TestMode = XVIDC_VM_480_60_I;

相關文章
相關標籤/搜索