Skip to content

Honour instr_storage_offset when generating the HBM image - #9

Merged
GeorgeWu1204 merged 1 commit into
mainfrom
fix/instr-storage-offset
Aug 8, 2026
Merged

GeorgeWu1204 merged 1 commit into
mainfrom
fix/instr-storage-offset

Conversation

@Shreyas8612

Copy link
Copy Markdown
Collaborator

generate_hbm ignored instr_storage_offset

generate_hbm accepted instr_storage_offset and never used it, so the instruction section always landed at offset zero while the core fetched at pc + INSTRUCTION_STORAGE_OFFSET as baked into configuration.svh.

Fix

The writer now pads zero rows up to the offset and fails closed when the offset is not row-aligned or would land inside already-written data.

generate_hbm accepted instr_storage_offset and never used it, so the
instruction section always landed at offset zero while the core fetched at
pc plus the offset baked into configuration.svh.

The writer now pads zero rows up to the offset and fails closed when the
offset is not row-aligned or would land inside written data.
Copilot AI lite review requested due to automatic review settings August 8, 2026 00:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

3 participants