Class VerilogIfGenerate

    • Constructor Detail

      • VerilogIfGenerate

        public VerilogIfGenerate​(VerilogNode parent)
        Creates a if-then-else generate construct.
        Parameters:
        parent - the parent node.
      • VerilogIfGenerate

        public VerilogIfGenerate​(VerilogIfGenerate other,
                                 VerilogNode parent)
        Creates a if-then-else generate construct.
        Parameters:
        other - the if-then-else generate construct to be copied.
        parent - the parent node.
    • Method Detail

      • getExpression

        public VerilogExpression getExpression()
        Returns the condition.
        Returns:
        the condition.
      • setExpression

        public void setExpression​(VerilogExpression expression)
        Sets the condition.
        Parameters:
        expression - the condition.
      • getThenGenerate

        public VerilogBlockGenerate getThenGenerate()
        Returns the generate block related to the branch then.
        Returns:
        the then's generate block.
      • setThenGenerate

        public void setThenGenerate​(VerilogBlockGenerate thenGenerate)
        Sets the generate block related to the branch then.
        Parameters:
        thenGenerate - the generate block to be set.
      • getElseGenerate

        public VerilogBlockGenerate getElseGenerate()
        Returns the generate block related to the branch else.
        Returns:
        the else's generate block.
      • setElseGenerate

        public void setElseGenerate​(VerilogBlockGenerate elseGenerate)
        Sets the generate block related to the else branch.
        Parameters:
        elseGenerate - the generate block to be set.