Serie TD1
Serie TD1
Serie TD1
1° ANNEE ELN
Modélisation et Synthèse des Circuits Logiques
Langage de description
de matériel utilisé pour
la modélisation du
fonctionnement, la
simulation et la
synthèse automatique de
circuits
Exercice 2
Signaux internes
Signaux (fils de liaison) servent à passer les résultats intermédiaires d'un bloc fonctionnel à un autre
Décrire en Vhdl l’architecture DF du circuit donné sur le schéma suivant de 2 manières différentes
Entity AOI is • Avec des signaux internes
Port ( architecture V2 of AOI
A, B, C,D : in BIT; is
F : out Bit --zone de declaration
); des signaux
End Entity; signal AB,CD,O: BIT;
begin
• Sans signaux internes --instructions
architecture V1 of AOI concurrentes
is AB <= A and B;
Begin CD <= C and D;
F <= not ((A and B) or O <= AB or CD;
(C and D)); F <= not O;
end architecture V1; end V2;
Exercice 3
Donner la description vhdl, de la porte AND3 en utilisant le style table de vérité
Flot de données, Style Table de vérité (Avec "with select when")
ENTITY AND3 IS
PORT(
E : in BIT_VECTOR(2 DOWNTO 0); -- 3 entrées
s : out BIT; -- 1 sortie
END ENTITY;
b) Réécrire un programme VHDL pour un additionneur 1 bit avec un style "with select when".
Le style "with select when"
-- ******** VHDL *************
ENTITY adder IS PORT(
e : in BIT_VECTOR(2 DOWNTO 0); -- 3 entrées
s : out BIT_VECTOR(1 DOWNTO 0)); -- 2 sorties
END demo;
ARCHITECTURE aAdder of adder IS BEGIN
With e select
s <= "00" WHEN "000",
"01" WHEN "001",
"01" WHEN "010",
"10" WHEN "011" |"101"|"110" ,
"01" WHEN "100",
"11" WHEN OTHERS;
END aAdder;
Exercice 7
Etablir la Description structurelle d’un additionneur 1 BIT EN FONCTION DES PORTES DE BASE
ARCHITECTURE structure OF add1 IS
COMPONENT et PORT(e1,e2:IN std_logic; s:OUT
std_logic);
END COMPONENT;
COMPONENT ou PORT(e1,e2:IN std_logic;s:OUT
std_logic);
END COMPONENT;
COMPONENT oux PORT(e:IN std_logic; s:OUT
std_logic);
END COMPONENT;
SIGNAL f1,f2,f3: 3std_logic;
BEGIN
a1: et PORT MAP (a,b,f1);
a2: et PORT MAP (f3,c,f2);
o1: ou PORT MAP (f1,f2,r);
x1: oux PORT MAP (a,b,f3);
x2: oux PORT MAP (f3,c,s);
END structure;
Exercice 9
1- Ecrire la description Vhdl du 2- Décrire en vhdl le circuit C2
circuit C1
Exercice 10
Donner le code VHDL d’un Multiplexeur 4-2 dans les 3 styles Flot de données, et proposer
une description structurelle à base de multiplexeurs élémentaires
Exercice 11
Décrire en VHDL un circuit additionneur/soustracteur 4 bits à base de 4 Full Adders.
Exercice 12