Verification Test Question Paper - Maven
Verification Test Question Paper - Maven
50 Marks
PART -A
20 Marks
1. Complete the following code based on the instructions given in the comments
-- 5 Marks
Class transaction;
rand bit[2:0] addr;
rand bit[3:0] data;
endclass
2. Write code to generate both waddr and raddr values in between 10 to 20 for the below transaction
class and start both the sequences inside virtual sequence by showing all connections between
sub sequencer & virtual sequencer. (Note: both write and read drivers should drive the data at the
same time) -- 6 Marks
example e_h=new();
initial
begin
for( int i=0; i< 5; i++)
begin
e_h.y= i;
e_h.z= ~e_h.z;
e_h. cg.sample;
end
end
2. Define transaction for the minute counter with valid constraints.(When one_min is high the
inputs get loaded & when low the counter should start counting and counter works in 12
hour format)
-- 6 Marks
3. Generate the transactions without extending the Transaction class and creating new objects.
-- 6 Marks
class Transaction;
rand bit [31:0] addr, data;
constraint c1 {addr inside{[0:100],[1000:2000]};}
endclass
transaction t;
initial
begin
t = new();
//Generate the transaction with address range [50-100], [1000-1500] and data < 10
//Sending transaction to DUT
driveBus(t);
end
4. Draw the UVM TB architecture to verify FIFO of depth 16 bytes, showing the connections
between the components properly and also write the interface block for the same.
-- 10 Marks