PSP Model card

Model card class for a PSP compact model instance.

class DMT.psp.mc_psp.McPsp(load_model_from_path=None, version=1.0, default_circuit='common_source', __McPsp__=Version(major=1, minor=0, patch=0, prerelease=None, build=None), parameter_entry_level='full', **kwargs)[source]

Bases: MCard

Holds all model parameters of the PSP model.

Parameters:
va_filestr, optional

Path to a PSP Verilog-AMS file

load_model_from_pathstr, optional

Initialise the modelcard with the parameter from the given file path.

versionfloat, optional

Version of the model card.

get_binning_modelcard()[source]

Retruns a modelcard with only the parameters valid for the binning model. No value is changed except SWGEO is set to 2!

get_circuit()[source]

The psp model has some default circuits.

get_global_modelcard()[source]

Retruns a modelcard with only the parameters valid for the global model. No value is changed except SWGEO is set to 1!

get_instance_modelcard()[source]

Retruns a modelcard with only the parameters valid for the binning model. No value is changed except SWGEO is set to 2!

get_local_modelcard(dut: DutView | None = None, calculate: bool = False, verbose: bool = False)[source]

Returns a modelcard with only the parameters valid for the local model.

Parameters:
calculatebool

If False, no value is changed except SWGEO is set to 0! If True, The values are tried to calculate using the Verilog-A equations. This is sensitive to the code and must have the retrieve flag at all necessary equations.

verbose: bool

If True, all missing functions will be reported.

info_json(**kwargs)[source]

Returns a dict with serializeable content for the json file to create. Add the info about the concrete subclass to create here!