projf-explore icon indicating copy to clipboard operation
projf-explore copied to clipboard

Colour Index Latency Correction with bitmap_addr

Open WillGreen opened this issue 2 years ago • 1 comments

We use bitmap_addr to calculate the memory address from drawing coordinates. Address calculation requires three cycles, so we delay write enable (we) to match. We need to delay the colour index (cidx) similarly.

Current examples use a single colour for a shape, and the initialisation steps hide this issue. However, this bug is evident when a shape is drawn with multiple colours.

WillGreen avatar Sep 17 '22 15:09 WillGreen

The Sinescroll demo doesn't suffer from this issue and provides a template for a fix. See code under: // delay pixel colour to match address calculation

WillGreen avatar Oct 16 '22 12:10 WillGreen