Précédent   Forum du club des développeurs et IT Pro > Autres langages > Autres langages > VHDL
VHDL Forum d'entraide sur VHDL
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 24/03/2012, 19h53   #1
andoid
Invité de passage
 
Homme Babakar Sow
Étudiant
Inscription : septembre 2011
Messages : 2
Détails du profil
Informations personnelles :
Nom : Homme Babakar Sow
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Éditeur de logiciels

Informations forums :
Inscription : septembre 2011
Messages : 2
Points : 0
Points : 0
Par défaut Problème avec mon multiplexeur

Bonsoir
j'ai un probléme sur mon multiplexer si quelqu'un peut m'aider merci
Code :
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
LIBRARY ieee;
USE ieee.std_logic_1164.all;

ENTITY multiplexer IS 
 
   PORT
   (
	-- Les entrées
     R0   : IN STD_LOGIC_VECTOR (15 downto 0);
     R1   : IN STD_LOGIC_VECTOR (15 downto 0);
     R2   : IN STD_LOGIC_VECTOR (15 downto 0);
     R3   : IN STD_LOGIC_VECTOR (15 downto 0);
     R4   : IN STD_LOGIC_VECTOR (15 downto 0);
     R5   : IN STD_LOGIC_VECTOR (15 downto 0);
     R6   : IN STD_LOGIC_VECTOR (15 downto 0);
	  R7   : IN STD_LOGIC_VECTOR (15 downto 0);
	  DIN	 : IN STD_LOGIC_VECTOR (15 downto 0);
	  Gin	 : IN STD_LOGIC_VECTOR (15 downto 0);
	
		-- Les selecteurs
	  R	 	 : IN STD_LOGIC_VECTOR (7 downto 0);
	  Gout	 : IN STD_LOGIC;
	  DINout	 : IN STD_LOGIC;
	  
	  -- La sortie
	  S	 	 : OUT STD_LOGIC_VECTOR (15 downto 0)
   );
 
 END multiplexer;
 
 ARCHITECTURE multibhv of multiplexer is
 
 BEGIN
 S <= R0  when R="00000000" and Gout="0" and DINout="0" else
		R1  when R="01000000" and Gout="0" and DINout="0" else
		R2  when R="00100000" and Gout="0" and DINout="0" else
		R3	 when R="00010000" and Gout="0" and DINout="0" else
		R4  when R="00001000" and Gout="0" and DINout="0" else
		R5  when R="00000100" and Gout="0" and DINout="0" else
		R6  when R="00000010" and Gout="0" and DINout="0" else
		R7  when R="00000001" and Gout="0" and DINout="0" else
		Gin when R="00000000" and Gout="1" and DINout="0" else
		DIN ;
 END multibhv;
andoid est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/03/2012, 16h50   #2
cedd70
Invité de passage
 
Homme
Étudiant
Inscription : mars 2012
Messages : 1
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France, Haute Saône (Franche Comté)

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Électronique et micro-électronique

Informations forums :
Inscription : mars 2012
Messages : 1
Points : 4
Points : 4
Voila j'ai corrigé t'on programme, il fallait utiliser des ' et non "




Code :
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
LIBRARY ieee;
USE ieee.std_logic_1164.all;
USE IEEE.STD_LOGIC_ARITH.ALL;
USE IEEE.STD_LOGIC_UNSIGNED.ALL;

ENTITY multiplexer IS 
 
   PORT
   (
	-- Les entrées
     R0,
     R1,
     R2,
     R3,
     R4,
     R5,
     R6,
	 R7,
	 DIN,
	 Gin	 : IN STD_LOGIC_VECTOR (15 downto 0);
	
		-- Les selecteurs
	  R	 	 	 : IN STD_LOGIC_VECTOR (7 downto 0);
	  Gout,
	  DINout	 : IN STD_LOGIC;
	  
	  -- La sortie
	  S	 	 : OUT STD_LOGIC_VECTOR (15 downto 0)
   );
 
 END multiplexer;
 
 ARCHITECTURE arch_multiplexer of multiplexer is
 
 BEGIN
   S <= R0  when R="00000000" and Gout='0' and DINout='0' else
		R1  when R="01000000" and Gout='0' and DINout='0' else
		R2  when R="00100000" and Gout='0' and DINout='0' else
		R3	when R="00010000" and Gout='0' and DINout='0' else
		R4  when R="00001000" and Gout='0' and DINout='0' else
		R5  when R="00000100" and Gout='0' and DINout='0' else
		R6  when R="00000010" and Gout='0' and DINout='0' else
		R7  when R="00000001" and Gout='0' and DINout='0' else
		Gin when R="00000000" and Gout='1' and DINout='0' else
		DIN ;
 END arch_multiplexer;
cedd70 est déconnecté   Envoyer un message privé Réponse avec citation 10
Réponse Cette discussion est résolue.
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 13h44.


 
 
 
 
Partenaires

Hébergement Web