From 9970d8c0833fb1b54628b4eefa4b1372f38807b3 Mon Sep 17 00:00:00 2001 From: M0stafaRady Date: Thu, 2 May 2024 13:37:40 +0300 Subject: [PATCH] Regenerate the wrapper for AHBL --- hdl/rtl/bus_wrappers/EF_SPI_AHBL.pp.v | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/hdl/rtl/bus_wrappers/EF_SPI_AHBL.pp.v b/hdl/rtl/bus_wrappers/EF_SPI_AHBL.pp.v index cb09f61..3d8002a 100644 --- a/hdl/rtl/bus_wrappers/EF_SPI_AHBL.pp.v +++ b/hdl/rtl/bus_wrappers/EF_SPI_AHBL.pp.v @@ -66,6 +66,11 @@ + + + + + @@ -131,8 +136,13 @@ module EF_SPI_AHBL #( reg last_HSEL, last_HWRITE; reg [31:0] last_HADDR; reg [1:0] last_HTRANS; - always@ (posedge HCLK) begin - if(HREADY) begin + always@ (posedge HCLK or negedge HRESETn) begin + if(~HRESETn) begin + last_HSEL <= 1'b0; + last_HADDR <= 1'b0; + last_HWRITE <= 1'b0; + last_HTRANS <= 1'b0; + end else if(HREADY) begin last_HSEL <= HSEL; last_HADDR <= HADDR; last_HWRITE <= HWRITE;