Skip to content

Conversation

@pavelvkozlov
Copy link
Collaborator

Update dec_size computation to correctly set upper address bits for 40-bit address space support. Previous formula:

    dec_size = ~(size - 1) >> 12;

ignored bits [39:32], causing incorrect address matching and routing issues when high address bits differ from zero.

Fix by OR-ing with 0xFF00000 as per NPX memory map guidelines:

    dec_size = (~(size - 1) >> 12) | 0xFF00000;

This change applies only to decoder size configuration.

Update dec_size computation to correctly set upper address bits for
40-bit address space support. Previous formula:

    dec_size = ~(size - 1) >> 12;

ignored bits [39:32], causing incorrect address matching and routing
issues when high address bits differ from zero.

Fix by OR-ing with 0xFF00000 as per NPX memory map guidelines:

    dec_size = (~(size - 1) >> 12) | 0xFF00000;

This change applies only to decoder size configuration.

Signed-off-by: Pavel Kozlov <pavel.kozlov@synopsys.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants