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: 
Contributor
Contributor
190 Views
Registered: ‎05-02-2018

dp v2.1 example design color format change

Jump to solution

Hi,

I am using DP Tx Subsystem v2.1 in KC705.

Refering to PG199,the RGB/YCbCr444/YCbCr422/Y-Only color formats are supported dynamicly.

So I creat an example design,replacing tpg with av_pat_gen mode,with RGB color formats tpg output.
Applicataion operating normally,and the monitor display correctly.

Then I set tpg color format to yuv422,but there are no format change option in application command list.
Applicataion operating normally,but the monitor display incorrectly.

Finally,I find the functions in xdp.h!

* u32 XDp_TxCfgSetRGB(XDp *InstancePtr, u8 Stream)
* u32 XDp_TxCfgSetSRGB(XDp *InstancePtr, u8 Stream)
* u32 XDp_TxCfgSetYonly(XDp *InstancePtr, u8 Stream)
* u32 XDp_TxCfgSetYCbCr422Bt601(XDp *InstancePtr, u8 Stream)
* u32 XDp_TxCfgSetYCbCr422Bt709(XDp *InstancePtr, u8 Stream)
* u32 XDp_TxCfgSetYCbCr444Bt601(XDp *InstancePtr, u8 Stream)
* u32 XDp_TxCfgSetYCbCr444Bt709(XDp *InstancePtr, u8 Stream)
* u32 XDp_TxCfgSetXvYcc422Bt601(XDp *InstancePtr, u8 Stream)
* u32 XDp_TxCfgSetXvYcc422Bt709(XDp *InstancePtr, u8 Stream)
* u32 XDp_TxCfgSetXvYcc444Bt601(XDp *InstancePtr, u8 Stream)
* u32 XDp_TxCfgSetXvYcc444Bt709(XDp *InstancePtr, u8 Stream)
* u32 XDp_TxCfgSetAdbRGB(XDp *InstancePtr, u8 Stream)

I add it into function of start_tx(),before XDpTxSs_Start().

I am not clear what should the stream param to be set in SST mode,so I instant 4 stream.

Show as below.

422.png

Applicataion operating normally,XDp_TxCfgSetXvYcc422Bt709() fuction returns success,but the result is the same as before.Even if every XDp_TxCfgSet**() fuction I had try.

Here is my questions:

Format changing is not supported in this example design?

Could you tell me what should I do next?

 

Thanks,

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
154 Views
Registered: ‎11-09-2015

Re: dp v2.1 example design color format change

Jump to solution

Hi @gandics 

In the KC705 example design, the color format is set at the beggining of the TX only part:

DpTxSsInst.DpPtr->TxInstance.MsaConfig[0].ComponentFormat = 0x0;
Msa[0].ComponentFormat = 0x0;

According to the DP1.2 Spec

RGB -> 0x0

YCbCr422 -> 0x01

YCbCr444 -> 10

This is one way you can use.

Another way is by looking at the ZCU102 TX only example design.

In the start_tx funtion you will have:

XDp_TxCfgSetColorEncode(DpTxSsInst.DpPtr, XDP_TX_STREAM_ID1, \
format, XVIDC_BT_601, XDP_DR_CEA);

Where format is the color format defined at the beggining of the application (user_config.user_format = XVIDC_CSF_RGB;).

And finally, no, colour format is not supported in the TX-only part of the example design as the pattern generator in the vivado design only supports RGB. But when you are in path-through mode, TX will replicate the colour format received on RX.

Regards


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
4 Replies
Moderator
Moderator
155 Views
Registered: ‎11-09-2015

Re: dp v2.1 example design color format change

Jump to solution

Hi @gandics 

In the KC705 example design, the color format is set at the beggining of the TX only part:

DpTxSsInst.DpPtr->TxInstance.MsaConfig[0].ComponentFormat = 0x0;
Msa[0].ComponentFormat = 0x0;

According to the DP1.2 Spec

RGB -> 0x0

YCbCr422 -> 0x01

YCbCr444 -> 10

This is one way you can use.

Another way is by looking at the ZCU102 TX only example design.

In the start_tx funtion you will have:

XDp_TxCfgSetColorEncode(DpTxSsInst.DpPtr, XDP_TX_STREAM_ID1, \
format, XVIDC_BT_601, XDP_DR_CEA);

Where format is the color format defined at the beggining of the application (user_config.user_format = XVIDC_CSF_RGB;).

And finally, no, colour format is not supported in the TX-only part of the example design as the pattern generator in the vivado design only supports RGB. But when you are in path-through mode, TX will replicate the colour format received on RX.

Regards


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
Contributor
Contributor
121 Views
Registered: ‎05-02-2018

Re: dp v2.1 example design color format change

Jump to solution

Hi @florentw 

Thanks for your reply!

According to your answer,I have changed the register.

It does work!But the monitor display still incorrectly.

YCbCr422 below:

372533683.jpg

TPG settting:

Snipaste_2019-09-16_17-29-22.png

SDK part:

Snipaste_2019-09-16_17-32-55.pngSnipaste_2019-09-16_17-33-18.png

Thanks!

0 Kudos
Moderator
Moderator
119 Views
Registered: ‎11-09-2015

Re: dp v2.1 example design color format change

Jump to solution

Hi @gandics 

I encourage you to cross-check the registers value for both the displayport subsystem and the TPG. It might be that one of them is incorrectly programmed.

Also you need to make sure that the option "Enable UG934 Compliance of AXI4-Stream Video Output" in enabled in the DP Tx subsystems to be able to connect the TPG directly. This is not used in the example design


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Contributor
Contributor
104 Views
Registered: ‎05-02-2018

Re: dp v2.1 example design color format change

Jump to solution

Hi,@florentw

Probably,due to the pixel mapping difference,I think.

I will monitor the axi4_stream_tdata through ila to position Issue.

Thank you!:)