how to give delay of 1 nano seconds

Jiggy-Ninja:
1 nHz timing resolution requires a 1GHz clock

Don't be silly - 1nHz is one cycle every 31 years eight and-a-half months.
It's not a crystal you need, it's a calendar.