I'm using Microblaze Softcore Processor in many projects. I tried to measure the time consumption of writing to register and reading from register operations. Here are some results:
- Read two timer values and subtract them : 48 cycles
- Read timer, read any register, read timer again and subtract timer values : 76 cycles
- Read timer, write to any register, read timer again and subtract timer values : 83 cycles
- Read timer, read from any register, write to any register, read timer again and subtract values : 111 cycles
I understood that a read operation takes nearly 28 cycles and one write operation takes nearly 35 cycles. How can I decrease this cycles?
By the way, the configuration for the Microblaze is default. Nothing changed. No caches or shifters used. There are no boosted hardware in the design. AXI-Lite Bus used.