In reply to shekher201778:
The Verification Academy has a complete section on implementing slave sequences.