You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deduplicate allocate_pins implementation in package definitions
Move common allocate_pins() implementation from LinearAllocPackageDef
and GAPackageDef to BasePackageDef to eliminate code duplication.
Changes:
- BasePackageDef.allocate_pins(): Now concrete method with common logic
- BasePackageDef._allocate(): New abstract method for allocation strategy
- LinearAllocPackageDef: Removed duplicate allocate_pins(), kept _allocate()
- GAPackageDef: Removed duplicate allocate_pins(), kept _allocate()
- Both subclasses now only implement their specific allocation strategies
The method bodies were identical except for docstrings. Both used
_linear_allocate_components with self._allocate callback and the same
pattern for bringup pins and lockfile creation.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments