Bonjour,
Je veux savoir comment créer un retard de 16 microsecondes synthétisable en VHDL de la sortie synchronisé sur une horloge de 1 MHz (1 microseconde):
On peut le créer par un process sensible à l'horloge 1 MHz et aussi utilisé "wait for 16 us". Le problème qu'il n'est pas synthétisable mais il marche au niveau de simulation.
exemple:
Donc comment créer cette temporisation pour avoir un code synthetisable sachant que 1us (période d'horloge 1 MHz) x 16 = 16us
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 entity retard is Port ( Entree : in STD_LOGIC_VECTOR (19 downto 0); Horloge_1MHz : in STD_LOGIC; Sortie : out STD_LOGIC_VECTOR (3 downto 0)); end retard; architecture Behavioral of retard is Process(Horloge_1MHz) begin if rising_edge (Horloge_1MHz) then Sortie <= Entree(3 downto 0); wait for 16us; Sortie <= Entree(7 downto 4); wait for 16us; Sortie <= Entree(11 downto 8); wait for 16us; Sortie <= Entree(15 downto 12); wait for 16us; Sortie <= Entree(19 downto 16); wait for 16us; end if; end Process; end Behavioral;
Et merci d'avance.
Isamel
Partager