Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

Configure the Alpha Blending Mixer

Hi, When I debug the Alpha Blending Mixer, it is failed.

Software:Quartusii 12.0 +Nios II Eclipe

Project:

Test Pattern Generator0 ---->

|-- Alpha Blending Mixer---> Clocked video output

Test Pattern Generator1---->

I congfiure it follow the "Video and Image Processing Suite User Guide (Chapter 3: Interfaces Avalon-MM Slave Interfaces Page 50 of 290, July 2012)":

-----------------------------------------

1. Set the Go bit to zero. This causes the MegaCore function to stop if it gets to the end

of a frame while the update is in progress.

2. Update the control data.

3. Set the Go bit to one.

-----------------------------------------

when I debug it at Nios II Eclipe, the 19" LCD display will blink only once, then it becomes black.

//------------------------------------------------//

IOWR(ALT_VIP_MIX_0_BASE, 0, 0);

i= IORD(ALT_VIP_MIX_0_BASE, 1);

IOWR(ALT_VIP_MIX_0_BASE, 2, 0);

IOWR(ALT_VIP_MIX_0_BASE, 3, 0);

IOWR(ALT_VIP_MIX_0_BASE, 4, 1);

IOWR(ALT_VIP_MIX_0_BASE, 5, 0);

IOWR(ALT_VIP_MIX_0_BASE, 6, 0);

IOWR(ALT_VIP_MIX_0_BASE, 7, 1);

IOWR(ALT_VIP_MIX_0_BASE, 0, 1); // after this step, the display will blink

only once, then it became black.:(

i= IORD(ALT_VIP_MIX_0_BASE, 1);

//-----------------------------------------------------//

By the way, When I debug the reference design at Alter Web: Scaler.zip, it works very well, but when I disabled the Scaler, then download and debug , it can't work.:confused:

So I don't know what is wrong with it. The attenment is my project.Thanks!

:)

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,guys

    I find the root cause: the background is not the 1st layer:-P

    you don't need to congfigue the background,because it is on default.

    mixer.set_layer_position(0, 150, 0);//the 1st layer

    mixer.set_layer_enabled(0,true);

    mixer.set_layer_position(1, 600, 0);//the 2nd layer

    mixer.set_layer_enabled(1,true);

    ---there are 3 layers.

    Thanks!:D