Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions apycula/chipdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1807,16 +1807,8 @@ def create_segments(dev, device):
if (b_row, s_col, seg['bottom_gate_wire'][1]) in dev_desc['reserved_wires']:
seg['bottom_gate_wire'][1] = None

# remove isolated segments (these are in the DSP area of -9, -9C, -18, -18C)
if (not seg['top_gate_wire'][0] and not seg['top_gate_wire'][1]
and not seg['bottom_gate_wire'][0] and not seg['bottom_gate_wire'][1]):
del dev.segments[(top_gate_row, s_col, seg_idx)]

# new segment i + 1
seg_idx += 4
# XXX 6 and 7 need static DCS, disable for now
if seg_idx in [6, 7]:
continue
seg_1 = dev.segments.setdefault((top_gate_row, s_col, seg_idx), {})
# controlled area
seg_1['min_x'] = seg['min_x']
Expand Down Expand Up @@ -1850,6 +1842,10 @@ def create_segments(dev, device):
seg_1['bottom_gate_wire'][1] = None

# remove isolated segments (these are in the DSP area of -9, -9C, -18, -18C)
if (not seg['top_gate_wire'][0] and not seg['top_gate_wire'][1]
and not seg['bottom_gate_wire'][0] and not seg['bottom_gate_wire'][1]):
del dev.segments[(top_gate_row, s_col, seg_idx - 4)]

if (not seg_1['top_gate_wire'][0] and not seg_1['top_gate_wire'][1]
and not seg_1['bottom_gate_wire'][0] and not seg_1['bottom_gate_wire'][1]):
del dev.segments[(top_gate_row, s_col, seg_idx)]
Expand Down
Loading