ptp: Ensure reads are consistent

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich
2026-02-16 20:37:37 -08:00
parent 45d7b1d77c
commit 8b13e7a1ea

View File

@@ -286,6 +286,7 @@ always_ff @(posedge clk) begin
if (s_apb.penable && s_apb.psel && !s_apb_pready_reg) begin if (s_apb.penable && s_apb.psel && !s_apb_pready_reg) begin
s_apb_pready_reg <= 1'b1; s_apb_pready_reg <= 1'b1;
s_apb_prdata_reg <= '0;
if (s_apb.pwrite) begin if (s_apb.pwrite) begin
case (7'({s_apb.paddr >> 2, 2'b00})) case (7'({s_apb.paddr >> 2, 2'b00}))