Class VerilogIfGenerateBranch

    • Constructor Detail

      • VerilogIfGenerateBranch

        public VerilogIfGenerateBranch​(VerilogNode parent)
        Creates an if generate branch.
        Parameters:
        parent - the node parent.
      • VerilogIfGenerateBranch

        public VerilogIfGenerateBranch​(VerilogIfGenerateBranch other,
                                       VerilogNode parent)
        Creates a copy of the if generate branch.
        Parameters:
        other - the if generate branch to be copied.
        parent - the parent node.
    • Method Detail

      • isThen

        public boolean isThen()
        Checks whether the branch is THEN.
        Returns:
        true iff the branch is THEN.
      • isElse

        public boolean isElse()
        Checks whether the branch is ELSE.
        Returns:
        true iff the branch is ELSE.
      • setThen

        public void setThen()
        Sets the branch type to THEN.
      • setElse

        public void setElse()
        Sets the branch type to ELSE.
      • getGenerate

        public VerilogBlockGenerate getGenerate()
        Returns the branch body.
        Returns:
        the branch body.
      • setGenerate

        public void setGenerate​(VerilogBlockGenerate generate)
        Sets the branch body.
        Parameters:
        generate - the branch body.
      • getExpression

        public VerilogExpression getExpression()
        Returns the condition associated with the branch.
        Returns:
        the branch condition.