Skip to content

Commit febe9d4

Browse files
Fix a problem related to next character fetch
1 parent f0d1679 commit febe9d4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

rtl_src/regex_coprocessor_single_bb.sv

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ module regex_coprocessor_single_bb #(
152152
S_FETCH_NEXT_CC:
153153
begin
154154
next_state = S_EXEC;
155-
if(cur_cc[0] == 1'b0) next_cc = memory_data[ 7:0];
156-
else next_cc = memory_data[15:8];
155+
if(cur_cc_pointer[0] == 1'b0) next_cc = memory_data[ 7:0];
156+
else next_cc = memory_data[15:8];
157157
end
158158
S_EXEC:
159159
begin
@@ -195,18 +195,20 @@ module regex_coprocessor_single_bb #(
195195
begin
196196
finish = 1'b1;
197197
accept = 1'b1;
198+
next_state = S_IDLE;
198199
end
199200
S_COMPLETED_WITHOUT_ACCEPTING:
200201
begin
201202
finish = 1'b1;
203+
next_state = S_IDLE;
202204
end
203205
endcase
204206
end
205207

206208
/// Moduleinstances
207209

208210
arbiter_fixed #(
209-
.DWITDH(MEMORY_ADDR_WIDTH),
211+
.DWIDTH(MEMORY_ADDR_WIDTH),
210212
.PRIORITY_0(1)
211213
) arbiter_for_memory_contention (
212214
.in_0_valid( memory_valid_for_cc ),

0 commit comments

Comments
 (0)