You are on page 1of 6

SYSTEMVERILOG

ASSIGNMENT - 4
write constraint outside of the class with code example.
How will you disable the constraint block with code example?
Write a code for inside constraint
Write a code for implication operator
Write a code for soft constraint
what is the purpose of inline constriant
Write a code to explain unique constraint
Write a code for bidirectional constraint
what is the purpose of solve before operator? explain with simple code?
Write a code for dist constraint?
Write a constraint to generate leap year between 3000 to 5000 years.
Write a constraint to create ascending array value?
How to restrict the array size by using constraint write a code?
What is solve before constraint, explain below code result? Class solvebefore;
How to create an array of random unique value
Constraint for address should be odd and data should be even, when address is even
data should be odd
When solve before constraint used : solve a before b

Solve before constraint is used when there is dependency on two constraints a and b.
Since constraints are bidirectional chances of getting the required values at particular
instance may be difficult. To resolve this dependency we use solve before constraints.
When value of a has to be 1. There are only 50% chances of getting one so we use this
constraints.

You might also like