Got the V1 version of the INM board working

This commit is contained in:
Bill Cox
2014-10-26 13:51:22 -04:00
parent 12a41757fd
commit 4b01bd77c3
4 changed files with 18 additions and 3 deletions

View File

@@ -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:
![Picture of Infinite Noise Multiplier circuit board](images/INM_V1.gpg?raw=true "Infinite Noise Multiplier")
Here's the latest schematic...
![Schematic of Infinite Noise Multiplier](images/infnoise.png?raw=true "Infinite
Noise Multiplier")

BIN
images/INM_V1.jpg Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 KiB

View File

@@ -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

View File

@@ -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))