I am trying to generate delay in CPU. For instance after writing a register, I want to read it again after 1000ns. What should be the C code or the assembly code for the same?
Granularity of 10ns would be fine. I will explore the timer thing you are telling.