de.upb.hni.vmagic.statement
Class WaitStatement

java.lang.Object
  extended by de.upb.hni.vmagic.VhdlElement
      extended by de.upb.hni.vmagic.LabeledElement
          extended by de.upb.hni.vmagic.statement.SequentialStatement
              extended by de.upb.hni.vmagic.statement.WaitStatement

public class WaitStatement
extends SequentialStatement

Wait statement.

Example:
vMAGIC code:
Signal clk = new Signal("CLK", StdLogic1164.STD_LOGIC);
WaitStatement statement = new WaitStatement(Expressions.risingEdge(clk));
VHDL output:
wait for CLK'EVENT and CLK = '1';

Constructor Summary
WaitStatement()
          Creates a wait statement.
WaitStatement(Expression timeout)
          Creates a wait statement with timeout expression.
WaitStatement(Expression condition, Expression timeout)
          Creates a wait statement with condition and timeout expression.
WaitStatement(java.util.List<Signal> sensitivityList)
          Create a wait statement with a sensitivity list.
WaitStatement(Signal... sensitivityList)
          Create a wait statement with a sensitivity list.
 
Method Summary
 Expression getCondition()
          Returns the condition.
 java.util.List<Signal> getSensitivityList()
          Returns the sensitivity list.
 Expression getTimeout()
          Returns the timeout expression.
 void setCondition(Expression condition)
          Sets the condition.
 void setTimeout(Expression timeout)
          Sets the timeout expression.
 
Methods inherited from class de.upb.hni.vmagic.statement.SequentialStatement
getLabel, setLabel
 
Methods inherited from class de.upb.hni.vmagic.VhdlElement
getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaitStatement

public WaitStatement()
Creates a wait statement.


WaitStatement

public WaitStatement(Signal... sensitivityList)
Create a wait statement with a sensitivity list.

Parameters:
sensitivityList - the sensitivity list

WaitStatement

public WaitStatement(java.util.List<Signal> sensitivityList)
Create a wait statement with a sensitivity list.

Parameters:
sensitivityList - the sensitivity list

WaitStatement

public WaitStatement(Expression timeout)
Creates a wait statement with timeout expression.

Parameters:
timeout - the timeout expression

WaitStatement

public WaitStatement(Expression condition,
                     Expression timeout)
Creates a wait statement with condition and timeout expression.

Parameters:
condition - the condtion
timeout - the timeout expression
Method Detail

getSensitivityList

public java.util.List<Signal> getSensitivityList()
Returns the sensitivity list.

Returns:
a modifiable list of signals

getCondition

public Expression getCondition()
Returns the condition.

Returns:
the condition or null if no condtion is set

setCondition

public void setCondition(Expression condition)
Sets the condition.

Parameters:
condition - the condition or null to remove condition

getTimeout

public Expression getTimeout()
Returns the timeout expression.

Returns:
the timeout expression or null if no timeout is set

setTimeout

public void setTimeout(Expression timeout)
Sets the timeout expression.

Parameters:
timeout - the timeout expression or null to remove timeout