axi_dmac: fix non-blocking assignment in combinatorial block

Non-blocking assignments in combinatorial blocks can cause simulation problems. In this particular case iverilog coughed up a hairball.
main
Aaron Holtzman 2021-02-26 12:08:52 -05:00 committed by Laszlo Nagy
parent bfd4c77284
commit 4c0f9a65f1
1 changed files with 2 additions and 2 deletions

View File

@ -207,9 +207,9 @@ assign src_data_request_id = src_dest_id;
always @(*) begin always @(*) begin
if (src_last_beat == 1'b1) 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 end else begin
src_id_next <= src_id; src_id_next = src_id;
end end
end end