Skip to content

Commit 4695433

Browse files
committed
Fixed port_name written as None to pins.lock when PinSignature used directly.
1 parent d77cd89 commit 4695433

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

chipflow_lib/pin_lock.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ def count_member_pins(name: str, member: Dict[str, Any]) -> int:
4343
def allocate_pins(name: str, member: Dict[str, Any], pins: List[str], port_name: str = None) -> Tuple[Dict[str, Port], List[str]]:
4444
"Allocate pins based of Amaranth member metadata"
4545

46+
if port_name is None:
47+
port_name = name
48+
4649
pin_map = {}
4750

4851
logger.debug(f"allocate_pins: name={name}, pins={pins}")

0 commit comments

Comments
 (0)