Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Verilog Interview Questions and Answers

Ques 11. Explain the purpose of the 'assign' statement in Verilog.

'assign' statement is used to directly assign values to wires in a continuous assignment outside modules.

Example:

assign Y = A & B;

Is it helpful? Add Comment View Comments
 

Ques 12. What is the significance of the 'posedge' and 'negedge' keywords in Verilog?

'posedge' and 'negedge' are used to trigger events on the rising or falling edge of a clock signal, respectively.

Example:

always @(posedge clk) // Executes on the rising edge of 'clk'

Is it helpful? Add Comment View Comments
 

Ques 13. Explain the 'generate' block in Verilog.

'generate' block is used to conditionally instantiate or elaborate code during compilation.

Example:

generate if (USE_FEATURE) begin // Code to be included if USE_FEATURE is true end endgenerate

Is it helpful? Add Comment View Comments
 

Ques 14. What is the purpose of the 'module' keyword in Verilog?

'module' is used to define the interface and behavior of a hardware module in Verilog.

Example:

module adder(input [3:0] A, B, output [4:0] Sum); // Module definition... endmodule

Is it helpful? Add Comment View Comments
 

Ques 15. Explain the concept of blocking and non-blocking assignments in the context of simulation and synthesis.

Blocking assignments are for simulation and represent immediate actions, while non-blocking assignments are for synthesis and represent sequential hardware behavior.

Example:

Blocking: A = B; // Immediate action Non-blocking: A <= B; // Sequential hardware behavior

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

©2026 WithoutBook