From bbc18ca0ee014d950d817449d4497934b6a878dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Sat, 25 Feb 2023 22:49:48 +0100 Subject: [PATCH] fix: calculate octets in multiframe from input in ilas parser --- src/data_link/ilas_parser.vhd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/data_link/ilas_parser.vhd b/src/data_link/ilas_parser.vhd index 7be8732..c20533d 100644 --- a/src/data_link/ilas_parser.vhd +++ b/src/data_link/ilas_parser.vhd @@ -90,8 +90,7 @@ architecture a1 of ilas_parser is return data(up_index - 7 + bit_index); end function getBitByIndex; begin -- architecture a1 - --octets_in_multiframe <= ci_F * CI_K; - octets_in_multiframe <= 17; + octets_in_multiframe <= ci_F * CI_K; -- ILAS -- one multiframe is sent -- 4 frames in a multiframe @@ -181,7 +180,7 @@ begin -- architecture a1 err <= '1'; end if; end if; - elsif reg_multiframe_index > multiframes_count - 1 then + elsif reg_multiframe_index > ci_K - 1 then err <= '1'; end if; end if; -- 2.48.1