Skip to content
Snippets Groups Projects
Commit 66427bb5 authored by David Lanzendörfer's avatar David Lanzendörfer
Browse files

Sanitize coordinate

parent 6d8aa359
No related branches found
No related tags found
Loading
...@@ -40,7 +40,7 @@ class StripResistor(LibrePDKStructure): ...@@ -40,7 +40,7 @@ class StripResistor(LibrePDKStructure):
ps = self.config.get_min_width(self.layer) if self.layer == self.contact_to else get_min_viagroup_pad_size(self.config, self.layer, self.contact_to) ps = self.config.get_min_width(self.layer) if self.layer == self.contact_to else get_min_viagroup_pad_size(self.config, self.layer, self.contact_to)
pad = ViaStripe(self.config, self.name+"_CONTACT", self.layer, ps, self.width, self.contact_to, less_vias=True) pad = ViaStripe(self.config, self.name+"_CONTACT", self.layer, ps, self.width, self.contact_to, less_vias=True)
mx = pad.xsize mx = pad.xsize
my = (pad.ysize-r.ysize)/2 my = lph.value_to_grid((pad.ysize-r.ysize)/2)
py = pad.ysize py = pad.ysize
x2 = pad.xsize+r.xsize x2 = pad.xsize+r.xsize
ret << r.move([mx,my]) ret << r.move([mx,my])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment