The current way is somewhat clumsy: For the tolerance you can specify a tolerance this way (put these statements right before compare):
# specifies an absolute tolerance of 0.02 (µm) for the L parameter of "P250_1V8" devices:
netlist.device_class_by_name("P250_1V8").equal_parameters = RBA::EqualDeviceParameters::new(RBA::DeviceClassMOS4Transistor::PARAM_L, 0.02, 0.0)
For a resistor that would be (assuming "RES" is the device name) for a 100 Ohm tolerance:
The first argument to "RBA::EqualDeviceParameters::new" is the parameter ID, the second the absolute tolerance and the third is the relative tolerance (whichever is larger). So to give it a 1% tolerance for the resistance you can use:
The current way is somewhat clumsy: For the tolerance you can specify a tolerance this way (put these statements right before compare):
For a resistor that would be (assuming "RES" is the device name) for a 100 Ohm tolerance:
The first argument to "RBA::EqualDeviceParameters::new" is the parameter ID, the second the absolute tolerance and the third is the relative tolerance (whichever is larger). So to give it a 1% tolerance for the resistance you can use:
If you want to specify a tolerance for two parameters, combine the tolerance specs with "+":
which gives L a 20nm and W a 10nm tolerance.
Leaner notation
An imperative, leaner style was:
with the general scheme:
The text was updated successfully, but these errors were encountered: