-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslots.bin.mem
44 lines (42 loc) · 1.28 KB
/
slots.bin.mem
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Slots file line structure:
//
// |=======|=======|=======|=======|=======|=======|=======|=======|=======|
// | bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
// | field | NOP | - | - | - | SADDR | TDATA | R/W |
// |=======|=======|=======|=======|=======|===============|=======|=======|
//
// fields:
// - NOP: no-operation; don't do anything if bit set
// - SADDR: specify address source 1-4
//
// source 1: 00
// source 2: 01
// source 3: 10
// source 4: 11
//
// - TDATA, R/W: specify data ouptut (read) 1-2 or data input (write) 1
// and if operation is read or write
//
// --- TDATA ---
// target 1: 0X
// target 2: 1X
//
// --- R/W ---
// read: X0
// write: X1
//
// --- ALL ---
// read to destination 1: 00
// read to destination 2: 10
// not used: 01
// write from source 1: 11
//
// test pattern 1
10000001 // noop write byte 1
10000001 // noop write byte 2
10000001 // noop write byte 3
10000001 // noop write byte 4
10000001 // noop write byte 5
00000000 // read byte 1
00000000 // read byte 2
00000000 // read byte 3