|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hades.utils.LFSR32
a 32-bit linear feedback shift register based on the (31 3 0) polynom. This class provides all methods to realize LFSR-based pseudorandom pattern generators and signature analyzers. The polynom used in this class is "hardcoded" and cannot be changed easily.
Constructor Summary | |
LFSR32()
|
Method Summary | |
void |
clock()
calculate the next state of the LFSR32 register. |
int |
getValue()
|
static void |
main(java.lang.String[] argv)
simple LFSR32 selftest. |
static void |
msg(java.lang.String s)
print the specified string to stdout |
void |
normal_clock()
calculate a new value for this LFSR32, based on the "normal" hardware solution with individual XOR taps. |
void |
setValue(int value)
|
void |
signature_clock(int input_value)
calculate a new value for this LFSR32, based on the "normal" clock method with individual XOR taps. |
static void |
usage()
print the usage message |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LFSR32()
Method Detail |
public void setValue(int value)
public int getValue()
public void clock()
public void normal_clock()
public void signature_clock(int input_value)
public static void msg(java.lang.String s)
public static void usage()
public static void main(java.lang.String[] argv)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |