summaryrefslogtreecommitdiff
path: root/midterm/SRC/transaction.sv
blob: 1253fc2fb424d1f3aa8b9249a6e1b98dee080340 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import typedef_pkg::*;

class transaction;
  rand operation_t operation;
  rand operand_t operand_a;
  rand operand_t operand_b;

  result_t expected_result;
  result_t actual_result;

  function void print();
    $display("op=%s operand_a=%0d operand_b=%0d expected=%0d actual=%0d", operation.name(),
             operand_a, operand_b, expected_result, actual_result);
  endfunction
endclass