# Pastebin 4GFTi1vK always_ff @(posedge clk, posedge rst) begin if(rst == 1) begin rd_ptr <=0; // Initialize to zero wr_ptr <=0; end