Practice - Assignment - For - SystemVerilog
Practice - Assignment - For - SystemVerilog
1 2 3 4 5
2 3 4 5 6
3 4 5 6 7
4 5 6 7 8
5 6 7 8 9
Write a code to randomise a queue array in such a way that the array contains only even numbers and must
bounded in a range of 50 to 100.
Assume that implementer has written a class to randomize the variable with restriction that it always generates the
value greater than 50, Now as a testcase writer got a task to override the constraint and generate the value less
than 50, Write the code for the above scenario.
Assume that there is a property in super class which is of rand type, Now constraint the randomisation of the
particular property in the range of 100 to 150, from child.
Now take the same property in both parent class and child class and repeat the same scenario as above.
Write five time consuming tasks with a condition that all tasks should end at different instances
Execute all the above tasks concurrently.
Execute any three tasks concurrently and remaining two tasks should execute after the execution of first
three tasks (note: these tasks run concurrently).
Execute any three tasks concurrently and remaining two tasks should start after completion of any task
that consumes least time.
Execute any three tasks concurrently and the remaining two tasks also should run concurrently
irrespective of the status of those three tasks.
Execute all 5 tasks sequentially but task 3 should run in background.
Execute task 1,2,3 concurrently, Now the task 4 should start to execute if any one of the tasks above
started completed its execution, And task 5 should execute only after the completion of task 1,2, and 3.
What is Interface class?
What is actual Class?