Closed kv-be closed 6 months ago
arlen_i <= "00" & cmd_size(11 downto 6) when G_BUS_SIZE = 512 else -- Beat = 64 bytes > We divide size by 64 = Shift by 6 "0" & cmd_size(11 downto 5) when G_BUS_SIZE = 256 else -- Beat = 32 bytes > We divide size by 32 = Shift by 5 cmd_size(11 downto 4) when G_BUS_SIZE = 128 else -- Beat = 16 bytes > We divide size by 16 = Shift by 4 cmd_size(10 downto 3) when G_BUS_SIZE = 64; -- Beat = 8 bytes > We divide size by 8 = Shift by 3
should be
arlen_i <= "00" & cmd_size(11 downto 6) when G_BUS_SIZE = 512 else -- Beat = 64 bytes > We divide size by 64 = Shift by 6 "0" & cmd_size(11 downto 5) when G_BUS_SIZE = 256 else -- Beat = 32 bytes > We divide size by 32 = Shift by 5 cmd_size(11 downto 4) when G_BUS_SIZE = 128 else -- Beat = 16 bytes > We divide size by 16 = Shift by 4 cmd_size(10 downto 3) when G_BUS_SIZE = 64 ; -- Beat = 8 bytes > We divide size by 8 = Shift by 3
beautifyWhenBlock decreases the index i => eternal loop!
solved
arlen_i <= "00" & cmd_size(11 downto 6) when G_BUS_SIZE = 512 else -- Beat = 64 bytes > We divide size by 64 = Shift by 6 "0" & cmd_size(11 downto 5) when G_BUS_SIZE = 256 else -- Beat = 32 bytes > We divide size by 32 = Shift by 5 cmd_size(11 downto 4) when G_BUS_SIZE = 128 else -- Beat = 16 bytes > We divide size by 16 = Shift by 4 cmd_size(10 downto 3) when G_BUS_SIZE = 64; -- Beat = 8 bytes > We divide size by 8 = Shift by 3
should be
arlen_i <= "00" & cmd_size(11 downto 6) when G_BUS_SIZE = 512 else -- Beat = 64 bytes > We divide size by 64 = Shift by 6 "0" & cmd_size(11 downto 5) when G_BUS_SIZE = 256 else -- Beat = 32 bytes > We divide size by 32 = Shift by 5 cmd_size(11 downto 4) when G_BUS_SIZE = 128 else -- Beat = 16 bytes > We divide size by 16 = Shift by 4 cmd_size(10 downto 3) when G_BUS_SIZE = 64 ; -- Beat = 8 bytes > We divide size by 8 = Shift by 3
beautifyWhenBlock decreases the index i => eternal loop!