Verilog QP - 1
Verilog QP - 1
0 2019-20
5. How many possible outputs would a decoder have with a 6-bit binary input?_________
11. What can be Verilog statement for 6 bit register constant C3 with decimal value of 30
12. What can be the Verilog code that declares an 6-bit register, R_H36, and initially assigns it
the hexadecimal value 36
15. If in1 = 4’b101x and in2 = 4’b0101 then in1 + in2 equals
1.What is the difference between bit wise, unary and logical operators?
1 www.cranessoftware.com
©Cranes Software International Limited, Varsity Division V1.0 2019-20
1. What is the difference between blocking and non blocking assignment with example
2. Write any VHDL/Verilog HDL code for an Asynchronous Reset D Flip Flop.
3. Draw the combinational logic circuit with three inputs x,y, z and three output a, b and c. when
binary input is 0, 1, 2 or 3 the binary output is one greater than the input. When the binary input
is 4, 5, 6 or 7 the binary output is one less than the input.
IV Design and write the verilog program for the following (5 x 10 = 50)
1 . Draw the MEALY FSM for following sequence detection “101011” for both overlap and non-
overlap sequence and write the HDL code.
2 www.cranessoftware.com
©Cranes Software International Limited, Varsity Division V1.0 2019-20
2. Design and write a verilog program for a counter which counts 16 states using synchronous
counter.
4. Design ALU with minimum 10 functions using register and write verilog program.
a) Half adder
3 www.cranessoftware.com