Fix an issue with tracking fifo reads
@@ -157,12 +157,15 @@ module nvme_io_track #
end
// Read next entry
end else if (track_rwrite) begin
+ // Send read for next entry
track_read <= 1'b1;
track_raddr <= {track_update_id, track_index_array[track_update_id]};
+ // Old data is the first fifo read
+ end else if (track_read) begin
+ track_update_data <= track_rdata;
// Update status on read
end else if (track_read_valid) begin
track_update_done <= 1'b1;
- track_update_data <= track_rdata;
// track_update_id should not change and can be used here
track_status[track_update_id] <= track_rdata[0];
end
