Professional Documents
Culture Documents
Final Exam - VLSI - Spring - 2022 - Answer
Final Exam - VLSI - Spring - 2022 - Answer
Final Exam
(Model Answer)
Faculty Engineering
Department Electrical Communication and Electronics
Module Code ECE 445/ ECE 561
Module Title VLSI Design
Semester Spring 2022
Time Allowed 3 hours
Total Mark 40
No. of Pages Seven (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 7
October University for Modern Sciences and Arts (MSA)
Faculty of Engineering
Module Code: ECE 445/ ECE 561
Module Title: VLSI Design
Semester: Spring 2022
Answer the following questions (Four Questions):
B Library IEEE;
use IEEE.STD_LOGIC_1164.ALL; 5 pts
use IEEE.STD_LOGIC_UNSIGNED.ALL; 0.5 pts
Entity Clock_DIV is
PORT ( CLK, SEL : IN STD_LOGIC ; 1 pts
CDIV : OUT STD_LOGIC );
end Clock_DIV;
Begin
Process (CLK)
variable I : integer := 0 ; 1 pts
Page 2 of 7
October University for Modern Sciences and Arts (MSA)
begin
I := I+1;
IF (( (I = 2) and (SEL = '1') ) OR ( (I = 3) and (SEL = '0')) ) THEN 1.5 pts
T <= NOT (T) ;
I := 0 ;
END IF;
END PROCESS;
DIV <= T ; 0.5 pts
END Behavioral;
2 pts
1 pts
1 pts
Page 3 of 7
October University for Modern Sciences and Arts (MSA)
0.5 pts
2.5 pts
0.5 pts
2.5 pts
Page 4 of 7
October University for Modern Sciences and Arts (MSA)
Process(Clk , RST)
begin
IF( RST = '1') then
For I in 0 to 127 loop
tmp_ram (i) <= (others => ‘0’) ;
End loop ; 1 pts
Elseif rising_edge (Clk) then
Case X IS
WHEN "00" =>
RAM_in_out <= tmp_ram(conv_integer(RAM_ADD));
WHEN "11" =>
tmp_ram(conv_integer(RAM_ADD)) <= RAM_IN_Out; 1.5 pts
RAM_in_out <= (RAM_out'range => 'Z');
WHEN OTHERS =>
RAM_in_out <= (RAM_out'range => 'Z');
END Case;
end if;
end process;
end behav;
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 5 of 7
October University for Modern Sciences and Arts (MSA)
END IF;
END PROCESS;
End Behavioral ;
Page 6 of 7
October University for Modern Sciences and Arts (MSA)
ii 3 pts
Page 7 of 7