Skip to content

Update according to latest version of py2hwsw#23

Closed
arturum1 wants to merge 2 commits intoIObundle:mainfrom
arturum1:main
Closed

Update according to latest version of py2hwsw#23
arturum1 wants to merge 2 commits intoIObundle:mainfrom
arturum1:main

Conversation

@arturum1
Copy link
Contributor

@arturum1 arturum1 commented Aug 6, 2025

Related to PR IObundle/py2hwsw#379

@jjts jjts requested review from P-Miranda and Copilot and removed request for Copilot August 6, 2025 19:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the codebase to align with the latest version of py2hwsw, making several formatting and naming consistency changes.

  • Replace single quotes with double quotes for Python dictionary access
  • Update macro name from _SWREG_ADDR_W to _CSRS_ADDR_W
  • Reformat multi-line string expressions for better readability

Comment on lines +71 to 72
fswhdr.write(f"#define {core_prefix}_CSRS_ADDR_W {mkregs_obj.core_addr_w}\n\n")

Copy link

Copilot AI Aug 6, 2025

Choose a reason for hiding this comment

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

The macro name change from _SWREG_ADDR_W to _CSRS_ADDR_W could be a breaking change for existing code that depends on this header file. Ensure that all consumers of this generated header are updated to use the new macro name.

Suggested change
fswhdr.write(f"#define {core_prefix}_CSRS_ADDR_W {mkregs_obj.core_addr_w}\n\n")
fswhdr.write(f"#define {core_prefix}_CSRS_ADDR_W {mkregs_obj.core_addr_w}\n")
fswhdr.write(f"#define {core_prefix}_SWREG_ADDR_W {core_prefix}_CSRS_ADDR_W\n\n")

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@P-Miranda P-Miranda left a comment

Choose a reason for hiding this comment

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

Updated CI workflow to atempt docker container and image removal before build.
Check #24

@arturum1
Copy link
Contributor Author

arturum1 commented Aug 7, 2025

Changes included in #24

@arturum1 arturum1 closed this Aug 7, 2025
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