Passing TB/RTL parameters to sequences

In reply to chr_sue:

I need these parameters to create class variables with array index of N(number of ports). So, the information has to be passed to the class using parameters. How do I use config_db to serve this purpose?