ZcashFoundation / zcash-fpga

Zcash FPGA acceleration engine
GNU General Public License v3.0
119 stars 46 forks source link

err <= err << 1; #12

Closed Jiahua-Gong closed 4 years ago

Jiahua-Gong commented 4 years ago

secp256k1_mod.sv

always_ff @ (posedge i_clk) begin
  if (i_rst) begin
    val <= 0;
    err <= 0;
    o_val <= 0;
    ctl <= 0;
    o_err <= 0;
  end else begin
    if (~o_val || (i_rdy && o_val)) begin
      val <= val << 1;
      ctl <= {ctl, i_ctl};
      err <= err << 1;
      val[0] <= i_val && o_rdy;
      err[0] <= i_err;
      o_dat <= res1[255:0];

      o_err <= err[1] || res1 >= p_eq;
      o_val <= val[1];
      o_ctl <= ctl[1];
    end

  end
end

err <= err << 1; err signal is no sense.It doesn't work.

Jiahua-Gong commented 4 years ago

Sorry,I'm fault.I'm looking for the reason for secp256k1_top_tb time out.