[Cryptech-Commits] [core/platform/common] 01/01: Conditionalize trng so it can be easily excluded.
git at cryptech.is
git at cryptech.is
Tue Mar 31 20:31:53 UTC 2015
This is an automated email from the git hooks/post-receive script.
paul at psgd.org pushed a commit to branch master
in repository core/platform/common.
commit 75491745d24ce1e2f3b0da94edcea228196777d4
Author: Paul Selkirk <paul at psgd.org>
Date: Tue Mar 31 16:31:41 2015 -0400
Conditionalize trng so it can be easily excluded.
---
core_selector/src/rtl/rng_selector.v | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/core_selector/src/rtl/rng_selector.v b/core_selector/src/rtl/rng_selector.v
index 3a0bd73..0b56684 100644
--- a/core_selector/src/rtl/rng_selector.v
+++ b/core_selector/src/rtl/rng_selector.v
@@ -57,6 +57,10 @@ module rng_selector
);
+`define USE_TRNG
+
+`ifdef USE_TRNG
+
// This is a pass-through to trng.v, which instantiates and muxes the
// entropy sources, mixer, and csprng.
@@ -77,6 +81,13 @@ module rng_selector
.debug(debug)
);
+`else
+
+ assign sys_read_data = {32{1'b0}};
+ assign debug = {32{1'b0}};
+
+`endif
+
endmodule
//======================================================================
More information about the Commits
mailing list