-
8 OOB and phy power states
8.4
power-on sequence state machine
8.4.3
Speed Negotiation
In
state <
/p>
HP6:HR_AwaitAlign,Host
正在等待的时候
,就有可能为
Host
以不
同的速率接
受信号。
一些恢复电路有可能恢复一些不可预知的数据,
当输入
的信
号高于支持的最大的速度的时候。
相反的,
当接受信号的速率低于预期速率的时
候,
信号的混淆效
应会影响到解码信号的准确性。
因为恢复的数据可能是无效的,
要准备恢复,就要确保
ALIGNp
原语在
< br>HP6:HR_AwaitAlign,Host
状态下被准确
< br>的解码,
根据数据恢复的可能性,
在这种状态下,
和主机预期不同的速度就会导
致错误的解码。
为了减小
ALIGNp
检测和握手的错
误,接收端应完全限定接受到的
ALIGN
序
< br>列,
而不是只是依靠它的一部分。
额外的手段来确保
p>
HP6:HR_AwaitAlign
是准确
的转变并且没有从恢复电路恢复出虚假的信号确保
ALIGNp
被成功的解码。
设计的责任是确保与
Phy
初始化状态机相关的条件和状态是准确的执行并且
没有
受到由于当前选择的速度和不支持的速度接收信号导致错误的解码和转换
的执行的影响。
10.3 FIS Types
10.3.1 FIS Type values
10.3.1.1 Unrecognized FIS Types
一个
FIS
的接收器确定是否要处理未定义或保留为“
无法识别”一个
FIS
类
型。无论接收
机接收未定义或一个特定的
FIS
类型,
host
和
device
在使用之前
发送
FIS,
都应该确认
FIS
的类型是未定义或保留为一个特定的
FIS<
/p>
类型。
10.3.2 CRC
Errors on Data FISes
在
DATA FIS
中
CRC
错误。
如果
devic
e
发送一个
Device
到
host
的
FIS,
那么
需要
对状态字段
(
status fi
eld
)
的
ERR
位置
1
,
BSY
< br>和
DRQ
位清零。
Error
field
段的
ABRT
置
1
。
没有
device
到
hos
t FIS
的传输,在
CRC
错误之后
(
last data fis
)
9.6 Link Layer State
Machine
9.6.1 Terms Used in Link Layer
Transition Tables
1. LERSET:Link layer
COMRESET or COMINIT signal
2.
PHYRDYn
:
PHYRDY signal
取反(
negation
)
3
.
PHYRDY:
defined in setion 7.1.2.
4. Decerr
:
32
位
Dword
p>
的错误解码从
Phy
到
Link
?
无效的
10b
模式
?
Disparity error
?
Primitive with
a control character in the first byte but not an
allowed control character
?
Any control
character in other than the first byte of the
Dword
5. DatDword: A 32 bit pattern
that is formed correctly, but does not
have the primitive leading 10b pattern
(K28.5 or K28.3).
6.
COMWAKE:
Signal
from
the
OOB
detector
in
the
Phy
indicating
that
the
COMWAKE
OOB signal is being detected.
7.
AnyDword:
A
32
bit
pattern
of
any
type
-
even
one
with
DecErr
received
from Phy
11
device command layer protocol
< br>如果主机发送
COMRESET
之前设备已经完成执行命
令层协议,则该设备应从
头开始执行
COMRESET
协议。
如果
device
收到一个
register
,
,
在
device
执
行
完
command layer protocol
,
host
到
devi
ce
的
fis
的
C
位清
0
,
srst
位置
1
,
< br>
然后
device
从头开始执
行软件复位
protocol
(协议)
。
SYNC
Escape
通过
host or device
带回的
link
回到已知状态,在向
device
发送下一条
command
之前,需要软件复位。
11.1 power
on and comreset protocol
如果主机发送一个
hardware
reset
(
power-on
or
comreset
)
,那么
device
就会忽略掉
< br>power management
或者当前
devic
e
命令状态,
device
开始执行<
/p>
hardware reset
。
DHR0: Hardware_reset_asserted:
当硬件复位后,开始进入状态机。
当在这个状态,当
device
等待到
hardware reset
否定信号,然后从
DP1:
DR_Reset
状态退出进入到
phy state
machine
。
Transition DHR0:1
当传输层表明硬件复位被
否定的时候,
device
应当过渡到
DHR1: Execute_diagnostics
状态。
DHR1: Execute_diagnostics
:
p>
进入这种状态时,
transport layer
表明
COMRESET
信号被否定。
在这个状态的时候,
de
vice
初始化
device
hardware
并且执行上电测试。
Transition DHR1:1
device har
dware
初始化和上电测试成功,
device
进入到
DHR2,:Send_good_status state.
Transition DHR1:2
device
hardware
初始化和上电测试失败,
device <
/p>
进入到
DHR3
:
send_bad_status state.
DHR2: Send_good
_status:
这个状态表明
devicehardware
初始化和上电测
试成功
。
device
要求
transport layer
发送一个
FIS
给
host
。如果
device
没有实
现
PACKET
命令功能,就对寄存器进行如下设置。
p>
如果
devi
ce
实现了
PACKET
command
功能,则对寄存器如下设置
Transition
DHR2:1
当
transport
layer
表明
FIS
已经发送完成,
device
进入到
< br>DI0
:
Device_Idle state.
DHR3: Send_bad_status:
进入此状态时
,
device
硬件已经初始化并且上电
测试失败。
当在这个状态,
device
要求
transport layer
发送一个
FIS
给
host
。
如果
device
没有完成
PACKET
command
功能,对寄存器如下设置。