Remove wrap around logic from submission queue head update since we are not incrementing the received pointer anymore
@@ -201,9 +201,6 @@ module nvme_host_slave #
if (rx_write_valid && rx_waddr < DATA_CQ_ADDR) begin
// Update current submission queue head with received head
sq_head[rx_q_index] <= rx_wdata[64 +: SQ_BITS];
- if (rx_wdata[64 +: SQ_BITS]==sq_size[rx_q_index]-1) begin
- sq_head[rx_q_index] <= 'd0;
- end
// Update completion queue head
cq_head[rx_q_index] <= cq_head[rx_q_index] + 1;
// Check for wrap
