Please have a look at the following link, which explains the above stuff very clearly in a step-by-step manner …
Verification Course Blog | VeriLog Courses | CVC