1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-30 08:32:52 +08:00

Handle out-of-range select as drop

This commit is contained in:
Alex Forencich 2021-11-24 14:58:16 -08:00
parent f40e68350c
commit 150d5ad04e

View File

@ -132,7 +132,7 @@ always @* begin
if (!frame_reg && s_axis_tvalid && s_axis_tready) begin
// start of frame, grab select value
select_ctl = select;
drop_ctl = drop;
drop_ctl = drop || select >= M_COUNT;
frame_ctl = 1'b1;
if (!(s_axis_tready && s_axis_tvalid && s_axis_tlast)) begin
select_next = select_ctl;