This commit is contained in:
leo 2022-01-04 10:29:11 +01:00
parent 722a92240b
commit 3d6a5eaa3e
2 changed files with 4 additions and 3 deletions

View File

@ -111,6 +111,7 @@ end process;
RAMClk <= clk; RAMClk <= clk;
output <= to_pos(snakeOut); output <= to_pos(snakeOut);
listRefs <= matAddresses;
GENERATEDX : for dx in -1 to 1 generate GENERATEDX : for dx in -1 to 1 generate
GENERATEDY : for dy in -1 to 1 generate GENERATEDY : for dy in -1 to 1 generate

View File

@ -84,11 +84,11 @@ begin
-- when others => currentSnake.isDefined <= '0'; -- when others => currentSnake.isDefined <= '0';
--end case; --end case;
if(index < 12) then if(index < 13) then
currentSnake.X <= to_unsigned(8+to_integer(index)*16,10); currentSnake.X <= to_unsigned(8+to_integer(index)*16,10);
currentSnake.Y <= to_unsigned(8,9); currentSnake.Y <= to_unsigned(8,9);
currentSnake.dirX <= to_signed(0,2); currentSnake.dirX <= to_signed(-1,2);
currentSnake.dirY <= to_signed(1,2); currentSnake.dirY <= to_signed(0,2);
currentSnake.isDefined <= '1'; currentSnake.isDefined <= '1';
else else
currentSnake.X <= to_unsigned(8,10); currentSnake.X <= to_unsigned(8,10);