Skip to content

Commit ef94a3e

Browse files
committed
Debug power pins
1 parent c316237 commit ef94a3e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

chipflow_lib/platforms/_openframe.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
import logging
2+
13
from typing import List, NamedTuple, Optional, Literal
24

35
from ._utils import Voltage, PowerPins, LinearAllocPackageDef, BringupPins
46

7+
8+
logger = logging.getLogger(__name__)
9+
10+
511
class OFPin(NamedTuple):
612
pin: int
713
kind: str
@@ -108,8 +114,9 @@ def model_post_init(self, __context):
108114
@property
109115
def _core_power(self) -> List[PowerPins]:
110116
pps = []
111-
117+
logger.debug("Getting core power pins")
112118
for power, ground in OF_CORE_POWER:
119+
logger.debug(f" adding {power}, {ground}")
113120
pp = PowerPins(power=power, ground=ground, voltage=power.voltage)
114121
pps.append(pp)
115122

chipflow_lib/platforms/_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,7 @@ def _allocate_bringup(self, config: 'Config') -> Component:
665665
port_name='heartbeat',
666666
iomodel=IOModel(width=1, direction=io.Direction.Output, clock_domain="sync")
667667
)
668+
fir
668669
#TODO: JTAG
669670
return {'bringup_pins': d}
670671

0 commit comments

Comments
 (0)