hdl: fifo_writer: proper META state transition for exclusive ch1 usage
Addresses an issue where the META state was not transitioning correctly when only channel 1 (ch1) was enabled. The fix ensures that the META state now correctly exits the META_WRITE state and enters the META_DOWNCOUNT state when ch1 is exclusively enabled.
This commit is contained in:
parent
91a34c83c7
commit
4b9906602e
1 changed files with 10 additions and 6 deletions
|
|
@ -262,11 +262,14 @@ begin
|
|||
|
||||
when META_WRITE =>
|
||||
|
||||
if( (meta_fifo_full = '0') and (in_samples(in_samples'low).data_v = '1') ) then
|
||||
meta_future.meta_write <= '1';
|
||||
meta_future.meta_written <= '1';
|
||||
meta_future.state <= META_DOWNCOUNT;
|
||||
end if;
|
||||
for i in in_samples'range loop
|
||||
if (meta_fifo_full = '0') and (in_samples(i).data_v = '1') then
|
||||
meta_future.meta_write <= '1';
|
||||
meta_future.meta_written <= '1';
|
||||
meta_future.state <= META_DOWNCOUNT;
|
||||
exit; -- Exit loop after first match
|
||||
end if;
|
||||
end loop;
|
||||
|
||||
when META_DOWNCOUNT =>
|
||||
|
||||
|
|
@ -288,7 +291,8 @@ begin
|
|||
end if;
|
||||
|
||||
-- Patches the late meta write for MIMO mode
|
||||
if( in_sample_controls(0).enable = '1' and
|
||||
if( in_sample_controls'length = 2 and
|
||||
in_sample_controls(0).enable = '1' and
|
||||
in_sample_controls(1).enable = '1' and
|
||||
eight_bit_mode_en = '0' and
|
||||
meta_current.dma_downcount <= NUM_STREAMS + 2 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue