fixes
This commit is contained in:
parent
722a92240b
commit
3d6a5eaa3e
@ -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
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user