From 3ac1691adf99cae1dd30c8043b84d7fcd3b75813 Mon Sep 17 00:00:00 2001 From: Leo Lemaire Date: Wed, 15 Dec 2021 18:36:38 +0000 Subject: [PATCH] Upload New File --- sources_snake/types.vhd | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 sources_snake/types.vhd diff --git a/sources_snake/types.vhd b/sources_snake/types.vhd new file mode 100644 index 0000000..b9a0bbf --- /dev/null +++ b/sources_snake/types.vhd @@ -0,0 +1,15 @@ +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +package types is + type coord is array(0 to 39, 0 to 29) of unsigned(10 downto 0); + type direction is (haut, bas, gauche, droite); + type pos is record + X: unsigned(9 downto 0); + Y: unsigned(8 downto 0); + dir: direction; + isDefined: std_logic; + end record; + type listSnake is array(0 to 1200) of pos; +end package;