wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

IHDL_Midterm Quiz

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Turn off delay means, gate output transition to

a)

0

b)

1

c)

z

d)

x

2.

In continuous assignment left hand side must be

a)

net

b)

reg

c)

scalar or vetor net

d)

scalar or vector reg

3.

10 % 3 evaluates to

a)

-1

b)

1

c)

0

d)

x

4.

For describing circuits like flip flops _____________ statement is used

a)

always

b)

assign

c)

initial

d)

forever

5.

Which construct is used to execute loop fixed number of times

a)

while

b)

forever

c)

for

d)

none

6.

Inout ports must always be

a)

net

b)

reg

c)

trireg

d)

none

7.

RTL stands for _____________.

a)

resistor‐transfer logic

b)

register‐transistor logic

c)

register‐transfer logic

d)

none of these

8.

Verilog is an

a)

Case Insensitive

b)

Case Sensitive

c)

Can't say

9.

The most appropriate modeling style to implement Traffic light controller will be

a)

Dataflow

b)

Structural

c)

Behavioral

d)

Switch

10.

What is the basic unit of structural modeling?

a)

Process

b)

Component declaration

c)

Component instantiation

d)

Block

11.

What do you mean by component instantiation?

a)

To use the component

b)

To describe external interface of the component

c)

To declare the gate level components

d)

To remove any component from the design

12.

The structural model is similar to___________

a)

Boolean relations of the circuit

b)

Schematic block diagram of the circuit

c)

Timing relations of the circuit

d)

Components of the circuit

13.

Which of the following is correct syntax for component declaration?

a)

COMPONENT component_name IS PORT ( port_mode : type port_name; port_mode : type port_name; ….); END component_name;

b)

COMPONENT component_name IS PORT ( port_mode : type port_name; port_mode : type port_name; ….); END COMPONENT;

c)

COMPONENT component_name IS PORT ( port_name : mode type; port_name : mode type; ….); END component_name;

d)

COMPONENT component_name IS PORT ( port_name : mode type; port_name : mode type; ….); END COMPONENT;

14.

@posedge means

a)

Transition from x to 1

b)

Transition from 0 to 1, x or z

c)

Transition from z to 1, x

d)

Transition from 1 to 0

15.

A loop statement is used where we needs to ________

a)

Select one from many choices

b)

Check a condition

c)

Repeat the statements

d)

Choose one from two cases

16.

Loop is a ________ statement.

a)

Concurrent

b)

Sequential

c)

Assignment

d)

Functional

17.

What is the use of FOR loop?

a)

To repeat the statement finite number of times

b)

To repeat the statement until any condition holds true

c)

To repeat the statements for infinite time

d)

To repeat statements inside until any condition is false

18.

What is the use of WHILE loop?

a)

To repeat the statement finite number of times

b)

To repeat the statement until any condition holds true

c)

To repeat the statements for infinite time

d)

To repeat statements inside until any condition is false

19.

Which of the following is correct syntax for WHILE LOOP?

a)

label: WHILE LOOP specification IS sequential_statements;

END LOOP;

b)

label: WHILE LOOP condition sequential_statements;

END LOOP label;

c)

label: WHILE condition LOOP sequential_statements;

END LOOP label;

d)

label: WHILE specification LOOP

sequential_statements; END LOOP;

20.

The input and output ports should be declared inside the ________

a)

Module

b)

Case

c)

wire

d)

None of the above