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

✨ add optional XIP cache #799

Merged
merged 12 commits into from
Feb 9, 2024
Merged

✨ add optional XIP cache #799

merged 12 commits into from
Feb 9, 2024

Conversation

stnolting
Copy link
Owner

As discussed in #793 this PR adds an optional and configurable cache to the XIP module. A new set of top generics if provided to configure it:

 -- Execute in-place module (XIP) --
 XIP_EN               : boolean                  := false; -- implement execute in place module (XIP)?
 XIP_CACHE_EN         : boolean                  := false; -- implement XIP cache?
 XIP_CACHE_NUM_BLOCKS : natural range 1 to 256   := 8;     -- number of blocks (min 1), has to be a power of 2
 XIP_CACHE_BLOCK_SIZE : natural range 1 to 2**16 := 256;   -- block size in bytes (min 4), has to be a power of 2

The cache is implemented as simple direct-mapped read-only cache.

@stnolting stnolting added enhancement New feature or request HW hardware-related labels Feb 9, 2024
@stnolting stnolting self-assigned this Feb 9, 2024
@stnolting stnolting marked this pull request as ready for review February 9, 2024 14:22
@stnolting stnolting merged commit 48566cd into main Feb 9, 2024
8 checks passed
@stnolting stnolting deleted the xip_cache branch February 9, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request HW hardware-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant