Skip to content

Commit

Permalink
pop only if not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelaGonzalezMarino committed Dec 19, 2024
1 parent 13fffaa commit 56bd778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/cva6_fifo_v3.sv
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ module cva6_fifo_v3 #(
data_ft_n = data_i;
first_word_n = '1;
end
if (pop_i) begin
if (pop_i && ~empty_o) begin
first_word_n = '0;
status_cnt_n = status_cnt_q;
read_pointer_n = read_pointer_q;
Expand Down

0 comments on commit 56bd778

Please sign in to comment.