Bonsoir
j'ai un probléme sur mon multiplexer si quelqu'un peut m'aider merci
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
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;
Partager