Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colour Index Latency Correction with bitmap_addr #115

Open
WillGreen opened this issue Sep 17, 2022 · 1 comment
Open

Colour Index Latency Correction with bitmap_addr #115

WillGreen opened this issue Sep 17, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@WillGreen
Copy link
Contributor

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 WillGreen added the bug Something isn't working label Sep 17, 2022
@WillGreen WillGreen self-assigned this Oct 16, 2022
@WillGreen
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant