HDL Questions
HDL Questions
13.Write switch level description in VHDL for the inverter circuit with NMOS
and PMOS. Explain the advantages of this type description over other
type.
14.Write the result of all shift and rotate operations in VHDL after applying
them to a 7-bit vector A=1001010 for one position.
15.Mention different styles of description in HDL.
(Data flow, Behavioural, Structural, Switch level, Mixed type, Mixed
language.)
16.Write code for switch level description.
17.Discuss major difference between VERILOG and VHDL.
18.Write a short note on simulator and synthesis.
Unit 2
1. What do you mean by the data flow style of description? Explain its
features with a suitable example.
2. Explain the execution of signal assignment statements in HDL and
example.
3. Briefly discuss:
1. Constant declaration and assignment statement.
2. Signal declaration and assignment statement.
4. Design and Write VHDL/Verilog code for 2X2 bit combinational array
multiplication.
5. Draw the block diagram of a 3- bit carry look ahead adder and write data
flow description for its Boolean function verilog.
6. Write VHDL code for 2X1 multiplier with an active low enable in data flow
description.
7. Write the truth table of full adder and derive the Boolean function after
minimization for a full adder with active low enable. Write data flow
description using 2ns delay for any gate include XOR.
8. Obtain the expression for 2 bit comparator and write data flow description
for verilog and VHDL.
9. Write the data flow description VHDL for a system that has three 1 bit
inputs a(1), a(2), a(3) and a(1) least significant bit and 1 bit output b, b=1,
when only a(1)a(2)a(3) = 1, 3, 6, or 7. Drive the minimized Boolean
expression.
10.How do you assign delay time to the signal assignment statements.
11.Explain the use of data type vector with dataflow description.
Unit 3
1. Explain the execution of process statements.
2. Write VHDL code for 3 bit binary counter using CASE statement.
3. Distinguish between signal assignment statement and variable
assignment statement, with help of D latch VHDL code and simulation
waveform.
4. Explain verilog CASEX . Write verilog description of priority encoder using
CASEX statement.
5. With syntax, explain the sequential in HDL with example.
1. IF statement.
2. IF as ELSE-IF.
3. CASE statement
6. Explain the general format of Loop statements in HDL, with example,
(FOR LOOP, WHILE LOOP, REPEAT, FOREVER, NEXT AND EXIT).
7. Write the behavioural description for a half adder using verilog.
8. Write the VHDL description for SR filp-flop using CASE statement and
verilog declaration.
9. Explain BOOTH algorithm with flow chart. Write the VHDL description to
multi[ply two 4- bit number -5 and 7.
12.Write a verilog code to implement a 3 bit counter, with active high
synchronous using case statement.
13. Write a HDL code for JK Filp-Flop using case statement with positive edge
clock.
10.Write a VERILOG code for calculating the factorial of positive integer using
while loop.
11.Write the verilog description for a 4 bit priority encoder.
12.Write VHDL behavioural description of a tristate buffer. Use this as
component structure description of a 2 to 4 decoder with tristate output.
Unit 4
1.
2.
3.
4.
5.