From beef61ddc3c126491591771376d8bf4bfd38f3cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Mon, 20 Feb 2023 20:07:08 +0100 Subject: [PATCH] fix: save previous sample data in octets_to_sample --- src/transport/octets_to_sample.vhd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/transport/octets_to_sample.vhd b/src/transport/octets_to_sample.vhd index 7cfd8c2..420da8f 100644 --- a/src/transport/octets_to_sample.vhd +++ b/src/transport/octets_to_sample.vhd @@ -71,6 +71,11 @@ begin -- architecture a elsif ci_frame_clk'event and ci_frame_clk = '1' then -- rising clock edge do_samples_data <= next_samples_data; co_frame_state <= current_frame_state; + + if any_error = '0' then + prev_samples_data <= samples_data; + end if; + for i in 0 to L-1 loop reg_buffered_data(L*F*8 - 1 - i*F*8 downto L*F*8 - (i + 1)*F*8) <= di_lanes_data(i); reg_state_user_data(i) <= ci_frame_states(i).user_data; -- 2.48.1