mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
Fix STATE_WAIT_END
This commit is contained in:
parent
fb4abb6b39
commit
0efb135b7a
@ -482,8 +482,10 @@ always @* begin
|
||||
end
|
||||
STATE_WAIT_END: begin
|
||||
// wait for end of frame
|
||||
if (ifg_count_reg > 8'd8) begin
|
||||
ifg_count_next = ifg_count_reg - 8'd8;
|
||||
s_axis_tready_next = 1'b1;
|
||||
|
||||
if (ifg_count_reg > 8'd4) begin
|
||||
ifg_count_next = ifg_count_reg - 8'd4;
|
||||
end else begin
|
||||
ifg_count_next = 8'd0;
|
||||
end
|
||||
@ -492,6 +494,8 @@ always @* begin
|
||||
|
||||
if (s_axis_tvalid) begin
|
||||
if (s_axis_tlast) begin
|
||||
s_axis_tready_next = 1'b0;
|
||||
|
||||
if (ENABLE_DIC) begin
|
||||
if (ifg_count_next > 8'd3) begin
|
||||
state_next = STATE_IFG;
|
||||
|
@ -597,6 +597,8 @@ always @* begin
|
||||
end
|
||||
STATE_WAIT_END: begin
|
||||
// wait for end of frame
|
||||
s_axis_tready_next = 1'b1;
|
||||
|
||||
if (ifg_count_reg > 8'd8) begin
|
||||
ifg_count_next = ifg_count_reg - 8'd8;
|
||||
end else begin
|
||||
@ -607,6 +609,8 @@ always @* begin
|
||||
|
||||
if (s_axis_tvalid) begin
|
||||
if (s_axis_tlast) begin
|
||||
s_axis_tready_next = 1'b0;
|
||||
|
||||
if (ENABLE_DIC) begin
|
||||
if (ifg_count_next > 8'd7) begin
|
||||
state_next = STATE_IFG;
|
||||
|
Loading…
x
Reference in New Issue
Block a user