Skip to content

Commit 9f73798

Browse files
committed
entdaa: fix fsm assignments
1 parent fda5bac commit 9f73798

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/ctrl/ccc_entdaa.sv

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,44 +62,44 @@ module ccc_entdaa
6262
unique case (state_q)
6363
Idle: begin
6464
if (start_daa_i) begin
65-
state_d <= WaitStart;
65+
state_d = WaitStart;
6666
end
6767
end
6868
WaitStart: begin
6969
if (bus_rstart_det_i) begin
70-
state_d <= ReceiveRsvdByte;
70+
state_d = ReceiveRsvdByte;
7171
end
7272
end
7373
ReceiveRsvdByte: begin
7474
if (bus_rx_done_i) begin
75-
if (reserved_word_det) state_d <= AckRsvdByte;
76-
else state_d <= SendNack;
75+
if (reserved_word_det) state_d = AckRsvdByte;
76+
else state_d = SendNack;
7777
end
7878
end
7979
AckRsvdByte: begin
8080
if (bus_tx_done_i) begin
81-
state_d <= SendID;
81+
state_d = SendID;
8282
end
8383
end
8484
SendNack: begin
8585
if (bus_tx_done_i) begin
86-
state_d <= Error;
86+
state_d = Error;
8787
end
8888
end
8989
SendID: begin
9090
if (bus_tx_done_i) begin
9191
// our Id was overwritten by some other device
9292
if (arbitration_lost_i) begin
93-
state_d <= LostArbitration;
93+
state_d = LostArbitration;
9494
end
9595
end
9696
end
9797
LostArbitration: begin
9898
end
9999
ReceiveAddr: begin
100100
if (bus_rx_done_i) begin
101-
if (parity_ok) state_d <= AckAddr;
102-
else state_d <= SendNack;
101+
if (parity_ok) state_d = AckAddr;
102+
else state_d = SendNack;
103103
end
104104
end
105105
Done: begin

0 commit comments

Comments
 (0)