wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Module III

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

The advantage(s) of randomization

a)

It saves time and effort in verification instead of writing a test for every possible scenario.

b)

It has the capability of finding hidden bugs with some random combinations.

c)

Both of these

d)

None of these

2.

The difference between rand and randc is

a)

rand is for floating points and randc is for integers.

b)

randc keyword provides random values without repeating the same value unless a complete range is covered, while rand provides uniformly distributed random variables.

c)

rand keyword provides random values without repeating the same value unless a complete range is covered, while randc provides uniformly distributed random variables.

d)

randc is a normal distribution and rand is a uniform distribution.

3.

Which of the following is not true for a constraint block?

a)

Constraints block must have a unique name within a class.

b)

A constraint block can call a function to get constraint values as the return value from the function.

c)

Constraints are written inside square brackets.

d)

For a particular class, constraint blocks can be written inside a class or outside a class using extern keywords.

4.

The method involves disabling constraints for a particular variable (constraint_mode(0)) or disabling randomization itself.

a)

Pre-randomization

b)

Post-randomization

c)

Assertions

d)

External

5.

To disable randomization, which of the following is used?

a)

rand_mode(1)

b)

rand_mode(0)

c)

rand_mode(n)

d)

rand_mode

6.

The problem with the following statement rand int addr; constraint c { addr < 8; } is

a)

Over-constrained variable

b)

Under-constrained variable

c)

Constraints not pure

d)

Inline constraints that clash with class constraints

7.

Randomization works in:

a)

static methods

b)

virtual methods with no handle

c)

interfaces

d)

Only class objects can have rand variables.

8.

A generic term for measuring progress to complete design verification.

a)

coverage

b)

latency

c)

bandwidth

d)

timing

9.

______________ measures how thoroughly your tests exercised the implementation of the design specification, and not the verification plan.

a)

bug rate

b)

code coverage

c)

functional coverage

d)

assertions

10.

A container that holds cover points and crosses is called ________

a)

a) cover bin

b)

b) cover group

c)

c) cover item

d)

d) cover class

11.

When is Functional Coverage Complete?

a)

When all bins in all coverpoints are hit.

b)

When all cross combinations reach the required coverage.

c)

When coverage goals (e.g., 90% or 100%) are met.

d)

All of these.

12.

______________ measures how thoroughly your tests exercised the implementation of the design specification, and not the verification plan.

a)

code coverage

b)

testbench coverage

c)

requirement coverage

d)

functional coverage

13.

The default value of rand_mode

a)

1

b)

0

c)

empty parentheses

d)

none of these

14.

A constraint that gives the solver some flexibility, indicating that the constraint needs to be satisfied.

a)

soft constraint

b)

hard constraint

c)

range constraint

d)

inside constraint

15.

Both array constraints and iterative constraints

a)

have control size

b)

controls min/max/sum

c)

controls ordering

d)

none of these