Copyright
c
2016, SiFive Inc. All rights reserved.
47
R
eserve
d
31
2
rxwm
1
txwm
0
Figure 13.13: Format of
ie
and
ie
registers.
SPI Flash Interface Control Register (
fctrl
)
When the
en
bit of the
fctrl
register is set, the controller enters SPI flash mode. Accesses to the
direct-mapped memory region causes the controller to automatically sequence SPI flash reads in
hardware. The reset value is
0x1
.
R
eserve
d
31
1
en
0
Figure 13.14: Format of
fctrl
register.
SPI Flash Instruction Format Register (
ffmt
)
The
ffmt
register defines the format of the SPI flash read instruction issued by the controller when
the direct-mapped memory region is accessed while in SPI flash mode.
An instruction consists of a command byte followed by a variable number of address bytes, dummy
cycles (padding), and data bytes. Table 13.8 describes the function and reset value of each field.
pad
code
31
24
cmd
code
23
16
R
eserve
d
15
data
proto
13 12
addr
proto
11 10
cmd
proto
9
8
pad
cnt
7
4
addr
len
3
1
cmd
en
0
Figure 13.15: Format of
ffmt
register.
Field
Description
Reset Value
cmd en
Enable sending of command
0x1
cmd code
Value of command byte
0x03
cmd proto
Protocol for transmitting command
0x0
addr len
Number of address bytes (0 to 4)
0x3
addr proto
Protocol for transmitting address and padding
0x0
pad cnt
Number of dummy cycles
0x0
pad code
First 8 bits to transmit during dummy cycles
0x00
data proto
Protocol for receiving data bytes
0x0
Table 13.8: Instruction format fields. The protocol values follow the same definition as Table 13.5.
Summary of Contents for E300
Page 1: ...SiFive E300 Platform Reference Manual Version 1 0 1 c SiFive Inc ...
Page 2: ...2 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 4: ...ii SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 12: ...4 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 14: ...6 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 22: ...14 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 32: ...24 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 40: ...32 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 56: ...48 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 60: ...52 SiFive E300 Platform Reference Manual Version 1 0 1 ...