Final Exam - VLSI - Spring2019 - Answer
Final Exam - VLSI - Spring2019 - Answer
Final Exam
(Model Answer)
Faculty Engineering
Department Electrical Communication and Electronics
Module Code ECE 445/ ECE 561
Module Title VLSI Design
Semester Spring 2019
Time Allowed 3 hours
Total Mark 40
No. of Pages Six (including the cover page)
Material provided None
Equipment permitted Non programmable calculator
Additional Instructions All Answers must be in English otherwise it will not be
considered.
Page 1 of 6
October University for Modern Sciences and Arts (MSA)
Faculty of Engineering
Module Code: ECE 445/ ECE 561
Module Title: VLSI Design
Semester: Spring 2019
Model Answer:
Page 2 of 6
October University for Modern Sciences and Arts (MSA)
B Library IEEE;
use IEEE.STD_LOGIC_1164.ALL; 0.5 pts 5 pts
use IEEE.STD_LOGIC_UNSIGNED.ALL;
Entity C_DIV is
PORT ( CLK, SEL : IN STD_LOGIC ;
CDIV : OUT STD_LOGIC );
end C_DIV; 0.5 pts
Page 3 of 6
October University for Modern Sciences and Arts (MSA)
process (clk)
variable I : integer := 0 ; 0.25 pts
begin
I := I+1;
IF (( (I = 3) and ( sel = '1') ) OR ( (I = 5) and ( sel = '0')) ) THEN
1.25 pts
T <= NOT ( T) ; I := 0 ;
END IF;
END PROCESS;
DIV <= T ;
END Behavioral;
Waveform 1 pts
B = + 3 − 0.25 6 pts
Expected no. of bits that represent the integer part of the output = 6 bits
library IEEE;
use IEEE.STD_LOGIC_1164.ALL; 0.5 pts
USE IEEE.STD_LOGIC_SIGNED.ALL;
entity FIR_TEST is
PORT ( D : IN std_logic_vectore (3 DOWNTO 0);
RST , CLK : IN STD_LOGIC;
F : OUT STD_LOGIC_VECTOR (8 DOWNTO 0)); 1 pts
end FIR_TEST;
Page 4 of 6
October University for Modern Sciences and Arts (MSA)
entity TOP is
PORT (Data_In : IN OUT STD_LOGIC_VECTOR ( 4 DOWNTO 0 ); 2 pts
MCLK , RESET : IN STD_LOGIC
Result_O: OUT STD_LOGIC_VECTOR ( 9 DOWNTO 0 ) );
end TOP;
Component FIR_TEST
PORT ( D : IN std_logic_vectore (3 DOWNTO 0);
RST , CLK : IN STD_LOGIC;
F : OUT STD_LOGIC_VECTOR (8 DOWNTO 0)); 1 pts
end Component;
COMPONENT C_DIV
PORT (CLK, SEL : IN STD_LOGIC ; 1 pts
CDIV : OUT STD_LOGIC);
end COMPONENT ;
Begin
End Structure;
Page 5 of 6
October University for Modern Sciences and Arts (MSA)
ii 2 pts
C = + + 3 pts
Page 6 of 6