Got the V1 version of the INM board working
This commit is contained in:
@@ -14,7 +14,11 @@ estimation of bits added to an entropy pool.
|
||||
|
||||
### An Eagle open-source board is under way
|
||||
|
||||
Here's the schematic so far...
|
||||
Here's the V1 version, which works as predicted:
|
||||
|
||||

|
||||
|
||||
Here's the latest schematic...
|
||||
|
||||

|
||||
|
||||
BIN
images/INM_V1.jpg
Normal file
BIN
images/INM_V1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 353 KiB |
@@ -1,8 +1,11 @@
|
||||
all: infnoise healthcheck findlongest
|
||||
all: infnoise infnoise-v1 healthcheck findlongest
|
||||
|
||||
infnoise: infnoise.c infnoise.h healthcheck.c writeentropy.c Keccak/KeccakF-1600-reference.c Keccak/brg_endian.h
|
||||
gcc -Wall -std=c11 -O3 -m64 -march=native -I Keccak -o infnoise infnoise.c healthcheck.c writeentropy.c Keccak/KeccakF-1600-reference.c -lftdi -lm
|
||||
|
||||
infnoise-v1: infnoise.c infnoise.h healthcheck.c writeentropy.c Keccak/KeccakF-1600-reference.c Keccak/brg_endian.h
|
||||
gcc -Wall -std=c11 -O3 -m64 -march=native -DVERSION1 -I Keccak -o infnoise-v1 infnoise.c healthcheck.c writeentropy.c Keccak/KeccakF-1600-reference.c -lftdi -lm
|
||||
|
||||
healthcheck: healthcheck.c
|
||||
gcc -Wall -std=c11 -O3 -m64 -march=native -D TEST_HEALTHCHECK -o healthcheck healthcheck.c -lm
|
||||
|
||||
@@ -10,4 +13,4 @@ findlongest: findlongest.c
|
||||
gcc -Wall -std=c11 -O3 -m64 -march=native -o findlongest findlongest.c
|
||||
|
||||
clean:
|
||||
rm -f healthcheck infnoise findlongest
|
||||
rm -f healthcheck infnoise infnoise-v1 findlongest
|
||||
|
||||
@@ -15,10 +15,18 @@
|
||||
#define PREDICTION_BITS 14
|
||||
#define LINUX_POOL_SIZE (4096/8)
|
||||
|
||||
#ifdef VERSION1
|
||||
#define COMP1 2
|
||||
#define COMP2 0
|
||||
#define SWEN1 4
|
||||
#define SWEN2 1
|
||||
#else
|
||||
#define COMP1 1
|
||||
#define COMP2 4
|
||||
#define SWEN1 2
|
||||
#define SWEN2 0
|
||||
#endif
|
||||
|
||||
// Add bits are outputs, except COMP1 and COMP2
|
||||
#define MASK (0xff & ~(1 << COMP1) & ~(1 << COMP2))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user