wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Digital Design Quiz 1

Total questions: 10

Worksheet time: 55mins

Name
Class
Date
1.
  • What action can be taken to disable the randomization of any random variable?​

a)

Constraint the variable to "0"

b)

Set rand_mode of variable to "0"

c)

Override in post_randomize function

d)

Set constraint_mode to "0"

2.
  • What will be the value of var after below randomization?​

rand bit [7:0] var;​

constraint var_valid {!(var inside {[10:30]};);}​

a)

Less than 10

b)

Greater than 30

c)

Less than 10 or greater than 30

d)

Between 10 and 30

3.
  • Considering the given circuit, which switching leads to a dynamic hazard?​

a)
  • a=0>1, b=1, c=0, d=1​

b)

a=0>1, b=1, c=0, d=0

c)
  • a=1, b=0, c=1, d=0>1​

d)

a=0, b=1, c=0, d=0>1

4.

A verification engineer is interested in defining a variable to solve his constraints to iterates over all values in a given range without repetition of numbers as shown in the below diagram . Which of the following modifiers best suits for his requirement?

a)

rand

b)

$random

c)

constraint

d)

randc

5.
  • Which of the following statement/statements are correct regarding the final procedure?

a)

The final procedure doesn't take simulation time

b)

A final procedure shall execute after any PLI callbacks that indicate the end of simulation.

c)

The final procedure only triggers once in a simulation

d)

$finish can be executed within a final procedure

6.
  • In 2’s complement representation the number 11011101 represents the decimal number​

a)

-43

b)

-21

c)

-35

d)

Answer is missing

7.
  • Which statement/statements are correct about the decade counter​

a)

It counts through 9 states

b)

It skips counting binary steps from 1010 to 1111

c)

It counts only up to 1001 in binary

d)

To set the counter output to zero, the reset line must be set to high

8.

Consider the given equation. Which could be the value of "x"?

a)

8

b)

10

c)

7

d)

Answer is missing

9.

A serially-fed shift register takes 40 micro-seconds to enter 8-bits. What could be the clock frequency?

a)

25kHz

b)

3125Hz

c)

200kHz

d)

1600kHz

10.

Which of the following circuit diagrams are equivalent to the code given?

a)

b)

c)

d)