cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
1,865 Views
Registered: ‎03-03-2017

HDMI source custom resolutions

Jump to solution

I am working on a design that sources HDMI (using the block design copied over from Xilinx example HDMI design) using Vivado/SDK 2018.1 on a Kintex-7 device which is working using the pre-set resolutions defined in:

 

BSP/proc_mblz/lbsrc/video_common_v4_3/src/xvidc_timing.c
...
const XVidC_VideoTimingMode XVidC_VideoTimingModes[XVIDC_VM_NUM_SUPPORTED] =
{
/* Interlaced modes. */
{ XVIDC_VM_720x480_60_I, "720x480@60Hz (I)", XVIDC_FR_60HZ,
{720, 19, 62, 57, 858, 0,
240, 4, 3, 15, 262, 5, 3, 15, 263, 0} },
...
};

 

To use one of these resolutions I call the EnableColorBar function where I pass in the desired resolution setting from the above table into the "XVidC_VideoMode  VideoMode" pass parameter which ends up calling the following function:

 

TmdsClock = XV_HdmiTxSs_SetStream(HdmiTxSsPtr, VideoMode,ColorFormat, Bpc, NULL);

Can somebody possibly help me understand how I can create my own custom resolution I need to support?   I would like to setup:

- Htotal (pixels)

- Vtotal (lines)

- Hactive (pixels)

- Vactive (lines)

- H sync width (pixels)

- H front porch (pixels)

- H back porch (pixels)

- V sync width (lines)

- V front porch (lines)

- V back porch (lines)

- Frame rate (Hz)

 

 

Thanks.

Tim

 

0 Kudos
1 Solution

Accepted Solutions
Teacher
Teacher
2,371 Views
Registered: ‎06-16-2013

Hi @tim_severance

 

I see.

Would you refer the following AR ?

 

https://www.xilinx.com/support/answers/68227.html

 

Best regards,

View solution in original post

9 Replies
Highlighted
Teacher
Teacher
1,845 Views
Registered: ‎06-16-2013

Hi @tim_severance

 

I suggest to calculate these parameters by CVT formula from VESA even if your product is for CEA-861 or other.

 

Best regards,

0 Kudos
Highlighted
1,838 Views
Registered: ‎03-03-2017

@watari,

   I already know the values I want to use are valid since they work in non-Xilinx hardware, I just need to know syntactically how do I apply these values in place of the pre-set values.   For instance would I setup my own struct with those values and use an instance of that struct in my function call?

Thanks 

Tim

0 Kudos
Teacher
Teacher
2,372 Views
Registered: ‎06-16-2013

Hi @tim_severance

 

I see.

Would you refer the following AR ?

 

https://www.xilinx.com/support/answers/68227.html

 

Best regards,

View solution in original post

Highlighted
1,832 Views
Registered: ‎03-03-2017

@watari,

    Thanks.   That is exactly what I was looking for.  

Tim

0 Kudos
Highlighted
Contributor
Contributor
1,686 Views
Registered: ‎05-02-2018

Hi @watari,

Is there any tools to calculate timing parameters from VESA? Could you give me a website links to download it?

 

I want to create my own custom resolution,but I don't know how to calculate it.

- Htotal (pixels)

- Vtotal (lines)

- Hactive (pixels)

- Vactive (lines)

- H sync width (pixels)

- H front porch (pixels)

- H back porch (pixels)

- V sync width (lines)

- V front porch (lines)

- V back porch (lines)

- Frame rate (Hz)

 

Thanks

0 Kudos
Highlighted
Teacher
Teacher
1,677 Views
Registered: ‎06-16-2013

Hi @gandics

 

I already mentioned before about custom parameter to @tim_severance.

 

Would you refer previous post ?

After that, you can find "VESA CVT formula" and "CEA-861".

 

You can search these words via ex. google and find the solution.

Or, I suggest to access VESA web site and search "CVT formula" on VESA's search box.

You can find the document which is written by EXCEL format.

 

Best regards,

 

Highlighted
Contributor
Contributor
1,665 Views
Registered: ‎05-02-2018

Hi @watari,

 

I have read the previous post,and search "CVT formula" on VESA's search box.However, member downloads.

 

Thanks for your reply.I am a new learner,and I will search it via google to find the solution.

 

 

 

0 Kudos
Highlighted
Teacher
Teacher
1,648 Views
Registered: ‎06-16-2013

Hi @gandics

 

If you have an enough experience about programming, I suggest to refer source code of some video driver, ex. X window's open source code, too.

I guess you might be found the formula about CVT in these source code files.

 

Best regards,

 

0 Kudos
Highlighted
Contributor
Contributor
1,636 Views
Registered: ‎05-02-2018

Hi @watari,

 

Thank you! ^_^

0 Kudos