23EC3ESHDL
23EC3ESHDL
Instructions: 1. Answer any FIVE full questions, choosing one full question from each unit.
2. Missing data, if any, may be suitably assumed.
UNIT - I CO PO Marks
Important Note: Completing your answers, compulsorily draw diagonal cross lines on the remaining blank
c) Develop a Verilog gate level model for the 4X1 Multiplexer using CO 1 PO 1 4
its gate structure.
UNIT - III
3 a) Design a N-bit Magnitude Comparator using Full-adder, write a
Verilog code for a N- bit Magnitude Comparator Using Generate CO 3 PO 3 10
statement. Draw all the required logic diagrams.
b) Explain the structure of various loop statements in HDL with - - 6
syntax and example code.
c) Develop a Serial-In-Serial-Out shift register using always CO 3 PO 3 4
statement.
OR
4 a) Design an 8-bit counter by using a forever loop, named block, and CO 3 PO 3 10
disabling of named block. The counter starts counting at count =
4 and finishes at count = 68. The count is incremented at positive
edge of clock. The clock has a time period of 10. The counter
counts through the loop only once and then is disabled.
b) Explain the blocking and non-blocking statements used in Verilog - - 6
with example.
c) Develop a JK Flip-flop by applying Verilog case statement on CO 3 PO 3 4
output q.
UNIT - IV
5 a) Analyze the following snippet of Verilog code, write the complete CO 2 PO 2 6
Verilog description and interpreted logic diagram with
combination of multiplexers and gates.
b) With flow diagram, explain the RTL to gate level logic synthesis - - 6
flow.
c) Analyse the below given Verilog snippet, write the synthesed logic CO 2 PO 2 8
diagram and complete code. Assume X is a 2-bit vector.
always @ (X)
begin
Y = 2 * X + 3;
end
UNIT - V
6 a) Design a Verilog Moore FSM with one input X and one output Z. CO 3 PO 3 10
The FSM asserts its output Z when it recognizes the following
input sequence:”1011”. The machine will keep checking for the
proper bit sequence and does not reset to the initial state after it
recognized the string. Also write the test code to test the
functionality of the design.
b) Explain the FPGA Architecture with the help of block diagram - - 10
OR
7 a) Design a Moore-type serial adder using Verilog behavioral CO 3 PO3 10
description.
b) Explain the FPGA design flow with block diagram. - - 10
******