You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It supports Mode 0 (0,0) and mode3 (1,1) transfers. It is expected that there are fewer than 256 addressable registers, but we’re picking 16bit addressing for future extensibility without changing the protocol and to support a circular buffer for storing event history.
2
+
3
+
SPI instructions
4
+
[cols=4,options="header"]
5
+
|===
6
+
|Opcode| Instruction Name | Description| Notes
7
+
| 0x0 | Write byte(s) | Write one or more contiguous bytes |
8
+
| 0x1| Read byte(s) | Read one or more contiguous bytes|
9
+
| 0x2| Bit set | hardware does a bit-wise OR with data and current register state | new_reg = old_reg \|\| data
10
+
| 0x3| Bit clr | hardware does a bit-wise clear with data and current register state |new_reg = old_reg && !data
11
+
|===
12
+
13
+
Note that for the bit-set and bit-clear spi instructions, the AXI controller internally does a read-modify-write operation, resulting
14
+
in a read of the current register state, a bitwise operation with the data, and a write back of the new register state. These are
15
+
not good operations to use if the registers you're modifiying have read-side effects.
0 commit comments