Class VerilogBlockStatement


  • public final class VerilogBlockStatement
    extends VerilogStatement
    VerilogBlockStatement represents block statements.

    There are the following block types:

    • begin (sequential block);
    • fork (parallel block).
    • Constructor Detail

      • VerilogBlockStatement

        public VerilogBlockStatement​(VerilogNode parent)
        Creates a block statement.
        Parameters:
        parent - the parent node.
      • VerilogBlockStatement

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

      • getType

        public VerilogBlockStatement.Type getType()
        Returns the type of the block statement (BEGIN or FORK).
        Returns:
        the type of the block statement.
      • setType

        public void setType​(VerilogBlockStatement.Type type)
        Sets the type of the block statement.
        Parameters:
        type - the type to be set.
      • isBegin

        public boolean isBegin()
        Checks whether the statement BEGIN.
        Returns:
        true iff the statement is BEGIN.
      • isFork

        public boolean isFork()
        Checks whether the statement FORK.
        Returns:
        true iff the statement is FORK.
      • setBegin

        public void setBegin()
        Sets the type of the statement to BEGIN.
      • setFork

        public void setFork()
        Sets the type of the statement to FORK.