wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

IHDL_SEMFQUIZ

Total questions: 20

Worksheet time: 15mins

Name
Class
Date
1.

What is the main purpose of a Verilog testbench?

a)

To synthesize hardware

b)

To simulate and verify the design

c)

To generate RTL code

d)

To program an FPGA

2.

A testbench is NOT allowed to contain which of the following?

a)

initial blocks

b)

Delay statements (#10)

c)

$display statements

d)

Input/output ports

3.

In a testbench, signals connected to the DUT inputs must be declared as:

a)

wire

b)

reg/logic

c)

integer

d)

parameter

4.

What does the $monitor system task do?

a)

Ends the simulation

b)

Prints signal changes whenever they occur

c)

Dumps waveform values

d)

Generates random test vectors

5.

Which Verilog construct groups multiple signals?

a)

begin

b)

assign

c)

{A, B}

d)

@(*)

6.

A Verilog module used inside a testbench is called a:

a)

Prototype

b)

Function

c)

Instance

d)

Class

7.

In behavioral modeling, which block describes combinational logic?

a)

always @(*)

b)

always @(posedge clk)

c)

initial

d)

assign

8.

Which of the following is TRUE about behavioral modeling?

a)

Uses logic gates only

b)

Describes how the circuit behaves

c)

Cannot model combinational logic

d)

Requires FPGA hardware

9.

Which statement is used for decision-making in behavioral Verilog?

a)

loop

b)

assign

c)

if-else

d)

@()

10.

A testbench starts execution automatically because it uses:

a)

always blocks

b)

Modules

c)

initial blocks

d)

function blocks

11.

Which statement ends a simulation?

a)

$display

b)

$finish

c)

$stop

d)

endmodule

12.

In behavioral modeling, which type of assignment is typically used for combinational logic?

a)

Non-blocking (<=)

b)

Blocking (=)

c)

Both A and B

d)

Only assign

13.

What is the sensitivity list for combinational logic?

a)

@(posedge clk)

b)

@(negedge clk)

c)

@(*)

d)

@(A or B)

14.

A minimal testbench must include:

a)

A clock

b)

Looping logic

c)

DUT instantiation

d)

Random vectors

15.

What does {A, B, C} = 3'b101; do?

a)

Assigns A=0, B=0, C=0

b)

Assigns A=1, B=0, C=1

c)

Assigns A=1, B=1, C=0

d)

Causes an error

16.

Which keyword is required for behavioral conditional logic?

a)

defparam

b)

fork

c)

if / else

d)

always_ff

17.

Which type of Verilog description is best for large digital systems?

a)

Gate-level modeling

b)

Behavioral modeling

c)

Switch-level modeling

d)

Transistor-level modeling

18.

What is a characteristic of combinational logic?

a)

Depends only on current inputs

b)

Requires a clock

c)

Stores data

d)

Always sequential

19.

Which of the following is NOT a valid data type in Verilog?

a)

wire

b)

integer

c)

reg

d)

float

20.

What does the 'posedge' keyword signify in Verilog?

a)

Falling edge of a clock signal

b)

High logic level

c)

Rising edge of a clock signal

d)

Low logic level