I'm using a SRAM in order to store a frame that I have to display on screen with the VGA interface. I need to read the pixel value from the SRAM and then send it to the VGA monitor. I have created a SRAM Controller but it takes some clock cycles before the data are available. I don't know how to access to the RAM without exit from the Pixel process.
Here's a simplified part of the code:
process (CLK_25MHZ) begin if (CLK_25MHZ'event and CLK_25MHZ = '1') then if (ACTIVE_VIDEO) then -- This part is repeated for every pixel and I can't exit from this part -- until I have sent the pixel data. If I exit this pixel is lost. -- I need something like this: addr <= CALCULATE_ADDRESS(); VGA_RGB <= READ_RAM(addr); else VGA_RGB <= "000000000000"; end if; -- Here there are the signals timings. end if; end process;