In reply to kathula venkatesh:
Your question is not very clear. Are you using the UVM? (Seems like yes from your previous questions). You can use the uvm_cmdline_processor to get command line arguments from any class. But even if you are not using UVM, you can still use $test$plusargs and $value$plusargs from anywhere.
If you are using the UVM, the you use the uvm_config_db to share any value you have. But is you question really about how to write a constraint and not really an issue with $test$plusargs?