Shubham Kumar
08/16/2024, 9:23 AMTim Edwards
08/16/2024, 2:27 PMW always equals total width of all fingers (W=nf*fw) not counting any multplier M.
The multiplier is harder to deal with and implementation can differ by foundry. The underlying problem is that M is treated differently from other parameters by ngspice and cannot be used inside model equations. The most common method I've seen (which is done in sky130, for example) is to create a "shadow" parameter called, say, mult, which is always set to the same value as `M`; then the model equation for area becomes mult*W*L .