public final class VerilogAssignStatement extends VerilogStatement
VerilogAssignment
represents assignment statements.
There are the following assignment statements:
=
(blocking);<=
(non-blocking);assign
;deassign
;force
;release
.Modifier and Type | Class and Description |
---|---|
static class |
VerilogAssignStatement.Type
VerilogAssignStatement.Type contains the assignment statement types. |
VerilogNode.Tag
AbstractNode.NodeKind
Modifier and Type | Field and Description |
---|---|
static VerilogNode.Tag |
TAG |
static java.util.EnumSet<VerilogNode.Tag> |
TAGS_CHILDREN |
TAGS
Constructor and Description |
---|
VerilogAssignStatement(VerilogAssignStatement other,
VerilogNode parent)
Creates a copy of the assignment statement.
|
VerilogAssignStatement(VerilogNode parent)
Creates an assignment statement.
|
Modifier and Type | Method and Description |
---|---|
VerilogAssignStatement |
clone()
Clones the symbol table.
|
VerilogAssignment |
getAssignment()
Returns the assignment of the statement (the pair of l- and r-values).
|
VerilogEventControl |
getEventControl()
Returns the control of the statement (the delay or event).
|
VerilogAssignStatement.Type |
getType()
Returns the assignment statement type.
|
boolean |
isAssign()
Checks whether the statement is
ASSIGN . |
boolean |
isBlocking()
Checks whether the statement is
BLOCKING . |
boolean |
isDeassign()
Checks whether the statement is
DEASSIGN . |
boolean |
isForce()
Checks whether the statement is
FORCE . |
boolean |
isNonBlocking()
Checks whether the statement is
NON_BLOCKING . |
boolean |
isRelease()
Checks whether the statement is
RELEASE . |
void |
setAssign()
Sets the type of the statement to
ASSIGN . |
void |
setAssignment(VerilogAssignment assignment)
Sets the assignment of the statement (the pair of l- and r-values).
|
void |
setBlocking()
Sets the type of the statement to
BLOCKING . |
void |
setDeassign()
Sets the type of the statement to
DEASSIGN . |
void |
setEventControl(VerilogEventControl control)
Sets the control of the statement (the delay or event).
|
void |
setForce()
Sets the type of the statement to
FORCE . |
void |
setNonBlocking()
Sets the type of the statement to
NON_BLOCKING . |
void |
setRelease()
Sets the type of the statement to
RELEASE . |
void |
setType(VerilogAssignStatement.Type type)
Sets the assignment statement type.
|
getAttributes, getParentNode, isActivity, 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, isPulseStyle, isShowCancelled, isSpecify, isTable, isTableEntry, isTaskStatement, isTriggerStatement, isWaitStatement, setAttributes, union
add, find, getFullName, getName, getParent, getTag, hasName, hasScope, isTransparent, items, items, items, remove, replace, setName, setParent, setRedefinitionHandler, setTag, toString
addAll, findAroundRecursively, findAroundRecursively, findRecursively, findRecursively, getUpperTable, items, items, setUpperTable
public static final VerilogNode.Tag TAG
public static final java.util.EnumSet<VerilogNode.Tag> TAGS_CHILDREN
public VerilogAssignStatement(VerilogNode parent)
parent
- the node parent.public VerilogAssignStatement(VerilogAssignStatement other, VerilogNode parent)
other
- the assignment statement to be copied.parent
- the parent node.public VerilogAssignStatement.Type getType()
public void setType(VerilogAssignStatement.Type type)
type
- the type to be set.public boolean isBlocking()
BLOCKING
.true
iff the statement is BLOCKING
.public boolean isNonBlocking()
NON_BLOCKING
.true
iff the statement is NON_BLOCKING
.public boolean isAssign()
ASSIGN
.isAssign
in class VerilogNode
true
iff the statement is ASSIGN
.public boolean isDeassign()
DEASSIGN
.true
iff the statement is DEASSIGN
.public boolean isForce()
FORCE
.true
iff the statement is FORCE
.public boolean isRelease()
RELEASE
.true
iff the statement is RELEASE
.public void setBlocking()
BLOCKING
.public void setNonBlocking()
NON_BLOCKING
.public void setAssign()
ASSIGN
.public void setDeassign()
DEASSIGN
.public void setForce()
FORCE
.public void setRelease()
RELEASE
.public VerilogAssignment getAssignment()
public void setAssignment(VerilogAssignment assignment)
assignment
- the assignment to be set.public VerilogEventControl getEventControl()
public void setEventControl(VerilogEventControl control)
control
- the control to be set.public VerilogAssignStatement clone()
AbstractSymbolTable
clone
in class VerilogStatement