浏览代码

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 3 年之前
父节点
当前提交
d64ebed344
共有 5 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      fpga/max80.sv
  2. 二进制
      fpga/output_files/max80.jbc
  3. 二进制
      fpga/output_files/max80.jic
  4. 二进制
      fpga/output_files/max80.pof
  5. 二进制
      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 )
       );
 

二进制
fpga/output_files/max80.jbc


二进制
fpga/output_files/max80.jic


二进制
fpga/output_files/max80.pof


二进制
fpga/output_files/max80.sof