Professional Documents
Culture Documents
Page 1 of 3
13. Provide relevant, original and conceptual answers, as this exam aims to test your ability to
examine, explain, modify or develop concepts discussed in class.
14. Do not copy answers from the internet or other sources. The plagiarism of your answers may
be checked through Turnitin.
15. Recheck your answers before the submission on BlackBoard to correct any content or
language related errors.
16. Double check your word file before uploading it on BlackBoard to ensure that you have
uploaded the correct file with your answers.
Question 2 CLO1
Question 3 CLO2
Question 1: [3 Marks]
Short Questions and Answers
3) If a net is not declared explicitly, Verilog assumes its type automatically. What type of a net is
4) What is the correct way to instantiate built-in AND gate primitive in Verilog, if Out1 is the
5) What is the correct syntax for writing numbers in Verilog? For example, if you want to assign
Page 2 of 3
Question 2: [4 Marks]
a) Briefly explain the CAD flow (software configuration flow) of FPGA depicting how
hardware is mapped on an FPGA in various steps after writing the HDL code.
b) Compare ASIC with FPGA in terms of Power, Speed, Size, NRE cost, Volume of
production, and other design factors.
c) What is the routing architecture in an FPGA comprised of? How are the wires
interconnected and signals transported between logic blocks? Give a brief overview.
Question 3: [6 Marks]
a) Write the Verilog code of a Half Adder using built-in gate primitives.
b) Write the hierarchical Verilog code of a Full Adder by instantiating the Half Adder module
you made in part a.
c) Write the hierarchical Verilog code of a 16-bit Ripple Carry Adder using the module you
made the part b.
Page 3 of 3