Skip to content

Improve GPIO default direction reset behavior - #39

Open
Anubhav-30 wants to merge 1 commit into
riscv-mcu:masterfrom
Anubhav-30:gpio-reset-default
Open

Improve GPIO default direction reset behavior#39
Anubhav-30 wants to merge 1 commit into
riscv-mcu:masterfrom
Anubhav-30:gpio-reset-default

Conversation

@Anubhav-30

Copy link
Copy Markdown

This PR improves the default reset behavior of the GPIO peripheral in the e203_hbirdv2 design.

Changes included:

  • Updated the default value of r_gpio_dir in apb_gpio.v
  • Lower 16 GPIO pins are configured as output by default (32'h0000FFFF)
  • Upper 16 GPIO pins remain as input

Motivation:

  • Provides a more practical default configuration for GPIO usage
  • Aligns with common SoC designs where some pins are output-enabled after reset
  • Improves usability without requiring immediate software configuration

Impact:

  • No changes to existing APB interface or functionality
  • Fully backward compatible
  • Only affects initial reset state of GPIO direction

Notes:

  • No modifications were made to other registers or logic
  • Change is limited to reset initialization only

Tested via simulation to ensure no unintended behavior changes.

@Anubhav-30

Copy link
Copy Markdown
Author
  • Verified that only the reset default value is changed.
  • No impact on existing GPIO functionality or APB interface.

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.

1 participant