aboutsummaryrefslogtreecommitdiff
path: root/src/rtl/trng_mixer.v
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2014-09-27 14:38:05 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2014-09-27 14:38:05 +0200
commit821471932eb48bb39a820fc6680355231e6093fa (patch)
tree0a1fe14247b4a15f7ac49351483b3aa683f52eb7 /src/rtl/trng_mixer.v
parentf2d1d8430c9ed9923e9cd701744e705f2c91751b (diff)
Adding debug port for mixer and csprng. In the csprng the debug_update will trigger fifo extraction and thus force random number generation.
Diffstat (limited to 'src/rtl/trng_mixer.v')
-rw-r--r--src/rtl/trng_mixer.v7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rtl/trng_mixer.v b/src/rtl/trng_mixer.v
index 7d398f5..d11050c 100644
--- a/src/rtl/trng_mixer.v
+++ b/src/rtl/trng_mixer.v
@@ -69,7 +69,10 @@ module trng_mixer(
output wire [511 : 0] seed_data,
output wire seed_syn,
- input wire seed_ack
+ input wire seed_ack,
+
+ output wire [7 : 0] debug,
+ input wire debug_update
);
@@ -246,6 +249,8 @@ module trng_mixer(
assign entropy1_ack = tmp_entropy1_ack;
assign entropy2_ack = tmp_entropy2_ack;
+ assign debug = 8'h55;
+
//----------------------------------------------------------------
// core instantiation.