summaryrefslogtreecommitdiff
path: root/2004/n/fpga/src/modele/nono_const.vhd
diff options
context:
space:
mode:
Diffstat (limited to '2004/n/fpga/src/modele/nono_const.vhd')
-rw-r--r--2004/n/fpga/src/modele/nono_const.vhd9
1 files changed, 6 insertions, 3 deletions
diff --git a/2004/n/fpga/src/modele/nono_const.vhd b/2004/n/fpga/src/modele/nono_const.vhd
index 5c2e04a..fc260e1 100644
--- a/2004/n/fpga/src/modele/nono_const.vhd
+++ b/2004/n/fpga/src/modele/nono_const.vhd
@@ -13,9 +13,11 @@ use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
+
+-- Constantes relatives
package nono_const is
- -- Temps d'une période d'horloge
+ -- Temps d'une période d'horloge sur la carte
constant CK_PERIOD : time := 10 ns;
-- Taille d'une addresse sur la carte
@@ -26,8 +28,9 @@ package nono_const is
-- Taille des données sur la carte
constant NB_BIT_DATA : integer := 8;
- -- Définition d'un nouveau type : ADDRESS
+ -- Définition de nouveaux types : T_ADDRESS et T_DATA
subtype T_ADDRESS is unsigned ((NB_BIT_ADDRESS - 1) downto 0);
+ subtype T_DATA is unsigned ((NB_BIT_DATA - 1) downto 0);
-- Les différentes banques d'adresses (4 x 256)
-- Rq pour Pierre : ça va influer sur le bloc de gestion du bus
@@ -40,7 +43,7 @@ package nono_const is
-- gestion des interruptions
constant A_INTERRUPT_MANAGER : T_ADDRESS := START_ADDR_B0 + x"00";
- -- Bloc d'IO
+ -- Bloc d'IO1
constant A_REG_IO_DIRECTION : T_ADDRESS := START_ADDR_B0 + x"01";
constant A_REG_IO_DATA : T_ADDRESS := START_ADDR_B0 + x"02";
constant A_REG_IO_INTERRUPT_MASK : T_ADDRESS := START_ADDR_B0 + x"03";