Explorar o código

rng: add the abc_clk to the inputs

If we happen to have a toggling abc_clk, might as well add it to the
set of inputs to the random number generator.  If not present, it
won't help, but it won't hurt, either.
H. Peter Anvin %!s(int64=3) %!d(string=hai) anos
pai
achega
d64ebed344
Modificáronse 5 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      fpga/max80.sv
  2. BIN=BIN
      fpga/output_files/max80.jbc
  3. BIN=BIN
      fpga/output_files/max80.jic
  4. BIN=BIN
      fpga/output_files/max80.pof
  5. BIN=BIN
      fpga/output_files/max80.sof

+ 2 - 2
fpga/max80.sv

@@ -565,11 +565,11 @@ module max80 (
    assign sysreg_rdata[2] = { 29'b0, led_q };
 
    // Random number generator
-   rng #(.nclocks(1), .width(32)) rng
+   rng #(.nclocks(2), .width(32)) rng
      (
       .sys_clk ( sys_clk ),
       .q       ( sysreg_rdata[4] ),
-      .clocks  ( { ~rtc_32khz } ),
+      .clocks  ( { ~rtc_32khz, abc_clk } ),
       .rngio   ( rngio )
       );
 

BIN=BIN
fpga/output_files/max80.jbc


BIN=BIN
fpga/output_files/max80.jic


BIN=BIN
fpga/output_files/max80.pof


BIN=BIN
fpga/output_files/max80.sof