Ut2 Fpga Print
Ut2 Fpga Print
PART B 4 X 12 = 48 Marks
Q No Questions BL CO
1 i) Explain about user defined types and its declaration with examples. (6) K2 CO3
ii) Write the features of unpacked and packed union in system verilog. (6)
2 Discuss about Array in System Verilog declaration and its types with suitable examples. K2 CO4
3 Design a FSM for the given vending machine using system verilog, it accepts only two coins, 5 pointand 10 point. K3 CO5
Whenever total of coins equal to 15 points, then nw_pa signal will gohigh and user will get news paper. It will
not return any coin, if total of points exceeds15 points.
Sr. No. Name of the Direction Width Description
Pin
1 Nw_pa Output 1 News Paper Signal
2 Coin Input 2 Only two Coins,
5 =2’b01
10 =2’b10
0 =2’b00
3 Clk Input 1 Clock Signal
4 Rst Input 1 Reset Signal
4 A sequence detector which will recognize the three-bit sequence 110. Your detector should output a 1 each K3 CO5
time the sequence 110 comes in. The input is a clocked serial bit stream.
i) Draw the state diagram for Moore Machine implementation of this FSM.
Ii) Write a system verilog code implementation of the rising edge detector.
1. 2.
Scrutiny Committee Signature HOD/PECE