Section 2 UFS Data Burst State Diagram
第二节UFS数据突发状态转移图解
In the first section of this chapter, we focus on the power state transition diagram from UFS UTP layer point of view. Now we go deeper to UniPro and M-PHY for data burst and PMC (power mode change) diagram. In this diagram, we have M-PHY Line Status, symbols and UniPro packets. No need to know the detail of these now, knowing their names is enough for this chapter. We will illustrate them in the following chapters.
在这一章的第一节,我们聚焦在从UFS UTP层的角度来看的电源状态转移图。现在我们深入一点到UniPro和M-PHY来看一下data burst数据突发和PMC(电源模式转化)图解。在这个图解里面我们有M-PHY的线路状态,字符以及UniPro包。现在没必要知道这些细节,这一章里只需要知道它们的名字就够了。我们将会在随后的章节里面解释它们。
We start from LSS (Link Start Sequence), to simplify the diagram, we only list M-PHY line state Activate and Line-Reset here, Activate is defined as Diff_n (Negative Differential signals) before Line -Reset, which is a Diff_p (Positive differential signal) pulse with specific minimum pulse width requirement. Line-Reset is not only used in the LSS sequence, but also could be used in error recovery process.
我们从LSS(链接开始序列)开始,为了简化这个图解,我们这里只列出了M-PHY的线路状态Activate激活和Line-Reset线路复位,Activate这里定义的是一个在线路复位之前的负差分信号,而Line-Reset是一个有特定最低脉宽要求的正差分信号脉冲信号。Line-Reset不仅用在LSS里,也可以用在错误恢复的流程里。
TRG_UPR (UniPro Trigger) packet for LSS are not stated here and will be explained in the UniPro Chapter. LSS is for Handshaking process between UFS Host and UFS Device, which could only be initialized from UFS Host. Before UFS4.0 specification, LSS could only be done in Low Speed PWM mode, this is for easy interconnecting between UFS Host and UFS Device when power up. However, in order to save LSS time, in latest UFS4.0 specification define the high Speed LSS as well.
LSS的TRG_UPR(UniPro触发)包在这里不表述,会在Unipro里面细讲。LSS是UFS主机和UFS器件之间的握手流程,只能由UFS主机发起。在UFS4.0协议之前,LSS只能在低速模式PWM里,因为这样比较容易在上电的时候UFS主机和UFS器件之间的互联。然而,为了节省LSS的时间,在最新的UFS4.0协议里面也定义了高速的LSS。
Next, we have options to Change Power Mode by PMC (Power Mode Change) packet, either to Low-Speed specific Gear or High-Speed specific Gear. Please note we could still stay in the original Gear for Data Burst transmission, either in High-Speed or in Low-Speed. In order to start Data Burst, we need first go Diff_n. This negative Differential signal is called sleep for Low-Speed or Stall for High-Speed. Then it is followed by a Diff_p pulse called Prepare.
接下来,我们可以通过PMC(电源模式改变)包来选择性的改变电源模式到低速特定档位或者高速特定档位。请注意我们仍然可以待在原来的低速或者高速档位进行数据突发传输。为了开始数据数据突发传输,我们首先要来一个Diff_n。这个负差分信号在高速叫做STALL,在低速叫做SLEEP。之后再跟一个叫做Prepare的Diff-p的脉冲信号。
In order to secure high-speed data sampling synchronization at peer receiver, termination is used on the transmission line for the High-Speed signal. Meanwhile and a series of special symbols stream called SYNC will be transmitted right before data burst. Low-Speed Data Burst transmission do not need these two.
为了保证对面接受端的正高速信号采样同步,高速信号需要Termination。同时就在数据突发之前,还需要传输叫做SYNC的一系列特殊的字符流。低速数据突发传输不需要这两个。
Then we finally start Data Burst transmission。MK0 (Marker0) is a M-PHY symbol used to indicate the HOB (Head of Burst), now we can transmit different kinds of controlled symbols MKn, FLR (filler symbol) or the packet composed by data symbols and controlled symbols. TOB (Tail of Burst) is used to indicate the end of Burst.
最后我们终于开了数据突发传输。MK0(标记0)是一个用来指示HOB(突发头)的M-PHY控制字符,现在我们可以开始传输各种不同控制字符MKn,FLR(填充字符)或者由数据字符以及控制字符组成的包。TOB(突发尾)用来标识突发结束。
Another PMC packet requested by UFS Host after Data Bust will let UFS device goes into Hibernate. Hibernate is short as HIBERN8, as EIGHT share the same pronunciation as the last syllable with Hibernate. Hibernate is short as H8 sometimes. Hibernate is an important power state for Differential Signals Zero from M-PHY point of view, which could be connected with UFS UTP Layer UFS Sleep and UFS DeepSleep Power State which are explained in the Section 1 of this Chapter.
在数据突发之后,另外一个PMC包用来让UFS器件进入休眠模式。休眠被简写成HIBERN8,因为Eight的发音和Hibernate的最后一个音节发音相同。有时候Hibernate也被简写成H8。从M-PHY的角度来看,Hibernate是一个差分0电平的重要电源状态,这个可以和这一章上一节解释过的UFS睡眠和UFS深度睡眠联系起来。
From HS-G4 (High-Speed Gear 4), a new feature Adapt is introduced for extreme High-Speed data transmission. Adapt is optional, not mandatory. Which means if the system design is with high confidence level of Signal Integrity, there is no need to use Adapt. Adapt could be treated as a special Data Burst with specific Data Pattern to train the peer receiver sampling. There are two types of Adapt, one is longer one once initialization LSS and power mode change to HS-G4 done while right before HS-G4 Data Burst. The other is short one after Hibernate to minimize the temperature or other negative impact to the signal transmission with a period Hibernation time. Again, both these two types of Adapt are optional, decided by UFS Host design.
从HS-G4(高速档位4)开始,为了极高速度的数据传输,一个新的特性Adapt被引入。Adapt是可选的,并不强制。这个也意味着如果对于信号完整性自信比较高的系统设计,没必要使用Adapt。Adapt可以认为是一个特殊的包含特定数据样式的数据突发,用来训练对方接收器的采样。用两种类型的Adapt,一个长一点,是在初始化 LSS和数据模式切换到HS-G4完成,而正在HS-G4数据突发之前。另外一个是在Hibernate之后短的,为了尽量减小一段时间的休眠时间内温度或者其他负面影响。