mirror of
https://github.com/bmartini/zynq-axis.git
synced 2024-09-05 19:19:27 +08:00
Use blocking assignment in non-clocked always block
Combinational logic shouldn't use the non-blocking assignment.
This commit is contained in:
parent
1885150a4c
commit
b05b6bd6d4
@ -174,32 +174,32 @@ module axis_write_data
|
||||
|
||||
|
||||
always @* begin : DATA_
|
||||
state_nx <= 'b0;
|
||||
state_nx = 'b0;
|
||||
|
||||
case (1'b1)
|
||||
state[IDLE] : begin
|
||||
if (cfg_valid) begin
|
||||
state_nx[ACTIVE] <= 1'b1;
|
||||
state_nx[ACTIVE] = 1'b1;
|
||||
end
|
||||
else state_nx[IDLE] <= 1'b1;
|
||||
else state_nx[IDLE] = 1'b1;
|
||||
end
|
||||
state[ACTIVE] : begin
|
||||
if (axi_wready & buf_pop & (str_length == str_cnt)) begin
|
||||
state_nx[WAIT] <= 1'b1;
|
||||
state_nx[WAIT] = 1'b1;
|
||||
end
|
||||
else state_nx[ACTIVE] <= 1'b1;
|
||||
else state_nx[ACTIVE] = 1'b1;
|
||||
end
|
||||
state[WAIT] : begin
|
||||
if (axi_wready & axi_wlast) begin
|
||||
state_nx[DONE] <= 1'b1;
|
||||
state_nx[DONE] = 1'b1;
|
||||
end
|
||||
else state_nx[WAIT] <= 1'b1;
|
||||
else state_nx[WAIT] = 1'b1;
|
||||
end
|
||||
state[DONE] : begin
|
||||
state_nx[IDLE] <= 1'b1;
|
||||
state_nx[IDLE] = 1'b1;
|
||||
end
|
||||
default : begin
|
||||
state_nx[IDLE] <= 1'b1;
|
||||
state_nx[IDLE] = 1'b1;
|
||||
end
|
||||
endcase
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user