Package ru.ispras.verilog.parser.model
Class VerilogInstantiation
- java.lang.Object
-
- ru.ispras.verilog.parser.core.AbstractSymbolTable<Tag>
-
- ru.ispras.verilog.parser.core.AbstractNode<VerilogNode.Tag>
-
- ru.ispras.verilog.parser.model.VerilogNode
-
- ru.ispras.verilog.parser.model.VerilogInstantiation
-
public final class VerilogInstantiation extends VerilogNode
VerilogInstantiation
represents module instantiations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ru.ispras.verilog.parser.model.VerilogNode
VerilogNode.Tag
-
Nested classes/interfaces inherited from class ru.ispras.verilog.parser.core.AbstractNode
AbstractNode.NodeKind
-
-
Field Summary
Fields Modifier and Type Field Description static VerilogNode.Tag
TAG
static java.util.EnumSet<VerilogNode.Tag>
TAGS_CHILDREN
-
Constructor Summary
Constructors Constructor Description VerilogInstantiation(VerilogInstantiation other, VerilogNode parent)
Creates a copy of the instantiation.VerilogInstantiation(VerilogNode parent)
Creates an instantiation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConnection(VerilogPortConnection connection)
Adds a port connection to the instance.void
addParameter(VerilogAssignment assignment)
Adds the parameter definition to the instance.VerilogInstantiation
clone()
Clones the symbol table.VerilogModule
getDeclaration()
Returns the module declaration.VerilogDelay
getDelay()
Returns the delay of the instance's port connections.java.lang.String
getModuleName()
Returns the module name of the instance.VerilogRange
getRange()
Returns the range of the instantiation array.VerilogStrength
getStrength()
Returns the strength of the instance's port connections.void
setDeclaration(VerilogModule declaration)
Sets the module declaration.void
setDelay(VerilogDelay delay)
Sets the delay of the instance's port connections.void
setModuleName(java.lang.String module)
void
setRange(VerilogRange range)
Sets the range of the instantiation array.void
setStrength(VerilogStrength strength)
Sets the strength of the instance's port connections.-
Methods inherited from class ru.ispras.verilog.parser.model.VerilogNode
getAttributes, getParentNode, isActivity, isAssertionStatement, isAssign, isAssignment, isAssignStatement, isAttribute, isBlockGenerate, isBlockStatement, isCaseGenerate, isCaseGenerateItem, isCaseStatement, isCaseStatementItem, isCode, isConnection, isDeclaration, isDelayedStatement, isDisableStatement, isGenerate, isIfGenerate, isIfGenerateBranch, isIfStatement, isIfStatementBranch, isInstantiation, isLoopGenerate, isLoopStatement, isModule, isNullStatement, isPathDeclaration, isPort, isPortConnection, isProcedure, isPropertyDeclaration, isPulseStyle, isSequenceDeclaration, isShowCancelled, isSpecify, isSvaPort, isTable, isTableEntry, isTaskStatement, isTriggerStatement, isWaitStatement, setAttributes, union
-
Methods inherited from class ru.ispras.verilog.parser.core.AbstractNode
add, find, getFullName, getName, getParent, getTag, hasName, hasScope, isTransparent, items, items, items, remove, replace, setName, setParent, setRedefinitionHandler, setTag, toString
-
Methods inherited from class ru.ispras.verilog.parser.core.AbstractSymbolTable
addAll, findAroundRecursively, findAroundRecursively, findRecursively, findRecursively, getUpperTable, items, items, setUpperTable
-
-
-
-
Field Detail
-
TAG
public static final VerilogNode.Tag TAG
-
TAGS_CHILDREN
public static final java.util.EnumSet<VerilogNode.Tag> TAGS_CHILDREN
-
-
Constructor Detail
-
VerilogInstantiation
public VerilogInstantiation(VerilogNode parent)
Creates an instantiation.- Parameters:
parent
- the parent node.
-
VerilogInstantiation
public VerilogInstantiation(VerilogInstantiation other, VerilogNode parent)
Creates a copy of the instantiation.- Parameters:
other
- the instantiation to be copied.parent
- the parent node.
-
-
Method Detail
-
getModuleName
public java.lang.String getModuleName()
Returns the module name of the instance.- Returns:
- the module name.
-
setModuleName
public void setModuleName(java.lang.String module)
-
getDelay
public VerilogDelay getDelay()
Returns the delay of the instance's port connections.- Returns:
- the delay.
-
setDelay
public void setDelay(VerilogDelay delay)
Sets the delay of the instance's port connections.- Parameters:
delay
- the delay to be set.
-
getStrength
public VerilogStrength getStrength()
Returns the strength of the instance's port connections.- Returns:
- the strength.
-
setStrength
public void setStrength(VerilogStrength strength)
Sets the strength of the instance's port connections.- Parameters:
strength
- the strength to be set.
-
getRange
public VerilogRange getRange()
Returns the range of the instantiation array.- Returns:
- the range.
-
setRange
public void setRange(VerilogRange range)
Sets the range of the instantiation array.- Parameters:
range
- the range to be set.
-
addParameter
public void addParameter(VerilogAssignment assignment)
Adds the parameter definition to the instance.- Parameters:
assignment
- the parameter definition.
-
addConnection
public void addConnection(VerilogPortConnection connection)
Adds a port connection to the instance.- Parameters:
connection
- the port connection.
-
getDeclaration
public VerilogModule getDeclaration()
Returns the module declaration.- Returns:
- the module declaration.
-
setDeclaration
public void setDeclaration(VerilogModule declaration)
Sets the module declaration.- Parameters:
declaration
- the module declaration to be set.
-
clone
public VerilogInstantiation clone()
Description copied from class:AbstractSymbolTable
Clones the symbol table.- Specified by:
clone
in classVerilogNode
- Returns:
- a copy of the symbol table.
-
-