Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

SYSTEM DESIGN THROUGH VERILOG

Total questions: 20

Worksheet time: 13mins

Name
Class
Date
1.

What are the possible values of == operator

a)

0,1

b)

0,x

c)

1,x

d)

0,1,x

2.

What is the time period of clock #10 clock = ~clock

a)

10

b)

20

c)

.05

d)

.1

3.

wait statement is

a)

edge sensitive bit

b)

level sensitive

c)

both

d)

none

4.

Asynchronous reset is

a)

Clock dependent

b)

Clock independent

c)

Either

d)

None

5.

For describing circuits like flip flops _____________ statement is used

a)

always

b)

assign

c)

initial

d)

forever

6.

Which construct is used to execute loop fixed number of times

a)

while

b)

forever

c)

for

d)

none

7.

RTL stands for _____________.

a)

resistor‐transfer logic

b)

register‐transistor logic

c)

register‐transfer logic

d)

none of these

8.

What will the following code segment generate on synthesis?

always @(posedge clock)

begin

data3 <= din;

data2 <= data3;

data1 <= data2;

data0 <= data1;

end

a)

Four D flip-flops all fed with the data “din”.

b)

A 4-bit shift register.

c)

A 4-bit parallel-in parallel-out register.

d)

None of these.

9.

Which of the following loops are

supported by verilog?

a)

if-else loop

b)

for loop

c)

while loop

d)

All the above

10.

Which level of abstraction level is available in Verilog but not in VHDL?

a)

Behavioral level

b)

Structural level

c)

Dataflow level

d)

Switch level

11.

Variable and signal which will be updated first?

a)

variable

b)

signal

c)

can't say

d)

None of the above

12.

The input and output ports should be declared inside the ________

a)

Module

b)

Case

c)

wire

d)

None of the above

13.

Which of the following loops are

supported by verilog?

a)

if-else loop

b)

for loop

c)

while loop

d)

All the above

14.

Which level of abstraction level is available in Verilog but not in VHDL?

a)

Behavioral level

b)

Structural level

c)

Dataflow level

d)

Switch level

15.

Which logic level is not supported by

verilog?

a)

U

b)

X

c)

Z

d)

None of the above

16.

Variable and signal which will be updated first?

a)

variable

b)

signal

c)

can't say

d)

None of the above

17.

Which of the following is a difference between a Function and a Task?

a)

A Function can call another function; a Task cannot

b)

A Function cannot call a task; a Task can call another task

c)

A Function has one or more inputs; a Task has no inputs

d)

A Function argument may be an output; a Task’s argument may only be an input

18.

In most synthesis tools, what will happen when a signal that is needed in a sensitivity list is not included?

a)

An error will be generated and the code cannot be synthesized

b)

A warning message will be generated and the code will be synthesized but the resulting netlist will not provide the desired results

c)

The synthesis tool will ignore the sensitivity list since all objects that are read as part of a procedural assignment statement are considered to be sensitive

d)

There will be no effect on the design and pre-synthesis simulation will be consistent with post-synthesis simulation

19.

The keyword @posedge means

a)

Transition from 0 to 1,x or z

b)

Transition from x to 1

c)

Transition from z to 1,x

d)

All the above

20.

Verilog may be written at the

a)

Behavioral level

b)

Structural level

c)

dataflow level

d)

All the above