floorplan: fix coordinate calc for additional pins
@@ -478,8 +478,8 @@ class Floorplan:
if not add_port:
pos = self.pins[pin_name]['ports'][-1]['point']
shape = {
- 'box': [(-width/2 + (x - pos[0]), -height/2 + (y - pos[1])),
- (width/2 + (x - pos[0]), height/2 + (y - pos[1]))],
+ 'box': [(x - pos[0], y - pos[1]),
+ ((x - pos[0]) + width, (y - pos[1]) + height)],
'layer': self.layers[layer]['name']
}
self.pins[pin_name]['ports'][-1]['shapes'].append(shape)
