Hi,
I have following code which uses typedef statement, is there another way to code this without using typedef?
class A#(type T=integer); typedef A#(T) A_type; //Is it possible to re-write this without using typedef T size; T payload [] T i; function new (T size); ........................ endfunction
function integer calc_parity(T payload); ----------- endfunction
function T get_size(A_type p) ------------uses calc_parity function --------- endfunction
endclass
Please Help. Thank you |