← All articles

1080p60 HDMI from a Zynq-7020

The clocks, the DDR traffic and the measurements behind a 1080p60 console on a Zybo Z7-20, and why we call it an engineering mode.

IronKernel · · Video

The Zybo Z7-20 in our IronForge reference design drives a 1080p60 HDMI monitor from a 32-bit framebuffer in DDR. It ran 4,204 frames without an underrun. We still list 720p60 as the rated mode for this part. This article explains both halves of that statement, using IronVideo, the scanout core in the design.

Two problems: clocks and memory

A display output has to do two things without fail. It has to serialize pixels at the rate the monitor expects, and it has to have the next pixel ready every time. The first is a clocking problem and the second is a memory problem.

ModePixel clockSerializer clockXRGB8888 from DDR
720p6074.25 MHz371.25 MHz221 MB/s
1080p60148.5 MHz742.5 MHz498 MB/s

TMDS sends ten bits per pixel on each data pair. The 7 series serializer runs at five times the pixel clock and uses both clock edges.

The clock is the part that is out of spec

The XC7Z020 on the Zybo is a speed-grade −1 device. At 1080p60 the serializer clock is 742.5 MHz, which is above the clock-network rating for that speed grade. The design works on the board and display we tested. The data sheet does not promise it across process, voltage and temperature, so we call 1080p60 an engineering mode on this part and state the limit wherever we quote the result.

At 720p60 the serializer clock is 371.25 MHz, inside the rating. That is the mode to design a product around on a −1 Zynq-7020. A faster speed grade moves the limit.

Keeping the pixel FIFO fed

The raster cannot wait. If the FIFO between memory and the raster is empty at an active pixel, the frame is wrong, and the core raises a sticky underrun flag. At 1080p60 with 32-bit pixels the average demand is 498 MB/s, and the reads compete with the camera and the encoder for DDR.

IronVideo's reader reserves room for a complete active row before it asks for it, then schedules the bursts. On the Zybo it reads through a 64-bit high-performance port with up to four reads in flight of up to 16 beats each. The fast profile runs that port at 148.5 MHz and registers the read-response path. The FIFO in this design is 16 KiB, which is a little over two rows of 1080p at 32 bits per pixel.

Measured

TestResult
Zybo Z7-20, 1080p60 XRGB88884,204 frames in 70.07 s with zero underruns, AXI read errors or faults; peak DDR fetch 1.158 GB/s
Zybo Z7-20, 1080p60 RGB5654,205 frames in 70.09 s with zero underruns, with the memory port at 82.5 MHz
Zybo Z7-20, 1080p60 with the camera running300 of 300 camera frames captured at 1080p30 while the display recorded zero underruns
Zybo Z7-20, 720p603,600 frames with zero underruns
Nexys Video, 720p60, four formats60.000 frames/s over 360 frames each in XRGB8888, RGB565, YUYV and NV12, with zero underruns

RGB565 halves the memory traffic, which is why it holds 1080p60 with the port at 82.5 MHz. A design that is short on DDR bandwidth has that option before it gives up resolution.

Proving it on a board

A monitor that shows a picture proves very little: one bad row in ten thousand frames is invisible. The core's counters are the test. The sticky fault flags record any underrun or AXI error since they were cleared, a raster snapshot gives a coherent frame and line position, and the row-timing counters show how close the reader runs to the raster. A soak with the camera and encoder running, followed by a read of those flags, is the evidence in the table above.

The rotating-cube demo on the IronForge page was filmed from this output. The program draws into the same framebuffer the console uses and ran 6,426 frames in 180 seconds at 1080p60.

Further reading

Adding HDMI or an LCD to an FPGA design?

Send the FPGA part, the display mode and the framebuffer format.