Class VerilogAssignStatement


  • public final class VerilogAssignStatement
    extends VerilogStatement
    VerilogAssignment represents assignment statements.

    There are the following assignment statements:

    • = (blocking);
    • <= (non-blocking);
    • assign;
    • deassign;
    • force;
    • release.
    • Constructor Detail

      • VerilogAssignStatement

        public VerilogAssignStatement​(VerilogNode parent)
        Creates an assignment statement.
        Parameters:
        parent - the node parent.
      • VerilogAssignStatement

        public VerilogAssignStatement​(VerilogAssignStatement other,
                                      VerilogNode parent)
        Creates a copy of the assignment statement.
        Parameters:
        other - the assignment statement to be copied.
        parent - the parent node.
    • Method Detail

      • getType

        public VerilogAssignStatement.Type getType()
        Returns the assignment statement type.
        Returns:
        the assignment statement type.
      • setType

        public void setType​(VerilogAssignStatement.Type type)
        Sets the assignment statement type.
        Parameters:
        type - the type to be set.
      • isBlocking

        public boolean isBlocking()
        Checks whether the statement is BLOCKING.
        Returns:
        true iff the statement is BLOCKING.
      • isNonBlocking

        public boolean isNonBlocking()
        Checks whether the statement is NON_BLOCKING.
        Returns:
        true iff the statement is NON_BLOCKING.
      • isAssign

        public boolean isAssign()
        Checks whether the statement is ASSIGN.
        Overrides:
        isAssign in class VerilogNode
        Returns:
        true iff the statement is ASSIGN.
      • isDeassign

        public boolean isDeassign()
        Checks whether the statement is DEASSIGN.
        Returns:
        true iff the statement is DEASSIGN.
      • isForce

        public boolean isForce()
        Checks whether the statement is FORCE.
        Returns:
        true iff the statement is FORCE.
      • isRelease

        public boolean isRelease()
        Checks whether the statement is RELEASE.
        Returns:
        true iff the statement is RELEASE.
      • setBlocking

        public void setBlocking()
        Sets the type of the statement to BLOCKING.
      • setNonBlocking

        public void setNonBlocking()
        Sets the type of the statement to NON_BLOCKING.
      • setAssign

        public void setAssign()
        Sets the type of the statement to ASSIGN.
      • setDeassign

        public void setDeassign()
        Sets the type of the statement to DEASSIGN.
      • setForce

        public void setForce()
        Sets the type of the statement to FORCE.
      • setRelease

        public void setRelease()
        Sets the type of the statement to RELEASE.
      • getAssignment

        public VerilogAssignment getAssignment()
        Returns the assignment of the statement (the pair of l- and r-values).
        Returns:
        the assignment.
      • setAssignment

        public void setAssignment​(VerilogAssignment assignment)
        Sets the assignment of the statement (the pair of l- and r-values).
        Parameters:
        assignment - the assignment to be set.
      • getEventControl

        public VerilogEventControl getEventControl()
        Returns the control of the statement (the delay or event).
        Returns:
        the control.
      • setEventControl

        public void setEventControl​(VerilogEventControl control)
        Sets the control of the statement (the delay or event).
        Parameters:
        control - the control to be set.