summaryrefslogtreecommitdiff
path: root/homework_2/SRC/item.sv
blob: 5decdca05c269c8d999a22b996e876fe94406d44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class Item extends uvm_sequence_item;
  `uvm_object_utils(Item)
  rand bit  in;
  bit 		out;
  
  virtual function string convert2str();
    return $sformatf("in=%0d, out=%0d", in, out);
  endfunction
  
  function new(string name = "Item");
    super.new(name);
  endfunction
  
  constraint c1 { in dist {0:/20, 1:/80}; }
endclass