engine
Class BitSelect

java.lang.Object
  |
  +--engine.Expression
        |
        +--engine.WireSelection
              |
              +--engine.BitSelect
Direct Known Subclasses:
ContBitSelect

class BitSelect
extends WireSelection


Field Summary
(package private)  BitVector b
           
(package private)  int end
           
(package private)  int start
           
(package private)  GenericSelectorDescription target
           
 
Fields inherited from class engine.Expression
length, ns
 
Constructor Summary
(package private) BitSelect(NameSpace ns, BitVector b, GenericSelectorDescription target)
           
(package private) BitSelect(NameSpace ns, BitVector b, GenericSelectorDescription target, int start, int end)
           
 
Method Summary
(package private)  void addMonitor(Monitor m)
           
 void assign(Result r)
           
(package private)  void assign(Result r, byte[] strengths)
           
(package private)  void breakSelection(WireSelection[] bits, int startIndex)
           
 Result evaluate()
           
 int getStrength(int bitIndex)
          Returns the strength that drives this wire.
 void getStrengths(byte[] s, int index)
           
 int length()
           
(package private)  void reatach()
           
(package private)  void release()
           
(package private)  void set(BitVector x, int start, int end)
           
 void setStrengths(byte[] s, int i)
           
 java.lang.String toString()
           
 
Methods inherited from class engine.Expression
isLeftValue
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

start

int start

end

int end

b

BitVector b

target

GenericSelectorDescription target
Constructor Detail

BitSelect

BitSelect(NameSpace ns,
          BitVector b,
          GenericSelectorDescription target)

BitSelect

BitSelect(NameSpace ns,
          BitVector b,
          GenericSelectorDescription target,
          int start,
          int end)
Method Detail

evaluate

public Result evaluate()
                throws InterpretTimeException

length

public int length()

getStrength

public int getStrength(int bitIndex)
                throws java.lang.ClassCastException
Returns the strength that drives this wire.
Throws:
java.lang.ClassCastException - if the BitSelect does not reffer to a wire.
Overrides:
getStrength in class WireSelection
See Also:
WireSelection.getStrength

getStrengths

public void getStrengths(byte[] s,
                         int index)
Overrides:
getStrengths in class WireSelection

setStrengths

public void setStrengths(byte[] s,
                         int i)
Overrides:
setStrengths in class WireSelection

assign

public void assign(Result r)
            throws InterpretTimeException

set

void set(BitVector x,
         int start,
         int end)
   throws InterpretTimeException

assign

void assign(Result r,
            byte[] strengths)
      throws InterpretTimeException

toString

public java.lang.String toString()
Overrides:
toString in class Expression

addMonitor

void addMonitor(Monitor m)
Overrides:
addMonitor in class Expression

release

void release()
Overrides:
release in class WireSelection
See Also:
WireSelection.release

reatach

void reatach()
Overrides:
reatach in class WireSelection
See Also:
WireSelection.reatach

breakSelection

void breakSelection(WireSelection[] bits,
                    int startIndex)
Overrides:
breakSelection in class WireSelection
See Also:
WireSelection.reatach