Skip to content

Commit

Permalink
Bug fix for bls12-381 axi bridge writing to reduction RAM multiplier
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdevlin authored and bsdevlin committed Sep 15, 2019
1 parent 57ee6c8 commit ebea9ad
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions zcash_fpga/src/rtl/bls12_381/bls12_381_axi_bridge.sv
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module bls12_381_axi_bridge (
output logic o_new_inst_pt_val,
output logic o_reset_inst_ram,
output logic o_reset_data_ram,

// Interface to memory used in multiplier
output logic [31:0] o_ram_d,
output logic o_ram_we,
Expand Down Expand Up @@ -67,7 +67,7 @@ always_ff @ (posedge i_clk) begin
o_new_inst_pt <= 0;
o_reset_inst_ram <= 0;
o_reset_data_ram <= 0;

o_ram_d <= 0;
o_ram_we <= 0;
o_ram_se <= 0;
Expand All @@ -88,6 +88,9 @@ always_ff @ (posedge i_clk) begin
data_ram_if.re <= 1;
data_ram_if.we <= 0;

o_ram_we <= 0;
o_ram_se <= 0;

axi_lite_if.arready <= data_ram_read == 0 && inst_ram_read == 0 &&
wr_active == 0 && i_reset_done == 1;

Expand Down Expand Up @@ -164,7 +167,7 @@ always_ff @ (posedge i_clk) begin
32'h1c: begin
o_ram_we <= axi_lite_if.wdata[0];
o_ram_se <= axi_lite_if.wdata[1];
end
end
endcase
end else
if (wr_addr < DATA_AXIL_START) begin
Expand Down

0 comments on commit ebea9ad

Please sign in to comment.