Skip to content

Commit

Permalink
Merge pull request #14 from spcl/eom_seen_fix
Browse files Browse the repository at this point in the history
Clearing eom_seen when freeing up the FMQ
  • Loading branch information
SalvatoreDiGirolamo authored Nov 24, 2022
2 parents 001a143 + 03860b7 commit 1b766ae
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion hw/src/pkt_scheduler/mpq_engine.sv
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,19 @@ module mpq_fsm #(
endcase
end

assign mpq_o.eom_seen = mpq_q.eom_seen || (her_new_i && her_new_is_eom_i);
always_comb begin
mpq_o.eom_seen = mpq_q.eom_seen;

// set it if we see the EOM
if (her_new_i && her_new_is_eom_i) begin
mpq_o.eom_seen = 1;
end

// clear it if we are transitioning to Free state
if (mpq_o.state == Free) begin
mpq_o.eom_seen = 0;
end
end

//update state
always_comb begin //H-P-C case
Expand Down

0 comments on commit 1b766ae

Please sign in to comment.