From 121c5fe1003485dba5b808064fda8adb713c2509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Sun, 6 Nov 2022 20:26:57 +0100 Subject: [PATCH] feat(link): constrain alignment integer in char alignment --- src/data_link/char_alignment.vhd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data_link/char_alignment.vhd b/src/data_link/char_alignment.vhd index 6a1ec0c0d5116ab343d6d9e10bc727ca3fbcdac0..66ec19d4b77ffba0ef5286e84b0c7e011c58a52f 100644 --- a/src/data_link/char_alignment.vhd +++ b/src/data_link/char_alignment.vhd @@ -37,7 +37,7 @@ architecture a1 of char_alignment is signal reg_found_sync_char : std_logic := '0'; -- Whether sync char was found signal reg_cache_10b : std_logic_vector(19 downto 0) := (others => '0'); -- The cache of 10b characters. signal reg_do_10b : std_logic_vector(9 downto 0) := (others => '0'); - signal reg_alignment_index : integer := 0; -- Where the character starts in the cache, if aligned. + signal reg_alignment_index : integer range 0 to 16 := 0; -- Where the character starts in the cache, if aligned. signal reg_last_synced : std_logic := '0'; -- The last value of ci_synced signal reg_co_aligned : std_logic := '0'; -- Whether aligned begin -- architecture a1