Multiplicity is already available through the
$mfactor hierarchical system parameter in Verilog-A. Some simulators support aliasing the
$mfactor, i.e.
Code: (* desc="Number of devices in parallel.", units="" *)
aliasparam m = $mfactor;
You can just use the
$mfactor as any other (instance) parameter in the instantiation of the Verilog-A model in your netlist.
Cheers,
Marq