Pass associative array by reference

May I know how to pass an argument of associative array type by reference to a function.

The array looks something like this:

bit                    transaction_ha[bit [127:0]];

In the function declaration, I am a bit confused how to declare this.

function conv_2_hash (ref _<?>_ transaction_ha);


I guess I need to indicate that the argument is associative array of the above type here but I don’t know
how to go about it.

Thanks a lot

In reply to verif_learner:

function automatic void conv_2_hash (ref bit transaction_ha[bit [127:0]]);

better to use a typedef

typedef bit ha_t[bit [127:0]];

ha_t transaction_ha;

function automatic void conv_2_hash (ref ha_t transaction_ha);

You don’t need automatic if this a class method.

Also, there is no reason to pass anything by reference to a function unless it is a very large array and you only plan to access a few of its elements.