Ted Johansson
02/11/2024, 6:05 PMTim Edwards
02/12/2024, 3:31 AMsnap int
(short for snap internal
), which gets me on the 5nm grid. Probably the .magicrc file should just set it that way, and then it would stop being an issue.
You can actually move things on the internal grid spacing even when the snap is set higher. move e 1
will move east by one snap position, but move e 1i
will move east one internal unit, ignoring the snap. (Likewise, move e 5nm
will do the same.)
(2) I will need to check this, and an example would be helpful. The "import spice" script is supposed to be re-entrant; that is, you are supposed to be able to read it on top of an existing layout and it should figure out if there are missing devices, and add them, or different port names, and change them, leaving anything else alone. So that's not working as advertised.
(3) There are five characterized widths of resistor devices in sky130; W=0.35um is the narrowest of them (the five widths correspond to an exact number of contacts fitting the width at the terminals with minimum spacing between). Magic enforces L > 0.5um mainly because resistor models become very inaccurate unless L >> W. I could have gone with a reasonable rule of thumb like L > 5*W but I didn't want to be anal retentive about it.
As far as the resistor value: Yes, xschem is giving the value based on sheet rho, while magic is including the terminals. For the terminals, I am not sure where I got the expression I'm using, which is (188 / W), which comes to 537 ohms, but the res_xhigh_po model has a more complicated expression -46.62/(w*w)+331.73/w+20.576
which comes to 587 ohms. That seems quite high to me, too, although I've seen explanations about how the titanium nitride makes very poor contacts. The standard value for poly contacts is given in the documentation as 152 ohms, but that's for the standard square via cut, and the via for the resistors is very long. It seems reasonable to expect that the long via would have a lower resistance than a single minimum-size square via. But that's the equation that's in the characterized model. You can find the exact value by simulation; any value given by either xschem or magic is only a guideline, since the device is parameterized only by W and L.Ted Johansson
02/12/2024, 8:21 AMGS
02/16/2024, 8:10 PMTed Johansson
02/19/2024, 8:12 AM