aboutsummaryrefslogtreecommitdiff
path: root/core_selector
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2015-03-31 16:31:41 -0400
committerPaul Selkirk <paul@psgd.org>2015-03-31 16:31:41 -0400
commit75491745d24ce1e2f3b0da94edcea228196777d4 (patch)
treea49f472f7249bdc13dcd1185897b4eecef04d9c7 /core_selector
parent989c112328f293ca1dfdea2da08afc79e960e841 (diff)
Conditionalize trng so it can be easily excluded.
Diffstat (limited to 'core_selector')
-rw-r--r--core_selector/src/rtl/rng_selector.v11
1 files changed, 11 insertions, 0 deletions
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
//======================================================================