Skip to content

Commit d1b6c81

Browse files
committed
Populate power pins
1 parent d63aa26 commit d1b6c81

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

chipflow_lib/platforms/utils.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,23 @@ def _allocate_bringup(self, config: 'Config') -> Component:
625625
iomodel=IOModel(width=1, direction=io.Direction.Input, clock_domain_o="sync")
626626
)
627627
}
628+
vdd_pins = []
629+
vss_pins = []
630+
for pp in self.bringup_pins.core_power:
631+
vdd_pins.append(pp.ground)
632+
vss_pins.append(pp.power)
633+
634+
d |= {'vdd' : Port(type='vdd',
635+
pins=vss_pins,
636+
port_name="vdd-core",
637+
iomodel=IOModel(width=1, direction=io.Direction.Input)),
638+
'vss' : Port(type='vss',
639+
pins=vdd_pins,
640+
port_name="vss-core",
641+
iomodel=IOModel(width=1, direction=io.Direction.Input))
642+
}
643+
644+
628645
assert config.chipflow.silicon
629646
if config.chipflow.silicon.debug and \
630647
config.chipflow.silicon.debug['heartbeat']:

0 commit comments

Comments
 (0)