09.11.2012 Views

Video and Image Processing Up Conversion Example Design

Video and Image Processing Up Conversion Example Design

Video and Image Processing Up Conversion Example Design

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Review <strong>and</strong> Simulate the <strong>Example</strong> <strong>Design</strong><br />

The deinterlacer is parameterized to process an interleaved image of<br />

resolution 640×480 pixels, with 2 color planes in sequence due to the 4:2:2<br />

sampling rate of the interleaved input image. Weave deinterlacing is<br />

applied in this example <strong>and</strong> requires a frame buffer stored in off-chip<br />

memory so that lines from different fields can be woven together. For this<br />

reason, the weave deinterlacer has a built in double-buffering function.<br />

When in weave mode, the deinterlacer has two 64-bit Avalon-MM master<br />

ports. These must be connected to an external memory with enough space<br />

to store four full fields of video data.<br />

The base address of frame buffers represents the address in the<br />

Avalon-MM address space where the base of the frame buffer memory is<br />

to be located <strong>and</strong> there must be at least 1.2MByte of free RAM at this<br />

location. (7.4MByte is used by the frame buffer block at a base address of<br />

0x10000000.)<br />

8. Click Cancel to close the Deinterlacer MegaWizard page.<br />

External Memory Simulation Block<br />

The example design uses a DSP Builder Simulation-only block to allow<br />

simulation of an external RAM memory. The memory model is designed<br />

for use with the Altera <strong>Video</strong> <strong>and</strong> <strong>Image</strong> <strong>Processing</strong> MegaCore functions,<br />

but can be used for other purposes.<br />

Data can be written to (or read from) the RAM model via Avalon-MM<br />

read <strong>and</strong> write master ports. In the example design, the RAM model is<br />

connected to the Deinterlacer function.<br />

1 Note that the external RAM model can be used for simulation<br />

only <strong>and</strong> will not generate HDL if the design is compiled with<br />

Signal Compiler.<br />

Figure 21 shows the External RAM memory block in DSP Builder.<br />

Figure 21. External RAM Memory Block<br />

Altera Corporation 23<br />

Preliminary

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!