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