In reply to leela:
It would help greatly if you can explain further what you mean by “not working”. Are you getting a compiler error? Or not getting the results you expect?
You cannot change
parameter values during a simulation; they are pre-simulation constants. You can pass values that change as regular ports to a bound module.