From 75491745d24ce1e2f3b0da94edcea228196777d4 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Tue, 31 Mar 2015 16:31:41 -0400 Subject: Conditionalize trng so it can be easily excluded. --- core_selector/src/rtl/rng_selector.v | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'core_selector') 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 //====================================================================== -- cgit v1.2.3