wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Basic and Advanced Verilog HDL module

Total questions: 46

Worksheet time: 35mins

Name
Class
Date
1.

Which of the following is standardised as IEEE 1364?

a)

C

b)

C++

c)

FORTRAN

d)

Verilog

2.

Who developed the Verilog?

a)

Moorby

b)

Russell and Ritchie

c)

Moorby and Thomson

d)

Thomas

3.

Which of the following is a Verilog version 1.0?

a)

IEEE standard 1394-1995

b)

IEEE standard 1364-1995

c)

IEEE standard 1394-2001

d)

IEEE standard 1364-2001

4.

The default value for reg data type is

a)

0

b)

x

c)

1

d)

z

5.

What are the possible values of == operator

a)

0

b)

x

c)

z

d)

1

6.

@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)

Transition from 1 to 0

7.

The wait statement is

a)

level sensitive

b)

edge sensitive

c)

both

d)

none

8.

To suspend a simulation, you can use this system task command.

a)

$end

b)

$finish

c)

$stop

d)

$close

9.

In continuous assignment statement LHS can be

a)

Vector net

b)

Scalar net

c)

Concatenation of both

d)

all of the above

10.

To trigger an event, we can use the following operator.

a)

---->

b)

==

c)

@

d)

=>

11.

In non-blocking assignment, the compiler

a)

Evaluates all RHS for the current time unit and assign to LHS at the end of time unit

b)

Evaluates all RHS for the current time unit and assign to LHS at the current time

c)

Both of the above options are correct, depending on the specific case

d)

None of the options are correct

12.

Netlist is a ______ representation of a circuit.

a)

graphic

b)

text‐based

c)

handwritten

d)

pictorial

13.

RTL stands for _____________.

a.

c.

a)

resistor‐transfer logic

b)

register‐transistor logic

c)

register‐transfer logic

d)

none of these

14.

Verilog HDL originated at

a)

AT&T Bell laboratories

b)

Defense Advanced Research Projects Agency(DARPA)

c)

Gateway Design Automation

d)

Institute of Electrical and Electronics Engineers(IEEE)

15.

Which is legal negative number

a)

4'd-3

b)

6'-d3

c)

-6d'3

d)

None

16.

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

a)

10

b)

20

c)

5

d)

None

17.

#40 $finish indicates

a)

end of simulation time

b)

end of simulation at 40 time units

c)

suspend simulation at 40 time units

d)

None

18.

What is the width of time register

a)

16 bit

b)

32 bit

c)

64 bit

d)

128 bit

19.

%g or %G displays

a)

Real numbers in decimal or scientific notation

b)

Real numbers in decimal or scientific notation whichever shorter

c)

Real numbers in scientific format

d)

Real numbers in decimal format

20.

Parameter value can be overridden at module instance by

a)

`define

b)

`include

c)

`ifdef

d)

`timescale

21.

If x=4'b1100 then x<<2 is

a)

4'b1000

b)

4'b0000

c)

4'b0011

d)

4'b0110

22.

If x=4'b1100 then &x equals

a)

1'b0

b)

1'b1

c)

4'b1100

d)

None

23.

If A=4'b1010 and B=4'b1100 then A&B

a)

4'b0000

b)

4'b1000

c)

1'b1

d)

1'b0

24.

If A=1'b1,B=2'b01,C=2'b00 then y= {A,B[0],C[1]} equals

a)

3'b110

b)

3'b100

c)

3'b101

d)

1'b0

25.

If A=1'b1,B=2'b01,C=2'b00 y={4{A},2{B},C} equals

a)

10'b1111010100

b)

9'b111101010

c)

8'b11110100

d)

None

26.

casex treats

a)

0 as don't care

b)

x as don't care

c)

z as don't care

d)

Both x and z as don't care

27.

<= is used in

a)

Blocking

b)

Non Blocking

c)

Both

d)

None

28.

Asynchronous reset is


a)

Clock dependent

b)

Clock independent

c)

Either

d)

None

29.

Which construct is used to execute loop fixed number of times

a)

repeat

b)

while

c)

forever

d)

None

30.

Random number is generated by

a)

$random

b)

$rand

c)

$strobe

d)

None

31.

Setup time is

a)

Minimum time the data must arrive before active clock edge

b)

Maximum time the data must arrive before active clock edge

c)

Minimum time the data cannot change after active clock edge

d)

None

32.

Arrays are not allowed for

a)

integer

b)

register

c)

time

d)

real

33.

Which directive is used to include entire content of Verilog source Into another file

a)

'include

b)

'ifdef

c)

'ifndef

d)

None

34.

All ports by default are

a)

reg

b)

inout

c)

wires

d)

Should be defined

35.

inout ports must always be

a)

reg

b)

net

c)

trireg

d)

none

36.

The left hand side of procedural continuous assignment can be

a)

Register or concatenation of registers

b)

Net or concatenation of nets

c)

Can be both registers or nets

d)

Array of registers

37.

For the segment given below choose the correct answer


bufif0 #(5,6,7) c1(out,in,cntrl)

a)

5=rise 6=turnoff 7=fall

b)

5=fall 6=rise 7=turnoff

c)

5=rise 6=fall 7=turnoff

d)

5=turnoff 6=rise 7=fall

38.

Which of the following is true about always statement

a)

There may be exactly one always block in a design.

b)

There may be exactly one always block in a module

c)

Execution of an always block occurs exactly once per simulation run

d)

An always block may be used to generate a periodic signal

39.

In UDP (user defined premitives)

a)

Multiple input and one output is permitted

b)

One input and multiple output is permitted

c)

Multiple input and multiple output is permitted

d)

One input and one output is permitted

40.

For the below code segment given below


always @(posedge clk)

a=b;

always @(posedge clk)

b=a;

a)

Values of a and b are swapped

b)

Values of a and b cannot be swapped

c)

Values of a and b can be swapped depending on simulator

d)

Can't determine

41.

Clock skew is the phenomenon of

a)

Synchronous circuit

b)

Asynchronous circuit

c)

Both

d)

None

42.

Cycle based simulation is useful for

a)

Synchronous circuit

b)

Asynchronous circuit

c)

Both

d)

None

43.

For tri0 what is the value when nothing is driving

a)

1

b)

0

c)

x

d)

z

44.

Which is object oriented programming

a)

VHDL

b)

Verilog

c)

System Verilog

d)

none

45.

wand differs from wor in the way

a)

wand forced to one if any driver to it is zero while wor forced to zero if any driver to it is zero

b)

wand forced to zero if any driver to it is zero while wor forced to one if any driver to it is one

c)

wand forced to zero if any driver to it is one while wor forced to one if any driver to it is zero

d)

wand forced to one if any driver to it is one while wor forced to zero if any driver to it is zero

46.

If there is mismatch in connecting wire such as

Y1[7:0] = Y2[15:0]

a)

The end result is Y1[7:0]=Y2[15:0]

b)

The end result is Y1[15:0]=Y2[7:0]

c)

The end result is Y1[7:0]=Y2[7:0]

d)

Can't determine