Forum Discussion
Altera_Forum
Honored Contributor
14 years agoThanks you dsl. I have managed to save two Pixel Buffers on the SRAM. I don't know what I was doing wrong at the first time, but it works for now.
But there is a strange thing about it. When i draw a pixel to place 0,0, my screen get corrupted. Not a big deal, cause I can use the rest of all other pixels. The next problem to solve is also an strange one; explanation: I have now two Pixel buffers. Pixel buffer one I draw a red block, pixel buffer two I draw a green block. I can switch these two images by using the Alpa Blending Mixer control port in NIOS; it works like a charm. The input is 24-bit RGB (RGB resampler between the pixel buffer > blending mixer). Next step: I set the resampler to 32-bit RGBA, and make the opacity level 50% (128), and split the color planes with Color Sequencer to two streams (RGB and Alpha stream). I'm doing this with both Pixel Buffer streams. So I get two RGB streams, and two Alpha streams. If I connect these to the Alpa Blending Mixer, nothing appears on the screen, even if I enable both layers in NIOS. At the outputs of the Color Sequencer I use small FIFO buffers (Avalon-ST Single Clock FIFO) with the parameters: Symbols: 3, Bits: 8, Depth: 16, Channel Width: 0, Error Width: 0 , and Use Packets selected. What is the problem? Thanks