UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
1,231 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
Scholar watari
Scholar
1,737 Views
Registered: ‎06-16-2013

Re: HDMI source custom resolutions

Jump to solution

Hi @tim_severance

 

I see.

Would you refer the following AR ?

 

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

 

Best regards,

9 Replies
Scholar watari
Scholar
1,211 Views
Registered: ‎06-16-2013

Re: HDMI source custom resolutions

Jump to solution

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
1,204 Views
Registered: ‎03-03-2017

Re: HDMI source custom resolutions

Jump to solution

@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
Scholar watari
Scholar
1,738 Views
Registered: ‎06-16-2013

Re: HDMI source custom resolutions

Jump to solution

Hi @tim_severance

 

I see.

Would you refer the following AR ?

 

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

 

Best regards,

1,198 Views
Registered: ‎03-03-2017

Re: HDMI source custom resolutions

Jump to solution

@watari,

    Thanks.   That is exactly what I was looking for.  

Tim

0 Kudos
Participant gandics
Participant
1,052 Views
Registered: ‎05-02-2018

Re: HDMI source custom resolutions

Jump to solution

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
Scholar watari
Scholar
1,043 Views
Registered: ‎06-16-2013

Re: HDMI source custom resolutions

Jump to solution

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,

 

Participant gandics
Participant
1,031 Views
Registered: ‎05-02-2018

Re: HDMI source custom resolutions

Jump to solution

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
Scholar watari
Scholar
1,014 Views
Registered: ‎06-16-2013

Re: HDMI source custom resolutions

Jump to solution

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
Participant gandics
Participant
1,002 Views
Registered: ‎05-02-2018

Re: HDMI source custom resolutions

Jump to solution

Hi @watari,

 

Thank you! ^_^

0 Kudos