Skip to content

Commit

Permalink
Updated ch0_tuple_latch predicate. Fixes fast/slow path data races wh…
Browse files Browse the repository at this point in the history
…en stress-testing the reassembler
  • Loading branch information
NAtre committed Oct 5, 2021
1 parent 322728a commit 4c21fd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hardware/rtl_sim/src/flow_table.sv
Original file line number Diff line number Diff line change
Expand Up @@ -505,11 +505,11 @@ always @(posedge clk) begin
ch0_tuple_r1 <= ch0_meta.tuple;

// ch0_tuple_latch keeps the tuple value before next read
if (ch0_rden) begin
if (ft0_rden_a) begin
ch0_tuple_latch_r <= ch0_meta.tuple;
end
end
assign ch0_tuple_latch = ch0_rden ? ch0_meta.tuple : ch0_tuple_latch_r;
assign ch0_tuple_latch = ft0_rden_a ? ch0_meta.tuple : ch0_tuple_latch_r;

// Random number used for eviction
always @(posedge clk) begin
Expand Down

0 comments on commit 4c21fd6

Please sign in to comment.