From 48041569f5da457ea4d7a6a4eba5fc5800f0c226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Mon, 7 Nov 2022 21:15:39 +0100 Subject: [PATCH] fix(link): move start of ilas config to correct octet (3rd), send 28.4 before ilas config --- testbench/data_link/ilas_parser_tb.vhd | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/testbench/data_link/ilas_parser_tb.vhd b/testbench/data_link/ilas_parser_tb.vhd index 0d896a6daa8e5179f3e8a0894014a665fabfe3f6..42ff4b3342ebecb47126dcf1b4a9d3391c357915 100644 --- a/testbench/data_link/ilas_parser_tb.vhd +++ b/testbench/data_link/ilas_parser_tb.vhd @@ -69,8 +69,10 @@ architecture a1 of ilas_parser_tb is (ILAS, ('0', '0', '0', "00000000"), '0', '0', '0', '0', -1), (ILAS, ('0', '0', '0', "00000000"), '0', '0', '0', '0', -1), (ILAS, ('0', '0', '0', "00000000"), '0', '0', '0', '0', -1), + (ILAS, ('0', '0', '0', "00000000"), '0', '0', '0', '0', -1), (ILAS, ('1', '0', '0', "01111100"), '0', '0', '0', '0', -1), -- A (ILAS, ('1', '0', '0', "00011100"), '0', '0', '0', '0', -1), -- R, 1 mult + (ILAS, ('1', '0', '0', "10011100"), '0', '0', '0', '0', -1), -- 28.4 (ILAS, ('0', '0', '0', "10101010"), '0', '0', '0', '0', -1), -- DID (ILAS, ('0', '0', '0', "01111110"), '0', '0', '0', '0', -1), -- ADJCNT,BID (ILAS, ('0', '0', '0', "01001010"), '0', '0', '0', '0', -1), -- X,ADJDIR,PHADJ,LID @@ -87,6 +89,7 @@ architecture a1 of ilas_parser_tb is (ILAS, ('0', '0', '0', "00110000"), '0', '0', '0', '0', -1), (ILAS, ('1', '0', '0', "01111100"), '0', '0', '0', '0', 0), -- A (ILAS, ('1', '0', '0', "00011100"), '0', '0', '0', '0', 0), -- R + (ILAS, ('0', '0', '0', "00000000"), '0', '0', '0', '0', -1), (ILAS, ('0', '0', '0', "00000000"), '0', '0', '0', '0', 0), (ILAS, ('0', '0', '0', "00000000"), '0', '0', '0', '0', 0), (ILAS, ('0', '0', '0', "00000000"), '0', '0', '0', '0', 0), @@ -103,6 +106,7 @@ architecture a1 of ilas_parser_tb is (ILAS, ('0', '0', '0', "00000000"), '0', '0', '0', '0', 0), (ILAS, ('1', '0', '0', "01111100"), '0', '0', '0', '0', 0), -- A (ILAS, ('1', '0', '0', "00011100"), '0', '0', '0', '0', 0), -- R, 2 mult + (ILAS, ('0', '0', '0', "00000000"), '0', '0', '0', '0', -1), (ILAS, ('0', '0', '0', "00000000"), '0', '0', '0', '0', 0), (ILAS, ('0', '0', '0', "00000000"), '0', '0', '0', '0', 0), (ILAS, ('0', '0', '0', "00000000"), '0', '0', '0', '0', 0), @@ -154,6 +158,7 @@ architecture a1 of ilas_parser_tb is (CGS, ('0', '0', '0', "10111100"), '0', '0', '0', '0', -1), (CGS, ('0', '0', '0', "10111100"), '0', '0', '0', '0', -1), (ILAS, ('1', '0', '0', "00011100"), '0', '0', '0', '0', -1), -- R, 0 mult + (ILAS, ('1', '0', '0', "00011100"), '0', '0', '0', '0', -1), -- R, 0 mult (ILAS, ('0', '0', '0', "00000000"), '0', '0', '0', '0', -1), (ILAS, ('0', '0', '0', "00000000"), '0', '0', '0', '0', -1), (ILAS, ('0', '0', '0', "00000000"), '0', '0', '0', '0', -1), @@ -170,6 +175,7 @@ architecture a1 of ilas_parser_tb is (ILAS, ('0', '0', '0', "00000000"), '0', '0', '0', '0', -1), (ILAS, ('1', '0', '0', "01111100"), '0', '0', '0', '0', -1), -- A (ILAS, ('1', '0', '0', "00011100"), '0', '0', '0', '0', -1), -- R, 1 mult + (ILAS, ('1', '0', '0', "10011100"), '0', '0', '0', '0', -1), -- 28.4 (ILAS, ('0', '0', '0', "10101010"), '0', '0', '0', '0', -1), -- DID (ILAS, ('0', '0', '0', "01111110"), '0', '0', '0', '0', -1), -- ADJCNT,BID (ILAS, ('0', '0', '0', "01001010"), '0', '0', '0', '0', -1), -- X,ADJDIR,PHADJ,LID @@ -194,7 +200,7 @@ architecture a1 of ilas_parser_tb is constant clk_period : time := 1 ns; - constant F : integer range 0 to 256 := 16; + constant F : integer range 0 to 256 := 17; signal clk : std_logic := '0'; signal reset : std_logic := '0';