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: 
Highlighted
Adventurer
Adventurer
1,123 Views
Registered: ‎05-28-2018

Video Test Pattern Generator - stand-alone no processor

Jump to solution

I have an application that could really leverage the TPG, however, we have no, and have no plans for, a processor in the system. It seems silly to put a microblaze in just to "Kick-off" the TPG. Is there not some way to do that, like with a logic signal or two???  :-)

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Explorer
Explorer
1,229 Views
Registered: ‎07-18-2011

Re: Video Test Pattern Generator - stand-alone no processor

Jump to solution

@gcsimmonsjr

 

If you don't want to write a custom AXI4-Lite Master IP, you can use an AXI traffic generator IP block configured in AXI4-Lite System Init mode to initialize the TPG IP block.

 

Write one coefficient file for the addresses and another for the data, and you can load whatever pattern/mode you want into the TPG on powerup by setting the appropriate registers in the data coefficient file.

 

Be sure to set the base address and high address in the traffic generator IP configuration to match what is in your Address Editor tab (ex: 0x44A00000 and 0x44A0FFFF), and configure the address coefficient file to match that address as well.

 

Here is an example for a 720p60 RGB444 address and data coefficient file at a base address of 0x44A00000:

 

Address coefficient file:

 

;VTPG address initialization file - 16 entries, must end in FFFFFFFF
memory_initialization_radix=16;
memory_initialization_vector=
;
;Addresses
;
;Control - stop VTPG
44A00000
;Active height
44A00010
;Active width
44A00018
;Color format
44A00040
;Background pattern
44A00020
;Foreground pattern
44A00028
;Control - enable auto-restart
44A00000
;Control - start VTPG
44A00000
;
;NOPS
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF

 

Data coefficient file:

 

;VDMA data initialization file - 16 entries, must end in FFFFFFFF
memory_initialization_radix=16;
memory_initialization_vector=
;
;Data
;
;Control - stop VTPG
00000000
;Active height - 720
000002D0
;Active width - 1280
00000500
;Color format - 0x0 = RGB444, 0x1 = YUV444, 0x2 = YUV422
00000000
;Background pattern - Ramp = 0x01, Color bars = 0x09
00000009
;Foreground pattern - 0
00000000
;Control - enable auto-restart
00000080
;Control - start VTPG
00000081
;
;NOPS
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF

 

 

4 Replies
Scholar watari
Scholar
1,070 Views
Registered: ‎06-16-2013

Re: Video Test Pattern Generator - stand-alone no processor

Jump to solution

Hi @gcsimmonsjr

 

You can kick-off TPG without microblaze to use state machine by yourself.

However, I don't suggest to implement state machine as "kick-off" logic for TPG.

 

Best regards,

 

Moderator
Moderator
1,044 Views
Registered: ‎11-09-2015

Re: Video Test Pattern Generator - stand-alone no processor

Jump to solution

Hi @gcsimmonsjr,

 

You need to create your own AXI4-lite master to start the test pattern generator. If you are using the default configuration for the TPG, you would only need to write to address 0x0.

 

To create a new AXI4-Lite master, my recomendation is to use the template of IP packager (package IP > New AXi peripheral).

 

Regards,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Explorer
Explorer
1,230 Views
Registered: ‎07-18-2011

Re: Video Test Pattern Generator - stand-alone no processor

Jump to solution

@gcsimmonsjr

 

If you don't want to write a custom AXI4-Lite Master IP, you can use an AXI traffic generator IP block configured in AXI4-Lite System Init mode to initialize the TPG IP block.

 

Write one coefficient file for the addresses and another for the data, and you can load whatever pattern/mode you want into the TPG on powerup by setting the appropriate registers in the data coefficient file.

 

Be sure to set the base address and high address in the traffic generator IP configuration to match what is in your Address Editor tab (ex: 0x44A00000 and 0x44A0FFFF), and configure the address coefficient file to match that address as well.

 

Here is an example for a 720p60 RGB444 address and data coefficient file at a base address of 0x44A00000:

 

Address coefficient file:

 

;VTPG address initialization file - 16 entries, must end in FFFFFFFF
memory_initialization_radix=16;
memory_initialization_vector=
;
;Addresses
;
;Control - stop VTPG
44A00000
;Active height
44A00010
;Active width
44A00018
;Color format
44A00040
;Background pattern
44A00020
;Foreground pattern
44A00028
;Control - enable auto-restart
44A00000
;Control - start VTPG
44A00000
;
;NOPS
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF

 

Data coefficient file:

 

;VDMA data initialization file - 16 entries, must end in FFFFFFFF
memory_initialization_radix=16;
memory_initialization_vector=
;
;Data
;
;Control - stop VTPG
00000000
;Active height - 720
000002D0
;Active width - 1280
00000500
;Color format - 0x0 = RGB444, 0x1 = YUV444, 0x2 = YUV422
00000000
;Background pattern - Ramp = 0x01, Color bars = 0x09
00000009
;Foreground pattern - 0
00000000
;Control - enable auto-restart
00000080
;Control - start VTPG
00000081
;
;NOPS
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF

 

 

Moderator
Moderator
949 Views
Registered: ‎11-09-2015

Re: Video Test Pattern Generator - stand-alone no processor

Jump to solution

Hi @gcsimmonsjr,

 

Did one of the reply from @watari, @reaiken or me answered your question?

 

If yes, please kindly mark one as accepted solution (button accept as solution below the reply).

 

Thanks and Regards,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos