JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech II DIGITAL DESIGN USING VERILOG HDL Previous Question Paper (March - 2022 - R13)
Answer any five questions
All questions carry equal marks
Main
Explain port declaration with an example using Verilog code.
Answer
Port declarations define the interface of a module, specifying the direction of data flow between the module and its environment. There are three primary port types: input, output, and inout.
The input port is a receiver of data, output is a driver of data, and inout represents a bidirectional port. In Verilog, ports must be declared within the module header or the body, and their data types (wire or reg) must be consistent with their usage.
Example:
module full_adder(input a, input b, input cin, output sum, output cout);
assign sum = a ^ b ^ cin;
assign cout = (a & b) | (b & cin) | (a & cin);
endmoduleWrite about white space characters and variables with examples.
Answer
White space characters, including spaces, tabs, and newlines, are used to separate tokens in Verilog. They are ignored by the compiler except when they appear within strings. They are essential for code readability and formatting.
Variables in Verilog are used to store and manipulate data. The two primary types are nets and registers:
- Nets: Represent physical connections between components. They do not store values and must be continuously driven. The most common type is
wire. Example:wire [7:0] data_bus; - Registers: Represent data storage elements. Unlike physical hardware registers, they hold their value until the next assignment. They are declared using the
regkeyword. Example:reg [3:0] counter;
Variables can be declared as scalars (single bit) or vectors (multiple bits), as shown in the examples above.
What is a three-state gate and explain each type of three-state gate with truth tables?
Answer
Sign in to view the complete answer paper.
Design module and a test bench for a half-adder.
Answer
Sign in to view the complete answer paper.
Design a Verilog module of a 4-bit bus switcher at the data flow level.
Answer
Sign in to view the complete answer paper.
Explain about operator priority with examples.
Answer
Sign in to view the complete answer paper.
Design Verilog module Event construct for a serial data receive and test bench for the same.
Answer
Sign in to view the complete answer paper.
Write Verilog code using case statement for any one example.
Answer
Sign in to view the complete answer paper.
Write syntax for while loop and write a Verilog code for n-bit Johnson counter.
Answer
Sign in to view the complete answer paper.
What is the difference between a sequential block and a parallel block? Explain using an example.
Answer
Sign in to view the complete answer paper.
Design Verilog module for CMOS flip-flop.
Answer
Sign in to view the complete answer paper.
What do you mean by User Defined Primitives (UDP) and explain the types with examples?
Answer
Sign in to view the complete answer paper.
What are the various sequential memory storage models? Explain in detail.
Answer
Sign in to view the complete answer paper.
How the memory initialization carried out in Verilog? Explain with the help of an example.
Answer
Sign in to view the complete answer paper.
Explain in detail about formal verification of a system.
Answer
Sign in to view the complete answer paper.
What is the use of assert cycle sequence and assert next? Explain using an example.
Answer
Sign in to view the complete answer paper.