Skip to content

Commit

Permalink
axi_dmac: fix non-blocking assignment in combinatorial block
Browse files Browse the repository at this point in the history
Non-blocking assignments in combinatorial blocks can cause simulation problems. In this particular case iverilog coughed up a hairball.
  • Loading branch information
aholtzma-am authored and ronagyl committed Mar 1, 2021
1 parent bfd4c77 commit 4c0f9a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/axi_dmac/axi_dmac_burst_memory.v
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ assign src_data_request_id = src_dest_id;

always @(*) begin
if (src_last_beat == 1'b1) begin
src_id_next <= inc_id(src_id);
src_id_next = inc_id(src_id);
end else begin
src_id_next <= src_id;
src_id_next = src_id;
end
end

Expand Down

0 comments on commit 4c0f9a6

Please sign in to comment.