diff --git a/compiler/pgates/ptx.py b/compiler/pgates/ptx.py index 07d04028..eb50e6df 100644 --- a/compiler/pgates/ptx.py +++ b/compiler/pgates/ptx.py @@ -68,12 +68,12 @@ class ptx(design.design): # Just make a guess since these will actually be decided in the layout later. area_sd = 2.5*drc("minwidth_poly")*self.tx_width perimeter_sd = 2*drc("minwidth_poly") + 2*self.tx_width - self.spice_device="M{{0}} {{1}} {0} m={1} w={2}u l={3}u pd={4}u ps={4}u as={5}p ad={5}p".format(spice[self.tx_type], - self.mults, - self.tx_width, - drc("minwidth_poly"), - perimeter_sd, - area_sd) + self.spice_device="M{{0}} {{1}} {0} m={1} w={2}u l={3}u pd={4:.2f}u ps={4:.2f}u as={5:.2f}p ad={5:.2f}p".format(spice[self.tx_type], + self.mults, + self.tx_width, + drc("minwidth_poly"), + perimeter_sd, + area_sd) self.spice.append("\n* ptx " + self.spice_device) # self.spice.append(".ENDS {0}".format(self.name))