Dvlsi Unit-3 Notes
Dvlsi Unit-3 Notes
(AUTONOMOUS)
L.B.Reddy Nagar :: Mylavaram – 521 230 :: Krishna Dist.:: A.P.
Q.No Questions
1 Develop Behavioral Verilog Code for BCD to 7-Segment Decoder
2 Verilog Code for BCD Adder Verilog Code for a 2-digit BCD adder, which will add two BCD numbers
and produce the sum in BCD format.
7 Write synthesizable Verilog code that will generate the given waveform (W). Use a single always block.
Assume that a clock with a 1 μs period is available as an input.
8 Four pushbuttons (B0, B1, B2, and B3) are used as inputs to a logic circuit. Whenever a button is
pushed, it is debounced, after which the circuit loads the button number in binary into a 2-bit register
(N). (i.e., if B2 is pushed, the register output becomes N = 102). The register holds this value until
another button is pushed. Use a total of two flip-flops for debouncing. Use a 10-bit counter as a clock
divider to provide a slow clock for debouncing. Kd is a signal that is 1 when any button has been
pushed and debounced.
(a) Draw a state graph (two states) to generate the signal that loads the register when Kd = 1.
(b) Draw a logic circuit diagram showing the 10-bit counter, the 2-bit register N, and all necessary
gates and flip-flops.
9 Design a simple scoreboard, which can display scores from 0 to 99 (decimal). The input to the system
should consist of a reset signal and control signals to increment or decrement the score. The 2-digit
decimal count gets incremented by 1 if increment signal is true and is decremented by 1 if decrement
signal is true. If increment and decrement are true simultaneously, no action occurs
10 Behavioral Model for 4 × 4 Binary Multiplier that It multiplies a 4-bit multiplicand by a 4-bit multiplier
to give an 8-bit product