diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2014-12-05 15:39:06 +0100 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2014-12-05 15:39:06 +0100 |
commit | 04c789a52f2394b04f76bce91fab09ad5fcd9fbf (patch) | |
tree | efc97e82b3e6efde3ce1fb64040cc50b47508b9a /src/rtl/novena_trng.v | |
parent | 7c52a3180cd8a6538841328ad83e435a7035e5b2 (diff) |
Hard coded the connections between the trng and the i2c to remove the address multiplexer. This now builds a novena FPGA design with what seems to be a working trng.
Diffstat (limited to 'src/rtl/novena_trng.v')
-rw-r--r-- | src/rtl/novena_trng.v | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/rtl/novena_trng.v b/src/rtl/novena_trng.v index 9d722b6..3630574 100644 --- a/src/rtl/novena_trng.v +++ b/src/rtl/novena_trng.v @@ -178,13 +178,16 @@ module novena_trng( wire SDA_pd; wire SDA_int; reg clk25; + reg reset_n; initial begin - clk25 <= 1'b0; + clk25 <= 1'b0; + reset_n <= 1'b0; end always @ (posedge clk) begin clk25 <= ~clk25; + reset_n <= 1'b1; EIM_A16 <= 1'b0; EIM_A17 <= 1'b0; end @@ -200,8 +203,8 @@ module novena_trng( ); coretest_trng coretest_trng_inst( - .clk(clk25), - .reset_n(1'b1), + .clk(clk), + .reset_n(reset_n), .noise(F_DX7), .debug(test_debug), |