Unified Test Writing Framework for Pre and Post Silicon Verification