<@U016EM8L91B> I'm having trouble with circuit ext...
# magic
a
@Tim Edwards I'm having trouble with circuit extraction a bit. I defined a type named "resistor" and a contact type "resistorcontact" which connect "resistor" and "metal1". And my "extract" section is defined as in the screenshot. In the connect section, if I connect "resistorcontact" and "resistor", the extraction always goes wrong saying "connecting remainder to node active_n9_n3#", seems like it can't recognize that there are 2 terminals of resistorcontact. Am I defining anything wrong here? Thank you for your time reading this!
t
I think there are two problems here: First is that you are making an electrical connection through the resistor in your "connect" line. For resistors and other devices, you want to keep the "resistor" layer unconnected from its contacts. Otherwise, both terminals are on the same net and magic can't identify the individual terminals. The second problem is that you have a poorly defined resistor area. Your resistor wraps around the contacts, which makes it very hard for the extractor to determine where the resistor actually is. The way such resistors are usually defined is to define a resistor area that is rectangular and stops at the contacts. Assuming this is a diffusion resistor (if it's poly, same thing applies, anyway), you would want to paint "resistor" in the middle, up to the contacts, and paint "diffusion" around the contact. In that case you'd probably not want to define a resistor contact but just define a diffusion contact.
The line in "connect" is what causes the extraction error, though.
a
this should fix the second problem right? or should the contacts be larger than the width of the resistor
t
contacts sized to the resistor width is fine.
a
for the connectivity issue, I don't quite understand, does the "resistorcontact"s not act as vias which connects the resistor to the metal layer? doesn't that mean signals pass through and they are electrically connected?
t
Yes, but if you connect "resistor" to "resistorcontact", then you have a single connected (shorted) net across the resistor. By not having the connection, then "resistor" is not itself a net, but is the device, and the two contacts are not shorted and can be identified as the two terminals of the device.
a
i see, thank you for the confirmation and the prompt response!