summaryrefslogtreecommitdiff
path: root/2004/n/fpga/src/packages/nono_const.vhd
diff options
context:
space:
mode:
Diffstat (limited to '2004/n/fpga/src/packages/nono_const.vhd')
-rw-r--r--2004/n/fpga/src/packages/nono_const.vhd13
1 files changed, 8 insertions, 5 deletions
diff --git a/2004/n/fpga/src/packages/nono_const.vhd b/2004/n/fpga/src/packages/nono_const.vhd
index 59518cf..fae3762 100644
--- a/2004/n/fpga/src/packages/nono_const.vhd
+++ b/2004/n/fpga/src/packages/nono_const.vhd
@@ -17,9 +17,6 @@ use ieee.std_logic_unsigned.all;
-- Constantes relatives
package nono_const is
- -- Temps d'une période d'horloge sur la carte
- --constant CK_PERIOD : time := 10 ns;
-
-- Taille de l'octet.
constant NB_BIT_OCTET : integer := 8;
@@ -41,12 +38,18 @@ package nono_const is
subtype T_DOUBLE_OCTET is std_logic_vector ((NB_BIT_DOUBLE_OCTET - 1)
downto 0);
-
-- Définition de nouveaux types : T_ADDRESS et T_DATA
subtype T_ADDRESS is std_logic_vector ((NB_BIT_ADDRESS - 1) downto 0);
subtype T_DATA is std_logic_vector ((NB_BIT_DATA - 1) downto 0);
+ -- Fréquence de fonctionnement de la PWM : 40MHz.
+ -- Nb de période d'horloge à 40MHz pour avoir 1us : 40 : x"28".
+ -- constant FREQ_CLK : T_OCTET := x"28"; -- 40M
+ -- constant FREQ_CLK : T_OCTET := x"02"; -- ise
+ constant FREQ_CLK : T_OCTET := x"64"; -- 100M
+
+
-- Les différentes banques d'adresses (4 x 256)
-- Rq pour Pierre : ça va influer sur le bloc de gestion du bus
constant START_ADDR_B0 : T_ADDRESS := "0000000000";
@@ -71,6 +74,6 @@ package nono_const is
-- Bloc port série
-- Bloc caméra
-- Bloc PWM
- -- Bloc I2C
+ -- Bloc I²C
-- Bloc servo-moteurs
end nono_const;