Skip to content

Commit

Permalink
fix bug in condition for read
Browse files Browse the repository at this point in the history
  • Loading branch information
M0stafaRady committed Aug 21, 2024
1 parent fcd6fde commit 653cb85
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions hdl/rtl/EF_QSPI_XIP_CTRL.v
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,13 @@ module FLASH_RESET #(parameter RESET_CYCLES=1023) (
d_o_reg <= 1'b0;
end
else begin
ce_n_reg <= (counter > 10'd0 && counter < 10'd9) ? 1'b0 :
(counter > 10'd11 && counter < 10'd20)? 1'b0 :1'b1;
if (ck == 1'b1) begin
ce_n_reg <= (counter > 10'd0 && counter < 10'd9) ? 1'b0 :
(counter > 10'd11 && counter < 10'd20)? 1'b0 :1'b1;

d_o_reg <= (counter > 10'd0 && counter < 10'd9) ? C66[counter-1] :
(counter > 10'd11 && counter < 10'd20) ? C99[counter-12] :1'b0;
d_o_reg <= (counter > 10'd0 && counter < 10'd9) ? C66[counter-1] :
(counter > 10'd11 && counter < 10'd20) ? C99[counter-12] :1'b0;
end
end

// assign ce_n = (counter > 10'd0 && counter < 10'd9) ? 1'b0 :
Expand Down

0 comments on commit 653cb85

Please sign in to comment.