Skip to content

Commit 954faff

Browse files
committed
Fix Quad/PGA package names
1 parent 10614d7 commit 954faff

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
@@ -379,7 +379,7 @@ def heartbeat(self) -> Dict[int, Pin]:
379379
return {0: (_Side.S, 1)} # South side, pin 1
380380

381381

382-
class _QuadPackageDef(_BasePackageDef):
382+
class _PGAPackageDef(_BasePackageDef):
383383
"""Definiton of a PGA package with `size` pins
384384
385385
This is package with `size` pins, numbered, with the assumption that adjacent pins
@@ -404,9 +404,9 @@ def pins(self) -> PinSet:
404404

405405
def allocate(self, available: Set[str], width: int) -> List[str]:
406406
avail_n = sorted(available)
407-
logger.debug(f"QuadPackageDef.allocate {width} from {len(avail_n)} remaining: {available}")
407+
logger.debug(f"PGAPackageDef.allocate {width} from {len(avail_n)} remaining: {available}")
408408
ret = _find_contiguous_sequence(self._ordered_pins, avail_n, width)
409-
logger.debug(f"QuadPackageDef.returned {ret}")
409+
logger.debug(f"PGAPackageDef.returned {ret}")
410410
assert len(ret) == width
411411
return ret
412412

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

473473
# Add any new package types to both PACKAGE_DEFINITIONS and the PackageDef union
474474
PACKAGE_DEFINITIONS = {
475-
"pga144": _QuadPackageDef(name="pga144", width=36, height=36),
475+
"pga144": _PGAPackageDef(name="pga144", width=36, height=36),
476476
"cf20": _BareDiePackageDef(name="cf20", width=7, height=3)
477477
}
478478

479-
PackageDef = Union[_QuadPackageDef, _BareDiePackageDef, _BasePackageDef]
479+
PackageDef = Union[_PGAPackageDef, _BareDiePackageDef, _BasePackageDef]
480480

481481

482482
class Port(pydantic.BaseModel):

0 commit comments

Comments
 (0)