Reading register twice (in the next clock cycle)
Posted: Tue Aug 01, 2017 8:56 am
Hi,
I have the following code and I would like to read the register twice without spending a single clock for flushing buffers etc.
If I use the define, it results into 5 opcodes but I would like to know the register content within the next clock cycle. Is there any chance to do so?
thanks and best regards
Patrick
I have the following code and I would like to read the register twice without spending a single clock for flushing buffers etc.
If I use the
Code: Select all
REG_READ
Code: Select all
50 volatile uint32_t val0 = REG_READ(WDEV_RND_REG);
4008294f: l32r a8, 0x400806b4
40082952: memw
40082955: l32i.n a9, a8, 0
40082957: memw
4008295a: s32i.n a9, a1, 0
Patrick