Header menu logo issie

SymbolReplaceHelpers Module

Functions and values

Function or value Description

addNumberPort pType pNum sym edgeOpt

Full Usage: addNumberPort pType pNum sym edgeOpt

Parameters:
Returns: Symbol

add the port specified by its type and number to the given symbol if edgeOpt is None the port will be added on the same edge as the port with the highest number

pType : PortType
pNum : int
sym : Symbol
edgeOpt : Edge option
Returns: Symbol

addPorts pType pNumList edgeOpt sym

Full Usage: addPorts pType pNumList edgeOpt sym

Parameters:
Returns: Symbol

add the ports specified by the type and the list of port numbers if edgeOpt is None they will be added on the same edge as the port with the highest number

pType : PortType
pNumList : int list
edgeOpt : Edge option
sym : Symbol
Returns: Symbol

changeAdderComponent symModel compId oldComp newCompType

Full Usage: changeAdderComponent symModel compId oldComp newCompType

Parameters:
Returns: Symbol
symModel : Model
compId : ComponentId
oldComp : Component
newCompType : ComponentType
Returns: Symbol

changeBusComparef symModel compId constantVal constantText

Full Usage: changeBusComparef symModel compId constantVal constantText

Parameters:
    symModel : Model
    compId : ComponentId
    constantVal : bigint
    constantText : string

Returns: Symbol

Updates the value of a busCompare1 component and returns the updated symbol

symModel : Model
compId : ComponentId
constantVal : bigint
constantText : string
Returns: Symbol

changeConstantf symModel compId constantVal constantText

Full Usage: changeConstantf symModel compId constantVal constantText

Parameters:
    symModel : Model
    compId : ComponentId
    constantVal : bigint
    constantText : string

Returns: Symbol

Updates the value of a constant1 component and returns the updated symbol

symModel : Model
compId : ComponentId
constantVal : bigint
constantText : string
Returns: Symbol

changeCounterComponent symModel compId oldComp newCompType

Full Usage: changeCounterComponent symModel compId oldComp newCompType

Parameters:
Returns: Symbol
symModel : Model
compId : ComponentId
oldComp : Component
newCompType : ComponentType
Returns: Symbol

changeCustom symModel compId oldComp newCompType

Full Usage: changeCustom symModel compId oldComp newCompType

Parameters:
Returns: Symbol
symModel : Model
compId : ComponentId
oldComp : Component
newCompType : ComponentType
Returns: Symbol

changeGateComponent symModel compId gateType n

Full Usage: changeGateComponent symModel compId gateType n

Parameters:
Returns: Symbol
symModel : Model
compId : ComponentId
gateType : GateComponentType
n : int
Returns: Symbol

changeInputValue symModel compId newVal

Full Usage: changeInputValue symModel compId newVal

Parameters:
Returns: Symbol

This function should be called for Input1 components only. Sets the default value to be used in simulations for an Input1 component if it is not driven.

symModel : Model
compId : ComponentId
newVal : bigint
Returns: Symbol

changeLsbf symModel compId newLsb

Full Usage: changeLsbf symModel compId newLsb

Parameters:
Returns: Symbol

Helper function to change the number of bits expected in the LSB port of BusSelection and BusCompare

symModel : Model
compId : ComponentId
newLsb : bigint
Returns: Symbol

changeMergeNComponent symModel compId numInputs

Full Usage: changeMergeNComponent symModel compId numInputs

Parameters:
Returns: Symbol
symModel : Model
compId : ComponentId
numInputs : int
Returns: Symbol

changeNumberOfBitsf symModel compId newBits

Full Usage: changeNumberOfBitsf symModel compId newBits

Parameters:
Returns: Symbol

Helper function to change the number of bits expected in a port of each component type.

symModel : Model
compId : ComponentId
newBits : int
Returns: Symbol

changeReversedInputs symModel compId

Full Usage: changeReversedInputs symModel compId

Parameters:
Returns: Symbol
symModel : Model
compId : ComponentId
Returns: Symbol

changeSplitNComponent symModel compId numOutputs widths lsbs

Full Usage: changeSplitNComponent symModel compId numOutputs widths lsbs

Parameters:
    symModel : Model
    compId : ComponentId
    numOutputs : int
    widths : int list
    lsbs : int list

Returns: Symbol
symModel : Model
compId : ComponentId
numOutputs : int
widths : int list
lsbs : int list
Returns: Symbol

createNewPort no hostID portType

Full Usage: createNewPort no hostID portType

Parameters:
    no : int
    hostID : string
    portType : PortType

Returns: Port
no : int
hostID : string
portType : PortType
Returns: Port

deleteNumberPort pType pNum sym

Full Usage: deleteNumberPort pType pNum sym

Parameters:
Returns: Symbol

remove the port specified by its type and number from the given symbol

pType : PortType
pNum : int
sym : Symbol
Returns: Symbol

deletePorts pType pNumList sym

Full Usage: deletePorts pType pNumList sym

Parameters:
Returns: Symbol

delete ports specified by the list of port numbers must be in ascending order because otherwise wrong ports will be deleted

pType : PortType
pNumList : int list
sym : Symbol
Returns: Symbol

portNoDown port

Full Usage: portNoDown port

Parameters:
Returns: Port
port : Port
Returns: Port

portNoUp port

Full Usage: portNoUp port

Parameters:
Returns: Port
port : Port
Returns: Port

updateSymPortMaps newPortMaps newInputPorts newOutputPorts sym

Full Usage: updateSymPortMaps newPortMaps newInputPorts newOutputPorts sym

Parameters:
Returns: Symbol
newPortMaps : PortMaps
newInputPorts : Port list
newOutputPorts : Port list
sym : Symbol
Returns: Symbol

varyNumberOfPorts pType numInPorts numOutPorts sym

Full Usage: varyNumberOfPorts pType numInPorts numOutPorts sym

Parameters:
Returns: Symbol

add and remove ports to obtain the given number of input and output ports the ports will be added at the highest index, as well as removed from the end of the port list

pType : PortType
numInPorts : int
numOutPorts : int
sym : Symbol
Returns: Symbol

Type something to start searching.