Professional Documents
Culture Documents
II N5
EXAMEN
ENSEIGNANT
CLASSE
: M. TAYARI LASSAAD
: AII51
FPGA
DATE : Le 05 /01/2016 NOM :………….………….
DUREE :1 h 30 mn PRENOM :……………………..
DOCUMENTS :Non autorisés
---------------------------------------------------------------------------------------------------------------------------
Ecrire (completer) sa description VHDL dans le style structurel en suivant le modèle ci-
dessous :
entity arithmetic_unit is
port(a,b,c,s0,s1: in std_logic;
cout,res: out std_logic);
end arithmetic_unit;
---------------------------------------------------------------------------------------------------------
architecture dataflow of arithmetic_unit is
begin
...
.
.
.
.
end dataflow;
entity logic_unit is
port(a,b,s0,s1: in std_logic;
res: out std_logic);
end logic_unit;
architecture dataflow of logic_unit is
begin
....
.
.
.
.
.
.
end dataflow;
entity mux is
port(i1,i2,sel: in std_logic;
res: out std_logic);
end mux;
architecture arch1 of mux is
begin
....
.
.
.
end arch1;
architecture ual of slice is
.
.
begin
..
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
end ual;
Library ieee ;
Use ieee.std_logic_1164.all ;
Entity exercice4 is
port( A: ………………………………..;
B:………………………………...;
SEL:……………………………...;
CLK :……………………………. ;
O: ………………………………....);
End exercice4;
process(CLK,S3)
begin
if (CLK'event and …………) then
…………………………
end if;
end process;
end behv;
Bonne Chance
EXAMEN FPGA Page 5/5