SignalIntegrity  1.5.0
Signal Integrity Tools in Python
Public Member Functions | List of all members
DUTSParametersNumericParser Class Reference

generates s-parameters of a DUT from a network analyzer model netlist More...

Inheritance diagram for DUTSParametersNumericParser:
Collaboration diagram for DUTSParametersNumericParser:

Public Member Functions

def __init__ (self, f=None, args=None, callback=None, cacheFileName=None, Z0=50.)
 constructor
frequencies may be provided at construction time (or not for symbolic solutions). More...
 
def HashValue (self, stuffToHash='')
 Generates the hash for a definition. More...
 
def SParameters (self, solvetype='block')
 Compute the s-parameters of the DUT in a network analyzer simulation netlist. More...
 
- Public Member Functions inherited from SystemSParametersNumericParser
def __init__ (self, f=None, args=None, callback=None, cacheFileName=None, efl=None, Z0=50.)
 constructor
frequencies may be provided at construction time (or not for symbolic solutions). More...
 
- Public Member Functions inherited from SystemDescriptionParser
def __init__ (self, f=None, args=None, Z0=50.)
 Constructor
frequencies may be provided at construction time (or not for symbolic solutions). More...
 
def SystemDescription (self)
 calculates and gets the system description More...
 
def AddKnownDevices (self, known)
 adds a dictionary of known devices More...
 
def AddLine (self, line)
 adds a single line of a netlist More...
 
def AddLines (self, lines)
 adds a list of lines of a netlist More...
 
- Public Member Functions inherited from ParserFile
def File (self, name)
 reads a netlist from a file More...
 
def WriteToFile (self, name, overWrite=True)
 writes a netlist to a file More...
 
- Public Member Functions inherited from ParserArgs
def AssignArguments (self, args)
 assigns arguments More...
 
def ReplaceArgs (self, lineList)
 replaces arguments in a line list with the actual values More...
 
def ProcessVariables (self, lineList)
 processes lines insofar as arguments are concerned. More...
 
- Public Member Functions inherited from CallBacker
def __init__ (self, callback=None)
 Constructor. More...
 
def CallBack (self, progressPercent)
 This function is called periodically, which in turn calls any installed callback function. More...
 
def InstallCallback (self, callback=None)
 This is an alternate way to supply the callback, if it cannot be installed during initialization of the derived class. More...
 
def RemoveCallback (self)
 Removes any callback previously installed.
 
- Public Member Functions inherited from LinesCache
def __init__ (self, name, filename=None)
 constructor
When a project with a given filename is processed, various results in that project can be cached. More...
 
def CheckTimes (self, cacheFilename)
 Checks the times for files associated with a netlist. More...
 
- Public Member Functions inherited from ResultsCache
def CheckCache (self)
 Called to see if the cache has results that can be used instead of processing the result. More...
 
def CacheResult (self, keeperList=None)
 Caches a calculated result. More...
 

Additional Inherited Members

- Static Public Attributes inherited from SystemDescriptionParser
bool MultiPortTee = False
 

Detailed Description

generates s-parameters of a DUT from a network analyzer model netlist

Definition at line 29 of file DUTSParametersNumericParser.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  f = None,
  args = None,
  callback = None,
  cacheFileName = None,
  Z0 = 50. 
)

constructor
frequencies may be provided at construction time (or not for symbolic solutions).

Parameters
f(optional) list of frequencies
args(optional) string arguments for the circuit.
callback(optional) function taking one argument as a callback
cacheFileName(optional) string name of file used to cache results
Z0float (optional, defaults to 50.) reference impedance for the calculation
Remarks
Arguments are provided on a line as pairs of names and values separated by a space.
The optional callback is used as described in the class CallBacker.
The use of the cacheFileName is described in the class LineCache

Definition at line 42 of file DUTSParametersNumericParser.py.

Member Function Documentation

◆ HashValue()

def HashValue (   self,
  stuffToHash = '' 
)

Generates the hash for a definition.


It is formed by hashing the port connection with whatever else is hashed.

Parameters
stuffToHashrepr of stuff to hash
Remarks
derived classes should override this method and call the base class HashValue with their stuff added
Returns
integer hash value

Reimplemented from LinesCache.

Definition at line 53 of file DUTSParametersNumericParser.py.

◆ SParameters()

def SParameters (   self,
  solvetype = 'block' 
)

Compute the s-parameters of the DUT in a network analyzer simulation netlist.

Parameters
solvetype(optional) string how to solve it. (defaults to 'block').
Returns
instance of class SParameters as the solution of the network.
Remarks
valid solvetype strings are:
  • 'block' - use the block matrix solution method.
  • 'direct' - use the direct method.
    'block' is faster and preferred, but direct is provided as an alternative and for testing. (Previously, instances were found where the block method failed, but the direct method did not - but this possibility is thought to be impossible now.

Reimplemented from SystemSParametersNumericParser.

Definition at line 117 of file DUTSParametersNumericParser.py.


The documentation for this class was generated from the following file: