I want to have reusable assertion checkers with package of functions but i want to use parameters in both depending on the project. Is there a way to do it and then in TB i could just bind and pass parameters to “test_module“?
Below is kind of example of what i want to have.
package func_pkg;
function bit[parameter_a : 0] func_a(bit[parameter_b : 0] in_a);
return in_a[parametar_a:0];
endfunction
endpackage
module test_module#(parameter x, parameter y)(input bit clk)
property check_me;
@(posedge clk)
func_a#(x,y) |-> 1';
endproperty
assert property(check_me)
endmodule