Skip to content

Commit

Permalink
Merge pull request efabless#6 from klayoutmatthias/fix-klayout-issue-…
Browse files Browse the repository at this point in the history
…1096

Don't use array dimensions zero for CellInstArray
  • Loading branch information
atorkmabrains authored Jun 28, 2022
2 parents 17c411b + c259bbd commit 0b909ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sky130_tech/tech/sky130/pymacros/sky130_pcells/pmos18.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def produce_impl(self):
upper_connection = pya.CellInstArray(up_gate_connection.cell_index(), pya.Trans(pya.Point(shift_distance, 0)),
pya.Vector(up_iteration_distance, 0),
pya.Vector(iteration_distance_group, 0), up_iteration,
nf / self.n - math.ceil(nf / (2 * self.n)))
max(1, nf / self.n - math.ceil(nf / (2 * self.n))))
nmos_cell.insert(upper_connection)

# fingers = pya.CellInstArray(gate_cell.cell_index(), pya.Trans(pya.Point(0, 0)),
Expand All @@ -499,7 +499,7 @@ def produce_impl(self):
pya.Trans(pya.Point(0, 0)),
pya.Vector(diffusion_width_big + channel_length, 0),
pya.Vector(0, 0),
nf + 1, 0)
nf + 1, 1)
nmos_cell.insert(licon_between_fingers_arr)

# mcon_diff_sides_arr = pya.CellInstArray(mcon_tran_sides_cell.cell_index(),
Expand All @@ -515,7 +515,7 @@ def produce_impl(self):

multiple_transistors = pya.CellInstArray(nmos_cell.cell_index(), pya.Trans(pya.Point(0, 0)),
pya.Vector(diffusion_total_width + 2 * npsdm_enc_diff + npsdm_spc, 0),
pya.Vector(0, 0), multipliers, 0)
pya.Vector(0, 0), multipliers, 1)

self.cell.insert(multiple_transistors)

Expand Down

0 comments on commit 0b909ae

Please sign in to comment.