Skip to content

Conversation

@robtaylor
Copy link
Contributor

Summary

Migrates all imports from the deprecated chipflow_lib package name to the new chipflow package name, following the package rename in chipflow-lib (commit affc32b6, October 2025).

This update ensures the examples use the current standard API while maintaining compatibility with the latest chipflow-lib.

Changes

API Migration:

  • chipflow_lib.platformschipflow.platform
  • chipflow_lib.steps.*chipflow.platform (step classes)
  • chipflow_lib.configchipflow.config
  • chipflow_libchipflow (exceptions like ChipFlowError)

Files Updated:

minimal/ (4 files):

  • design/design.py - Platform imports
  • design/steps/board.py - BoardStep import
  • design/steps/software.py - SoftwareStep import
  • design/software/doit_build.py - Config import

mcu_soc/ (7 files):

  • design/design.py - Platform imports
  • design/steps/board.py - BoardStep import
  • design/steps/software.py - SoftwareStep import
  • design/steps/sim.py - SimStep, ChipFlowError, and resource imports
  • design/software/doit_build.py - Config import
  • design/ips/pwm.py - IO signature imports
  • design/ips/pdm.py - IO signature imports

Testing

✅ Code passes linter: pdm lint shows no issues in updated directories
✅ All imports use the current API structure

🤖 Generated with Claude Code

robtaylor and others added 2 commits November 12, 2025 20:10
Update all imports to use the new chipflow package name instead of
the deprecated chipflow_lib name. This follows the package rename
that occurred in chipflow-lib (commit affc32b, Oct 2025).

Changes:
- chipflow_lib.platforms → chipflow.platform
- chipflow_lib.steps.* → chipflow.platform
- chipflow_lib.config → chipflow.config
- chipflow_lib → chipflow (for exceptions)

All imports have been updated across both minimal and mcu_soc examples,
including design files, step implementations, and custom IP peripherals.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@robtaylor robtaylor merged commit 7f6b86b into main Nov 12, 2025
3 of 4 checks passed
@robtaylor robtaylor deleted the upgrade-to-chipflow-api branch November 12, 2025 20:26
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