Skip to content

Commit 00f5e36

Browse files
committed
Fix Quad/PGA package names
1 parent 12257ad commit 00f5e36

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

chipflow_lib/platforms/utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def heartbeat(self) -> Dict[int, Pin]:
416416
return {0: (_Side.S, 1)} # South side, pin 1
417417

418418

419-
class _QuadPackageDef(_BasePackageDef):
419+
class _PGAPackageDef(_BasePackageDef):
420420
"""Definiton of a PGA package with `size` pins
421421
422422
This is package with `size` pins, numbered, with the assumption that adjacent pins
@@ -441,9 +441,9 @@ def pins(self) -> PinSet:
441441

442442
def allocate(self, available: Set[str], width: int) -> List[str]:
443443
avail_n = sorted(available)
444-
logger.debug(f"QuadPackageDef.allocate {width} from {len(avail_n)} remaining: {available}")
444+
logger.debug(f"PGAPackageDef.allocate {width} from {len(avail_n)} remaining: {available}")
445445
ret = _find_contiguous_sequence(self._ordered_pins, avail_n, width)
446-
logger.debug(f"QuadPackageDef.returned {ret}")
446+
logger.debug(f"PGAPackageDef.returned {ret}")
447447
assert len(ret) == width
448448
return ret
449449

@@ -509,11 +509,11 @@ def heartbeat(self) -> Dict[int, Pin]:
509509

510510
# Add any new package types to both PACKAGE_DEFINITIONS and the PackageDef union
511511
PACKAGE_DEFINITIONS = {
512-
"pga144": _QuadPackageDef(name="pga144", width=36, height=36),
512+
"pga144": _PGAPackageDef(name="pga144", width=36, height=36),
513513
"cf20": _BareDiePackageDef(name="cf20", width=7, height=3)
514514
}
515515

516-
PackageDef = Union[_QuadPackageDef, _BareDiePackageDef]
516+
PackageDef = Union[_PGAPackageDef, _BareDiePackageDef, _BasePackageDef]
517517

518518
class Port(pydantic.BaseModel):
519519
type: str

0 commit comments

Comments
 (0)