[go: up one dir, main page]

TWI489845B - Slave device for an ethernet system and related method of reducing synchronization power consumption - Google Patents

Slave device for an ethernet system and related method of reducing synchronization power consumption Download PDF

Info

Publication number
TWI489845B
TWI489845B TW102106297A TW102106297A TWI489845B TW I489845 B TWI489845 B TW I489845B TW 102106297 A TW102106297 A TW 102106297A TW 102106297 A TW102106297 A TW 102106297A TW I489845 B TWI489845 B TW I489845B
Authority
TW
Taiwan
Prior art keywords
clock
ethernet system
slave device
phase difference
data
Prior art date
Application number
TW102106297A
Other languages
Chinese (zh)
Other versions
TW201325173A (en
Inventor
Ting Fa Yu
Liang Wei Huang
Rong Jen Chang
Ming Je Li
Original Assignee
Realtek Semiconductor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Realtek Semiconductor Corp filed Critical Realtek Semiconductor Corp
Priority to TW102106297A priority Critical patent/TWI489845B/en
Publication of TW201325173A publication Critical patent/TW201325173A/en
Application granted granted Critical
Publication of TWI489845B publication Critical patent/TWI489845B/en

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Description

用於乙太網路系統之從裝置及其相關可改善同步耗電之方法Slave device for an Ethernet system and related methods for improving synchronous power consumption

本發明係關於一種從裝置及其相關時脈同步方法,尤指一種用於乙太網路系統之從裝置及其相關可改善同步耗電方法。The present invention relates to a slave device and its associated clock synchronization method, and more particularly to a slave device for an Ethernet system and related methods for improving synchronization power consumption.

在一Giga乙太網路(Giga Ethernet)系統中,無論有沒有資料的傳輸,主裝置(Master)和從裝置(Slave)都必須藉著傳送閒置序列(Idle Sequence)來維持時脈同步。然而,在沒有資料傳輸的情況下,持續地傳送閒置序列會造成過多的電力消耗。因此,美國電機暨電子工程師協會(Institute of Electrical and Electronics Engineers,IEEE)制定了能源效能乙太網路(Energy Efficient Ethernet,EEE)的規範來節省電力的消耗。在能源效能乙太網路規範下,當主從裝置不傳送資料時,雙方皆進入睡眠模式,僅偶爾醒來傳送閒置序列來維持同步。In a Giga Ethernet system, both the master and the slave must maintain the clock synchronization by transmitting the idle sequence (Sdle) with or without data transmission. However, continuously transmitting idle sequences without data transmission can result in excessive power consumption. Therefore, the Institute of Electrical and Electronics Engineers (IEEE) has developed Energy Efficient Ethernet (EEE) specifications to save power consumption. Under the energy efficiency Ethernet specification, when the master and slave devices do not transmit data, both parties enter the sleep mode, and only occasionally wake up to transmit the idle sequence to maintain synchronization.

在乙太網路系統中,從裝置係根據接收訊號來進行時脈回復。舉例來說,主裝置的傳送器使用固定之一自由運作時脈(Free Running Clock)來傳送訊號。當從裝置的接收器接收到傳送訊號後,從裝置進行時脈回復(Timing Recovery)的動作,以產生相同於主裝置之該自由運作時脈之一回復時脈,從裝置的傳送器及接收器則分別根據該回復時脈來傳送或取樣訊號。當接收器收到從裝置根據該回復時脈所傳送的訊號,主裝置的接收器進行同步,使接收器取樣之相位最佳化。In an Ethernet system, the slave device responds to the clock based on the received signal. For example, the master's transmitter uses a fixed Free Running Clock to transmit the signal. After receiving the transmission signal from the receiver of the device, the slave device performs a Timing Recovery operation to generate one of the free-running clocks of the master device to reply to the clock, the transmitter and the receiver of the slave device. The device transmits or samples the signal according to the reply clock. When the receiver receives the signal transmitted by the slave device according to the reply clock, the receiver of the master device synchronizes to optimize the phase of the receiver sample.

為了達到省電目的,Giga乙太網路在閒置模式下包含兩種機 制:對稱機制(Symmetric)與非對稱機制(Asymmetric)。在對稱機制下,主裝置和從裝置兩者在不傳送資料時,同時進入安靜模式(Quiet Mode),並在任一方傳送資料時,同時甦醒(Wake Up)。於甦醒過程中,主裝置主導離開安靜模式,從裝置只能提出甦醒要求(Request)指令。當傳送資料為單一方向時,一方(主裝置/從裝置)在傳資料,另一方(從裝置/主裝置)無資料傳送,但對稱機制下必須同睡同醒,無法進入安靜模式造成多餘電力的消耗。In order to save power, Giga Ethernet includes two machines in idle mode. System: Symmetric and Symmetric. Under the symmetry mechanism, both the master device and the slave device enter the Quiet Mode at the same time when the data is not transmitted, and wake up at the same time when the data is transmitted by either party. During the wake-up process, the master device leads away from the quiet mode, and the slave device can only issue a wake-up request (Request) command. When the transmitted data is in a single direction, one party (master device/slave device) transmits data, and the other party (slave device/master device) has no data transmission, but under the symmetry mechanism, it must be awake with sleep, unable to enter quiet mode to cause excess power. Consumption.

非對稱機制包含了下列兩種情況:第一,從裝置進入安靜模式,主裝置持續發送訊號給從裝置;由於從裝置接收主裝置傳送的訊號,進行時脈回復的動作,所以雙方仍然可以達到時脈同步。第二,當主裝置進入安靜模式時,從裝置持續發送訊號給主裝置。此模式下,因為從裝置沒接收到主裝置傳送的訊號,因而無法做時脈回復的動作。一段時間後,從裝置發送訊號的時脈因為沒有接收到主裝置傳送端的自由動作時脈而無法執行時脈回復,造成時脈飄移,當主裝置甦醒需要傳送第一筆資料時,主裝置傳送器無法得知,接收器所接收到從裝置發送訊號的時脈於這段期間相位飄移了多少。因此,主裝無法調整傳送資料的時脈以相對應於接收資料飄移的相位。The asymmetric mechanism includes the following two situations: First, the slave device enters the quiet mode, and the master device continuously sends a signal to the slave device; since the slave device receives the signal transmitted by the master device and performs the clock recovery action, the two parties can still reach Clock synchronization. Second, when the master device enters the quiet mode, the slave device continuously transmits a signal to the master device. In this mode, since the slave device does not receive the signal transmitted by the master device, the clock reply operation cannot be performed. After a period of time, the clock transmitting the signal from the device cannot perform the clock recovery because the free action clock of the transmitting end of the main device is not received, causing the clock to drift, and when the main device wakes up and needs to transmit the first data, the main device transmits The device cannot know how much the phase has drifted during the period when the receiver receives the signal from the device. Therefore, the main assembly cannot adjust the clock of the transmitted data to correspond to the phase of the received data drift.

簡言之,在習知非對稱機制下,主裝置會因為進入安靜模式一段時間,而於醒來後無法同步於從裝置的時脈,造成從裝置接收資料錯誤。In short, under the conventional asymmetric mechanism, the master device may not synchronize with the slave device's clock after waking up because it enters the quiet mode for a period of time, causing the slave device to receive data errors.

因此,本發明之主要目的即在於提供一種用於乙太網路系統之從裝置及其相關可改善同步耗電之方法。Accordingly, it is a primary object of the present invention to provide a slave device for an Ethernet system and associated methods for improving synchronous power consumption.

本發明揭露一種用於一乙太網路系統可改善同步耗電之從裝置,該乙太網路系統包含一主裝置,該從裝置包含有一接收器、一運算單元、一傳送器以及一時序調整單元。該接收器,用來接收來該主裝置之一閒置序列。該運算單元,耦接於該接收器,用來根據該閒置序列,產生一相位差資訊。該傳送器,用來根據該輸出時脈傳送資料至該主裝置。。該時序調整單元,耦接於該運算單元,用來根據該相位差資訊,調整該輸出時脈。The present invention discloses a slave device for improving synchronization power consumption in an Ethernet system. The Ethernet system includes a master device, and the slave device includes a receiver, an operation unit, a transmitter, and a timing. Adjust the unit. The receiver is configured to receive an idle sequence of the primary device. The arithmetic unit is coupled to the receiver for generating a phase difference information according to the idle sequence. The transmitter is configured to transmit data to the host device according to the output clock. . The timing adjustment unit is coupled to the operation unit for adjusting the output clock according to the phase difference information.

本發明另揭露一種用於一乙太網路系統的從裝置中可改善同步耗電之方法,該乙太網路系統包含一主裝置,該方法包含有接收來該主裝置之一閒置序列、根據該閒置序列,產生一相位差資訊、根據該相位差資訊,調整一輸出時脈及根據該輸出時脈,傳送資料至該主裝置。The invention further discloses a method for improving synchronous power consumption in a slave device of an Ethernet network system, the Ethernet system comprising a master device, the method comprising receiving an idle sequence of the master device, According to the idle sequence, a phase difference information is generated, an output clock is adjusted according to the phase difference information, and data is transmitted to the master device according to the output clock.

本發明另揭露一種乙太網路系統,包含有一主裝置以及一從裝置。該主裝置包含有一第一接收器以及一第一傳送器。該第一接收器,用來接收一資料。該第一傳送器,用來傳送一閒置序列。該從裝置包含有一第二接收器、一第二傳送器、一運算單元以及一時序調整單元。該第二接收器,用來接收該主裝置之該閒置序列。該第二傳送器,用來根據一輸出時脈,傳送該資料。該運算單元,耦接於該第二接收器,用來根據該閒置序列,產生一相位差資訊。該時序調整單元,耦接於該運算單元,用來根據該相位差資訊,調整該輸出時脈。The invention further discloses an Ethernet system comprising a master device and a slave device. The main device includes a first receiver and a first transmitter. The first receiver is configured to receive a data. The first transmitter is configured to transmit an idle sequence. The slave device includes a second receiver, a second transmitter, an arithmetic unit and a timing adjustment unit. The second receiver is configured to receive the idle sequence of the master device. The second transmitter is configured to transmit the data according to an output clock. The computing unit is coupled to the second receiver for generating a phase difference information according to the idle sequence. The timing adjustment unit is coupled to the operation unit for adjusting the output clock according to the phase difference information.

乙太網路系統Ethernet system

20、40、60‧‧‧主裝置20, 40, 60‧‧‧ master device

112、122、210、410、710、910‧‧‧接收器112, 122, 210, 410, 710, 910‧‧ Receiver

111、121、240、430、720、940‧‧‧傳送器111, 121, 240, 430, 720, 940‧‧‧ transmitters

220‧‧‧暫存器220‧‧‧Scratch

230、420‧‧‧鎖相迴路單元230, 420‧‧‧ phase-locked loop unit

120、90‧‧‧從裝置120, 90‧‧‧ slave devices

SIN‧‧‧傳送資料SIN‧‧‧Transfer information

Ph_Data、Ph_AD‧‧‧相位調整資料Ph_Data, Ph_AD‧‧‧ phase adjustment data

T_Ph_Data‧‧‧相位調整值T_Ph_Data‧‧‧ phase adjustment value

Out_Clk‧‧‧輸出時脈Out_Clk‧‧‧Output clock

PDD‧‧‧相位差資訊PDD‧‧‧ phase difference information

Idl_Seq‧‧‧閒置序列Idl_Seq‧‧‧ Idle sequence

R_Clk‧‧‧回復時脈R_Clk‧‧‧Restoration clock

IN‧‧‧接收端IN‧‧‧ Receiver

510‧‧‧資料估測單元510‧‧‧Information Estimation Unit

520‧‧‧數位回復電路520‧‧‧ digital recovery circuit

ERRIN‧‧‧錯誤資訊ERRIN‧‧‧Error Information

30、70、90‧‧‧時脈同步流程30, 70, 90‧‧‧ clock synchronization process

300、302、304、306、308、310、700、702、704、706、708、90、902、904、906、908、910‧‧‧步驟300, 302, 304, 306, 308, 310, 700, 702, 704, 706, 708, 90, 902, 904, 906, 908, 910 ‧ ‧ steps

第1圖為一乙太網路系統之示意圖。Figure 1 is a schematic diagram of an Ethernet system.

第2圖為本發明實施例用於一乙太網路系統之主裝置之示意圖。FIG. 2 is a schematic diagram of a main apparatus for an Ethernet system according to an embodiment of the present invention.

第3圖為本發明實施例用於一乙太網路系統之主裝置的時脈同步流程。FIG. 3 is a flowchart of a clock synchronization process for a host device of an Ethernet system according to an embodiment of the present invention.

第4圖為本發明另一實施例用於一乙太網路系統之主裝置之示意圖。FIG. 4 is a schematic diagram of a main apparatus for an Ethernet system according to another embodiment of the present invention.

第5圖為本發明實施例用於一主裝置之一接收器之示意圖。Figure 5 is a schematic diagram of a receiver for a host device in accordance with an embodiment of the present invention.

第6圖為本發明實施例用於一乙太網路系統之主裝置之示意圖。Figure 6 is a schematic diagram of a main device for an Ethernet system according to an embodiment of the present invention.

第7圖為本發明實施例用於一乙太網路系統之主裝置的時脈同步流程。FIG. 7 is a flowchart of a clock synchronization process for a host device of an Ethernet system according to an embodiment of the present invention.

第8圖為本發明實施例用於一乙太網路系統之主裝置之示意圖。Figure 8 is a schematic diagram of a main device for an Ethernet system according to an embodiment of the present invention.

第9圖為本發明實施例於一乙太網路系統的主裝置中可改善同步耗電之流程。FIG. 9 is a flowchart of improving synchronization power consumption in a main device of an Ethernet system according to an embodiment of the present invention.

請參考第1圖,第1圖為本發明實施一乙太網路系統10之示意圖。乙太網路系統10係操作於非對稱機制下之一Giga乙太網路。乙太網路系統10包含一主裝置110以及一從裝置120。主裝置110包含有一傳送器111,用來傳送訊號,及一接收器112,用來接收來自於從裝置120的訊號。從裝置120包含有一傳送器121,用來傳送訊號至主裝置110的接收器112,及一接收器122,用來接收訊號。當主裝置110與從裝置進行資料傳送時,必須保持兩者之間的時脈同步關係以使接收器在取樣時相位狀態為最佳。也就是說,主裝置和從裝置之間時脈相位必須相同或維持一固定相位差。Please refer to FIG. 1. FIG. 1 is a schematic diagram of an Ethernet system 10 according to the present invention. The Ethernet system 10 operates on one of the Giga Ethernet networks under the asymmetric mechanism. The Ethernet system 10 includes a master device 110 and a slave device 120. The main device 110 includes a transmitter 111 for transmitting signals and a receiver 112 for receiving signals from the slave device 120. The slave device 120 includes a transmitter 121 for transmitting signals to the receiver 112 of the master device 110, and a receiver 122 for receiving signals. When the master device 110 and the slave device perform data transfer, the clock synchronization relationship between the two must be maintained to optimize the phase state of the receiver at the time of sampling. That is, the clock phase must be the same or maintain a fixed phase difference between the master and slave.

當Giga乙太網路系統操作於非對稱機制時,主裝置110進入一安靜模式(Quiet Mode),其傳送器111關閉,且從裝置120之傳送器121持續發送訊號給主裝置110之接收器112。本發明提供一種時脈同步方法,當主裝置110從安靜模式甦醒後開始傳送第一筆資料時,主裝置110得知這段時間內接收資料飄移了多少相位,因此可調整傳送資料的時脈相位以對應於接收資料的時脈相位,避免傳送資料與接收資料不同步造成資料損毀。When the Giga Ethernet system operates in an asymmetric mechanism, the master device 110 enters a Quiet Mode, its transmitter 111 is turned off, and the transmitter 121 of the slave device 120 continuously transmits a signal to the receiver of the master device 110. 112. The present invention provides a clock synchronization method. When the main device 110 starts transmitting the first data after waking up from the quiet mode, the main device 110 knows how many phases the received data has drifted during the period, so that the clock of the transmitted data can be adjusted. The phase corresponds to the clock phase of the received data, so as to prevent the data from being corrupted due to the asynchronous transmission of the data and the received data.

乙太網路系統10採用一迴路時序系統(Loop Timing),其由從裝置120根據接收訊號進行時脈回復。舉例來說,主裝置110的傳送器111使用一自由運作時脈(Free Running Clock)來傳送訊號。當從裝置120的接收器122接收到傳送訊號後,從裝置120進行時脈回復(Timing Recovery)的動作,以產生相同於主裝置110之該自由運作時脈之一回復時脈,傳送器121及接收器122則分別根據該回復時脈來傳送或取樣訊號。當接收器111收到從裝置120根據該回復時脈所傳送的訊號,接收器111進行同步,使接收器111之時脈相同於該回復時脈。The Ethernet system 10 employs a loop timing system (Loop Timing), which is clocked by the slave device 120 based on the received signal. For example, the transmitter 111 of the master device 110 transmits a signal using a Free Running Clock. After receiving the transmission signal from the receiver 122 of the device 120, the slave device 120 performs a Timing Recovery operation to generate a clock recovery clock that is the same as the free operation clock of the master device 110. The transmitter 121 And the receiver 122 transmits or samples the signal according to the reply clock. When the receiver 111 receives the signal transmitted by the slave device 120 according to the reply clock, the receiver 111 synchronizes so that the clock of the receiver 111 is the same as the reply clock.

請參考第2圖,第2圖為本發明實施例用於一乙太網路系統之一主裝置20之示意圖。主裝置20可為乙太網路系統10的主裝置110,用來改善喚醒機制,以解決主裝置20進入安靜模式後所產生之非同步問題。主裝置20包含有一接收器210、一暫存器220、一鎖相迴路單元230以及一傳送器240。接收器210用來於該主裝置操作於一模式切換時,根據一從裝置之傳送資料SIN,產生一相位調整資料Ph_Data,其用來指示增加或減少輸出時脈的相位。模式切換為主裝置20由一安靜模式(Quiet Mode)進入一甦醒模式(Wake-up Mode)。從裝置的傳送資料SIN包含有回復時脈的時脈資訊。因此,透過從裝置的傳送資料SIN,主裝置20可以解出回復時脈,以取得相位資訊。暫存器220耦接於接收器210,用來累計相位調整資料Ph_Data,以輸出一相位調整值T_Ph_Data。鎖相迴路單元230耦接於暫存器220,用來根據相位調整值T_Ph_Data,調整一輸出時脈Out_Clk的相位,以使輸出時脈Out_Clk的相位與回復時脈的相位維持一固定相位差。換句話說,透過儲存於暫存器220的相位調整值T_Ph_Data,主裝置20可得知於安靜模式時隨著時間增加,回復時脈飄移了多少相位,因此可調整傳送資料的時脈相位以對應於接收資料的時脈 相位,以維持與回復時脈的相位一固定相位差。當主裝置從安靜模式中甦醒,傳送器240根據輸出時脈Out_Clk來傳送第一筆資料,以避免傳送資料與接收資料不同步造成資料損毀。之後,主裝置的傳送器回復至使用固定之一自由運作時脈(Free Running Clock)來傳送訊號。Please refer to FIG. 2, which is a schematic diagram of a main device 20 for an Ethernet system according to an embodiment of the present invention. The master device 20 can be the master device 110 of the Ethernet system 10 for improving the wake-up mechanism to resolve the non-synchronization problem that occurs when the master device 20 enters the quiet mode. The main device 20 includes a receiver 210, a register 220, a phase locked loop unit 230, and a transmitter 240. The receiver 210 is configured to generate a phase adjustment data Ph_Data for indicating an increase or decrease of the phase of the output clock according to the transmission data SIN of the slave device when the master device operates in a mode switching. The mode switching master device 20 enters a wake-up mode (Wake-up Mode) by a Quiet Mode. The transmission data SIN of the slave device contains the clock information of the reply clock. Therefore, the master device 20 can solve the reply clock through the transmission data SIN from the device to obtain the phase information. The register 220 is coupled to the receiver 210 for accumulating the phase adjustment data Ph_Data to output a phase adjustment value T_Ph_Data. The phase-locked loop unit 230 is coupled to the register 220 for adjusting the phase of an output clock Out_Clk according to the phase adjustment value T_Ph_Data to maintain a phase difference between the phase of the output clock Out_Clk and the phase of the return clock. In other words, through the phase adjustment value T_Ph_Data stored in the register 220, the master device 20 can know how many phases the clock traverses as time increases in the quiet mode, so that the clock phase of the transmitted data can be adjusted. Corresponding to the clock of the received data Phase to maintain a fixed phase difference with the phase of the return clock. When the master wakes up from the quiet mode, the transmitter 240 transmits the first data according to the output clock Out_Clk to avoid data corruption caused by the data being out of sync with the received data. The master's transmitter then replies to using a fixed Free Running Clock to transmit the signal.

簡言之,當主裝置20從安靜模式中甦醒並傳送第一筆資料傳送時,調整輸出時脈Out_Clk相位以對應於接收資料的時脈相位,傳送器240根據輸出時脈Out_Clk傳送訊號以維持與回復時脈一固定相位差,避免傳送資料與接收資料不同步造成資料損毀。In short, when the master device 20 wakes up from the quiet mode and transmits the first data transmission, the output clock Out_Clk phase is adjusted to correspond to the clock phase of the received data, and the transmitter 240 transmits the signal according to the output clock Out_Clk to maintain A fixed phase difference with the reply clock to avoid data loss caused by the fact that the transmitted data and the received data are out of sync.

請參考第3圖,第3圖為本發明實施例用於一乙太網路系統之主裝置的時脈同步流程30,其包含以下步驟:步驟300:開始。Please refer to FIG. 3, which is a clock synchronization process 30 for a host device of an Ethernet system according to an embodiment of the present invention, which includes the following steps: Step 300: Start.

步驟302:於一主裝置操作於一模式切換時,根據一從裝置所傳送之資料SIN,產生相一相位調整資料Ph_Data。Step 302: When a master device operates in a mode switch, phase-phase adjustment data Ph_Data is generated according to the data SIN transmitted by the slave device.

步驟304:累計相位調整資料Ph_Data,以輸出一相位調整值T_ph_Data。Step 304: Accumulate the phase adjustment data Ph_Data to output a phase adjustment value T_ph_Data.

步驟306:根據相位調整值T_ph_Data,調整一輸出時脈的相位Out_Clk,以使輸出時脈Out_Clk的相位與回復時脈的相位維持一固定相位差。Step 306: Adjust the phase Out_Clk of an output clock according to the phase adjustment value T_ph_Data, so that the phase of the output clock Out_Clk and the phase of the return clock maintain a fixed phase difference.

步驟308:於該主裝置操作於該模式切換時,根據輸出時脈Out_Clk傳送一初始資料至該從裝置。Step 308: When the master device operates in the mode switching, transmit an initial data to the slave device according to the output clock Out_Clk.

步驟310:結束。Step 310: End.

流程30係用以說明第2圖主裝置20的時脈同步操作,因此詳細說明請參考前面說明,在此不贅述。因此,藉由流程30,主裝置20 從安靜模式醒來後,傳送器可調整其第一比傳送資料之時脈的相位達到同步的目的。The flow 30 is used to explain the clock synchronization operation of the main device 20 of FIG. 2, so please refer to the foregoing description for details, and details are not described herein. Therefore, by the process 30, the main device 20 After waking up from the quiet mode, the transmitter can adjust its first phase to synchronize the phase of the transmitted data.

另一方面,關於流程30的實現,本領域具通常知識者可依據實際需求做適當之修改。舉例來說,請參考第4圖,第4圖為本發明實施例用於一乙太網路系統之主裝置40之示意圖。主裝置40可為乙太網路系統10的主裝置110,其架構與第2圖主裝置20類似,不同處在於接收器410接收到相位調整資料Ph_Data後,鎖相迴路單元420即時調整輸出時脈Out_Clk的相位。主裝置40包含有一接收器410一鎖相迴路單元420及一傳送器430。接收器410與主裝置20的接收器210的運作原理相同,於此不再贅述。鎖相迴路單元420用來根據相位調整資料Ph_Data,即時調整傳送資料的時脈相位以對應於接收資料的時脈相位,於傳送第一筆資料時以維持與回復時脈一固定相位差,避免傳送資料與接收資料不同步造成資料損毀。之後,主裝置的傳送器回復至使用固定之一自由運作時脈(Free Running Clock)來傳送訊號。On the other hand, regarding the implementation of the process 30, those skilled in the art can make appropriate modifications according to actual needs. For example, please refer to FIG. 4, which is a schematic diagram of a main device 40 for an Ethernet system according to an embodiment of the present invention. The main device 40 can be the main device 110 of the Ethernet system 10, and its architecture is similar to that of the main device 20 of FIG. 2, except that after the receiver 410 receives the phase adjustment data Ph_Data, the phase-locked loop unit 420 adjusts the output immediately. The phase of the pulse Out_Clk. The main device 40 includes a receiver 410, a phase locked loop unit 420 and a transmitter 430. The receiver 410 operates in the same manner as the receiver 210 of the main device 20, and details are not described herein again. The phase-locked loop unit 420 is configured to adjust the clock phase of the transmitted data to correspond to the clock phase of the received data according to the phase adjustment data Ph_Data, and maintain a fixed phase difference with the reply clock when transmitting the first data, thereby avoiding The data is corrupted due to the inconsistency between the transmitted data and the received data. The master's transmitter then replies to using a fixed Free Running Clock to transmit the signal.

請參考第5圖,第5圖為本發明實施例用於一主裝置之一接收器50之示意圖。接收器50可為主裝置20的接收器210或主裝置40的接收器410,其包含一接收端IN、一資料估測單元510及一數位回復電路520。接收端IN用來接收一從裝置所傳送之資料,如前述之傳送資料SIN。資料估測單元510可進行功率控制、通道估測等訊號處理,主要用來根據該從裝置所傳送之資料,產生一錯誤資訊ERRIN。數位回復電路520用來根據錯誤資訊ERRIN,產生一相位調整資料Ph_AD。相位調整資料Ph_AD可為前述之相位調整資料Ph_Data,用來產生一上移(Up)或下移(Dpwn)訊號,以指示傳送端的鎖相迴路單元調整輸出時脈的相位。Please refer to FIG. 5. FIG. 5 is a schematic diagram of a receiver 50 for a main device according to an embodiment of the present invention. The receiver 50 can be the receiver 210 of the main device 20 or the receiver 410 of the main device 40, and includes a receiving end IN, a data estimating unit 510 and a digital return circuit 520. The receiving end IN is configured to receive a data transmitted by the slave device, such as the aforementioned transmission data SIN. The data estimation unit 510 can perform signal processing such as power control and channel estimation, and is mainly used to generate an error information ERRIN according to the data transmitted by the slave device. The digital recovery circuit 520 is operative to generate a phase adjustment data Ph_AD based on the error information ERRIN. The phase adjustment data Ph_AD may be the aforementioned phase adjustment data Ph_Data for generating an up (Up) or down (Dpwn) signal to indicate that the phase locked loop unit of the transmitting end adjusts the phase of the output clock.

請參考第6圖,第6圖為本發明實施例用於一乙太網路系統之主裝置60之示意圖。主裝置60操作於安靜模式下,用以與一從裝置進行時脈同步,其藉由雙方時脈的差距,動態調一甦醒時間以重新進行時脈同步。主裝置60包含有一接收器610、一傳送器620、一偵測單元630以及一同步單元640。接收器610用來接收一從裝置資料SIN。其中,從裝置所傳送之資料SIN包含從裝置之一回復時脈R_Clk的相位資訊。因此,接收器接收資料SIN後,藉由內部電路運算可解得回復時脈R_Clk的相位資訊。傳送器620操作於一第一時脈FR_Clk。較佳地,第一時脈FR_Clk係一自由動作時脈。偵測單元630耦接於接收器610及傳送器620,用來根據該第一時脈FR_Clk及回復時脈R_Clk,偵測主裝置與從裝置之間的一時脈相位差。同步單元640用來比較時脈相位差Ph_Delta與一容忍值X,於該時脈相位差超過該容忍值X時,控制主裝置60執行與從裝置同步的一程序。與從裝置同步的程序包含主裝置60發送一閒置序列(Idle Sequence)給從裝置。藉著接收的閒置序列,從裝置重新整理時脈及同步。Please refer to FIG. 6. FIG. 6 is a schematic diagram of a main device 60 for an Ethernet system according to an embodiment of the present invention. The main device 60 operates in a quiet mode for synchronizing with a slave device, and dynamically adjusts the wake-up time by the gap between the two clocks to re-synchronize the clock. The main device 60 includes a receiver 610, a transmitter 620, a detecting unit 630, and a synchronization unit 640. Receiver 610 is configured to receive a slave device data SIN. The data SIN transmitted from the device includes phase information of the clock R_Clk from one of the devices. Therefore, after the receiver receives the data SIN, the phase information of the reply clock R_Clk can be solved by the internal circuit operation. Transmitter 620 operates on a first clock FR_Clk. Preferably, the first clock FR_Clk is a free-action clock. The detecting unit 630 is coupled to the receiver 610 and the transmitter 620 for detecting a clock phase difference between the master device and the slave device according to the first clock FR_Clk and the reply clock R_Clk. The synchronization unit 640 is configured to compare the clock phase difference Ph_Delta with a tolerance value X. When the clock phase difference exceeds the tolerance value X, the control master device 60 performs a program synchronized with the slave device. The program synchronized with the slave device includes the master device 60 transmitting an idle sequence (Idle Sequence) to the slave device. From the device, the clock is synchronized and synchronized by the received idle sequence.

舉例來說,容忍值X設定為5個時脈週期。在此情況下,當時脈相位差Ph_Delta超過5個相位差時,主裝置60從安靜模式中醒來,發送一閒置序列給從裝置。藉著接收的閒置序列,從裝置重新整理時脈及同步。相反地,當時脈相位差Ph_Delta未超過5個時脈週期時,主裝置60繼續保持安靜模式,以節省耗電。因此,主裝置60可動態的調整醒來時間以避免過常醒來造成的耗電問題。For example, the tolerance value X is set to 5 clock cycles. In this case, when the pulse phase difference Ph_Delta exceeds 5 phase differences, the master device 60 wakes up from the quiet mode and transmits an idle sequence to the slave device. From the device, the clock is synchronized and synchronized by the received idle sequence. Conversely, when the pulse phase difference Ph_Delta does not exceed 5 clock cycles, the main device 60 continues to maintain a quiet mode to save power. Therefore, the main device 60 can dynamically adjust the wake-up time to avoid power consumption problems caused by abnormal wake-up.

請參考第7圖,第7圖為本發明實施例用於一乙太網路系統之主裝置60的時脈同步流程70,其包含下面步驟: 步驟700:開始。Please refer to FIG. 7. FIG. 7 is a flowchart of a clock synchronization process 70 for a host device 60 of an Ethernet system according to an embodiment of the present invention, which includes the following steps: Step 700: Start.

步驟702:接收一從裝置資料SIN。Step 702: Receive a slave device data SIN.

步驟704:根據一第一時脈FR_Clk及一回復時脈,偵測該主裝置與該從裝置之間的一時脈相位差Ph_Delta。Step 704: Detect a clock phase difference Ph_Delta between the master device and the slave device according to a first clock FR_Clk and a reply clock.

步驟706:比較時脈相位差Ph_Delta與容忍值X,控制該主裝置執行與該從裝置同步的一程序。Step 706: Compare the clock phase difference Ph_Delta with the tolerance value X, and control the main device to execute a program synchronized with the slave device.

步驟708:結束。Step 708: End.

流程70係用以說明第6圖主裝置60的時脈同步操作,因此詳細說明請參考前面說明,在此不贅述。因此,藉由流程70,主裝置動態調整甦醒時間以重新同步時脈。The process 70 is used to explain the clock synchronization operation of the main device 60 of FIG. 6. Therefore, please refer to the foregoing description for details, and details are not described herein. Thus, by flow 70, the master dynamically adjusts the wake-up time to resynchronize the clock.

請參考第8圖,第8圖為本發明實施例用於一乙太網路系統之從裝置80之示意圖。從裝置80用來改善乙太網路系統同步耗電問題。從裝置80包含有、一接收器810、一運算單元820、一時序調整單元830及一傳送器840。接收器810,用來接收來主裝置之一閒置序列Idl_Seq,其中閒置序列Idl_Seq包含有來自主裝置之一自由運作時脈資訊。運算單元820,耦接於接收器810,根據閒置序列Idl_Seq,產生一相位差資訊PDD。傳送器840,用來根據一輸出時脈Out_Clk傳送資料至主裝置。時序調整單元830,耦接於運算單元820,用來根據相位差資訊PDD,調整該輸出時脈Out_Clk。當主裝置每隔一段時間從安靜模式中醒來傳送一閒置序列Idl_Seq以維持同步時,從裝置80接收閒置序列Idl_Seq,並得知包含於其中之主裝置的時脈資訊。透過運算單元,計算出傳送器840目前所傳送資料的時脈與主裝置的時脈資訊兩者之間的相位差,以產生出相位差資訊PDD。當相位差資訊PDD大於門檻值Y時,時序調整單元840即時調整傳送資料的時脈以對應包含於閒置序列Idl_Seq的時脈資訊。如 此一來,可延長主裝置發送閒置序列Idl_Seq的時間間隔,避免主裝置常常從安靜模式中甦醒所造成的耗電問題並達到同步的目的。Please refer to FIG. 8. FIG. 8 is a schematic diagram of a slave device 80 for an Ethernet system according to an embodiment of the present invention. The slave device 80 is used to improve the synchronous power consumption problem of the Ethernet system. The slave device 80 includes a receiver 810, an arithmetic unit 820, a timing adjustment unit 830, and a transmitter 840. The receiver 810 is configured to receive an idle sequence Id1_Seq of the primary device, where the idle sequence Id1_Seq includes free running clock information from one of the primary devices. The operation unit 820 is coupled to the receiver 810 and generates a phase difference information PDD according to the idle sequence Id1_Seq. The transmitter 840 is configured to transmit data to the main device according to an output clock Out_Clk. The timing adjustment unit 830 is coupled to the operation unit 820 for adjusting the output clock Out_Clk according to the phase difference information PDD. When the master device wakes up from the quiet mode at intervals to transmit an idle sequence Id1_Seq to maintain synchronization, the slave device 80 receives the idle sequence Id1_Seq and knows the clock information of the master device contained therein. Through the arithmetic unit, the phase difference between the clock of the data currently transmitted by the transmitter 840 and the clock information of the master device is calculated to generate the phase difference information PDD. When the phase difference information PDD is greater than the threshold value Y, the timing adjustment unit 840 adjusts the clock of the transmission data to correspond to the clock information included in the idle sequence Id1_Seq. Such as In this way, the time interval for the master device to send the idle sequence Id1_Seq can be extended to avoid the power consumption problem caused by the main device often waking up from the quiet mode and achieve the purpose of synchronization.

請參考第9圖,第9圖為本發明實施例用於一乙太網路系統的從裝置80中可改善同步耗電之流程90,其包含下面步驟:步驟900:開始。Please refer to FIG. 9. FIG. 9 is a flowchart of a method for improving synchronous power consumption in a slave device 80 of an Ethernet system according to an embodiment of the present invention, which includes the following steps: Step 900: Start.

步驟902:接收來一主裝置之一閒置序列Idl_Seq。Step 902: Receive an idle sequence Id1_Seq of one of the master devices.

步驟904:根據閒置序列Idl_Seq,產生一相位差資訊PDD。Step 904: Generate a phase difference information PDD according to the idle sequence Id1_Seq.

步驟906:根據相位差資訊PDD,調整一輸出時脈Out_Clk。Step 906: Adjust an output clock Out_Clk according to the phase difference information PDD.

步驟908:根據輸出時脈Out_Clk傳送資料至該主裝置。Step 908: Transmit data to the host device according to the output clock Out_Clk.

步驟910:結束。Step 910: End.

流程90係用以說明第8圖主裝置80,因此詳細說明請參考前面說明,在此不贅述。因此,藉由流程90,主裝置控制發送閒置序列的時間間隔來達到省電同步的目的。The process 90 is used to describe the main device 80 of FIG. 8. Therefore, please refer to the foregoing description for details, and details are not described herein. Therefore, by the process 90, the master device controls the time interval for transmitting the idle sequence to achieve the purpose of power saving synchronization.

綜上所述,本發明實施例中主裝置增加一組鎖相迴路,當主裝置從安靜模式中甦醒,於傳送第一筆資料時震盪出可調變初始相位的時脈,以對應於接收資料的時脈相位,維持一固定相位差。藉此改善習知技術中主裝置與從裝置必須同睡同醒的問題或非對稱機制下無法同步的問題,進而達到省電的目的。此外,透過更改甦醒機制,延長主裝置發送閒至序列時間間隔,避免過常從安靜模式中甦醒造成耗電問題。In summary, in the embodiment of the present invention, the main device adds a set of phase-locked loops, and when the main device wakes up from the quiet mode, when the first data is transmitted, the clock of the adjustable initial phase is oscillated to correspond to the receiving. The clock phase of the data maintains a fixed phase difference. In this way, the problem that the master device and the slave device must be asleep together or the asymmetric mechanism cannot be synchronized in the prior art is improved, thereby achieving the purpose of power saving. In addition, by changing the wake-up mechanism, the main device can be sent to the idle time interval to avoid the power consumption problem caused by the sudden wake-up from the quiet mode.

20‧‧‧主裝置20‧‧‧Main device

210‧‧‧接收器210‧‧‧ Receiver

220‧‧‧傳送器220‧‧‧transmitter

230‧‧‧鎖相迴路單元230‧‧‧ phase-locked loop unit

240‧‧‧暫存器240‧‧‧ register

SIN‧‧‧傳送資料SIN‧‧‧Transfer information

Ph_Data‧‧‧相位調整資料Ph_Data‧‧‧ phase adjustment data

T_Ph_Data‧‧‧相位調整值T_Ph_Data‧‧‧ phase adjustment value

Out_Clk‧‧‧輸出時脈Out_Clk‧‧‧Output clock

Claims (12)

一種用於一乙太網路系統可改善同步耗電之從裝置,該乙太網路系統包含一主裝置,該從裝置包含有:一接收器,用來接收來該主裝置之一閒置序列;一傳送器,用來根據一輸出時脈,傳送資料至該主裝置;一運算單元,耦接於該接收器,用來根據該閒置序列,產生一相位差資訊;以及一時序調整單元,耦接於該運算單元,用來根據該相位差資訊,調整該輸出時脈;其中,當該主裝置由一安靜模式切換為一甦醒模式時,該從裝置之該輸出時脈與一回復時脈之相位維持一固定相位差。 A slave device for improving synchronization power consumption in an Ethernet system, the Ethernet system includes a master device, and the slave device includes: a receiver for receiving an idle sequence of the master device a transmitter for transmitting data to the host device according to an output clock; an arithmetic unit coupled to the receiver for generating a phase difference information according to the idle sequence; and a timing adjustment unit, And being coupled to the operation unit, configured to adjust the output clock according to the phase difference information; wherein, when the master device is switched from a quiet mode to an awake mode, the output clock of the slave device and a reply time The phase of the pulse maintains a fixed phase difference. 如申請專利範圍第1項所述之從裝置,其中該乙太網路系統可為一Giga乙太網路系統。 The slave device of claim 1, wherein the Ethernet system is a Giga Ethernet system. 如申請專利範圍第1項所述之從裝置,其中該閒置序列包含對應於該主裝置之一時脈資訊。 The slave device of claim 1, wherein the idle sequence includes clock information corresponding to one of the master devices. 如申請專利範圍第1項所述之從裝置,其中該時序調整單元於該相位差資訊大於一第一門檻值時,調整該第二時脈以對應於該時脈資訊。 The slave device of claim 1, wherein the timing adjustment unit adjusts the second clock to correspond to the clock information when the phase difference information is greater than a first threshold. 一種用於一乙太網路系統的從裝置中可改善同步耗電之方法,該乙太網路系統包含一主裝置,該方法包含有:接收來該主裝置之一閒置序列;根據該閒置序列,產生一相位差資訊;根據該相位差資訊,調整一輸出時脈;以及 根據該輸出時脈,傳送資料至該主裝置;其中,當該主裝置由一安靜模式切換為一甦醒模式時,該從裝置之該輸出時脈與一回復時脈之相位維持一固定相位差。 A method for improving synchronous power consumption in a slave device of an Ethernet system, the Ethernet system including a master device, the method comprising: receiving an idle sequence of the master device; a sequence, generating a phase difference information; adjusting an output clock according to the phase difference information; Transmitting data to the main device according to the output clock; wherein, when the main device is switched from a quiet mode to an awake mode, the output clock of the slave device maintains a fixed phase difference with a return clock phase . 如申請專利範圍第5項所述之方法,其中該乙太網路系統可為一Giga乙太網路系統。 The method of claim 5, wherein the Ethernet system is a Giga Ethernet system. 如申請專利範圍第5項所述之方法,其中該閒置序列包含對應於該主裝置之一時脈資訊。 The method of claim 5, wherein the idle sequence includes clock information corresponding to one of the master devices. 如申請專利範圍第5項所述之方法,其中該時序調整單元於該相位差資訊大於一門檻值時,調整該第二時脈以對應於該時脈資訊。 The method of claim 5, wherein the timing adjustment unit adjusts the second clock to correspond to the clock information when the phase difference information is greater than a threshold. 一乙太網路系統,包含有:一主裝置,包含有:一第一接收器,用來接收一資料;以及一第一傳送器,用來傳送一閒置序列;一從裝置,包含有:一第二接收器,用來接收該主裝置之該閒置序列;一第二傳送器,用來根據一輸出時脈,傳送該資料;一運算單元,耦接於該第二接收器,用來根據該閒置序列,產生一相位差資訊;以及一時序調整單元,耦接於該運算單元,用來根據該相位差資訊,調整該輸出時脈;其中,當該主裝置由一安靜模式切換為一甦醒模式時,該從裝置之該輸出時脈與一回復時脈之相位維持一固定相位差。 An Ethernet system includes: a main device, comprising: a first receiver for receiving a data; and a first transmitter for transmitting an idle sequence; and a slave device comprising: a second receiver for receiving the idle sequence of the master device; a second transmitter for transmitting the data according to an output clock; an arithmetic unit coupled to the second receiver for And generating, according to the idle sequence, a phase difference information; and a timing adjustment unit coupled to the operation unit, configured to adjust the output clock according to the phase difference information; wherein, when the master device is switched from a quiet mode to a In an awake mode, the output clock of the slave device maintains a fixed phase difference with the phase of a return clock. 如申請專利範圍第9項所述之乙太網路系統,其中該乙太網路系統係一Giga乙太網路系統。 For example, the Ethernet system described in claim 9 wherein the Ethernet system is a Giga Ethernet system. 如申請專利範圍第9項所述之乙太網路系統,其中該閒置序列包含對應於該主裝置之一時脈資訊。 The Ethernet system of claim 9, wherein the idle sequence includes clock information corresponding to one of the master devices. 如申請專利範圍第9項所述之乙太網路系統,其中該時序調整單元於該相位差資訊大於一第一門檻值時,調整該第二時脈以對應於該時脈資訊。 The Ethernet system of claim 9, wherein the timing adjustment unit adjusts the second clock to correspond to the clock information when the phase difference information is greater than a first threshold.
TW102106297A 2008-12-03 2008-12-03 Slave device for an ethernet system and related method of reducing synchronization power consumption TWI489845B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102106297A TWI489845B (en) 2008-12-03 2008-12-03 Slave device for an ethernet system and related method of reducing synchronization power consumption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102106297A TWI489845B (en) 2008-12-03 2008-12-03 Slave device for an ethernet system and related method of reducing synchronization power consumption

Publications (2)

Publication Number Publication Date
TW201325173A TW201325173A (en) 2013-06-16
TWI489845B true TWI489845B (en) 2015-06-21

Family

ID=49033229

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102106297A TWI489845B (en) 2008-12-03 2008-12-03 Slave device for an ethernet system and related method of reducing synchronization power consumption

Country Status (1)

Country Link
TW (1) TWI489845B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200511741A (en) * 2003-06-03 2005-03-16 Vativ Technologies Inc Near-end, far-end and echo cancellers in a multi-channel transceiver system
US7054356B2 (en) * 2002-03-28 2006-05-30 Avago Technologies General Ip Pte. Ltd. Method and apparatus for testing serial connections

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7054356B2 (en) * 2002-03-28 2006-05-30 Avago Technologies General Ip Pte. Ltd. Method and apparatus for testing serial connections
TW200511741A (en) * 2003-06-03 2005-03-16 Vativ Technologies Inc Near-end, far-end and echo cancellers in a multi-channel transceiver system

Also Published As

Publication number Publication date
TW201325173A (en) 2013-06-16

Similar Documents

Publication Publication Date Title
TWI424731B (en) Master device for an ethernet system and related clock synchronization method
US8689035B2 (en) Communication system, communication interface, and synchronization method
KR101054119B1 (en) Control of sleep modes in a wireless transceiver
CN101682443B (en) A network device for use in a network
CN103763055B (en) The method of precise synchronization time a kind of
CN108965082B (en) Low power data bus receiver
TWI542155B (en) Clock generator, communication device and sequential clock gating circuit
JP2010523022A5 (en)
CN101729180A (en) Method and system for synchronizing precision clocks, and precision clock frequency/time synchronizing device
US20190025872A1 (en) Usb device with clock domain correlation
CN110620630B (en) Time synchronization method, device, network equipment and computer readable storage medium
US10027468B1 (en) Ethernet physical layer circuit and clock recovery method thereof
JP2001256583A (en) Automatic meter reading system
TWI489845B (en) Slave device for an ethernet system and related method of reducing synchronization power consumption
CN210518362U (en) Single-wire communication circuit and communication system
CN101807989B (en) Master device and related clock synchronization method for ethernet system
KR20150033688A (en) Data transfer between clock domains
CN101946434A (en) Method of correction of network synchronisation
CN110545153A (en) Underwater wireless network time synchronization method capable of adapting to channel environment
CN114520703B (en) Clock drift compensation method and circuit for time synchronization between industrial network devices
JP4791386B2 (en) Intermittent receiver
CN110768778A (en) Single-wire communication circuit, communication method and communication system
TWI400596B (en) Synchronized receiving circuit and method thereof
US12335055B2 (en) Communication device and communications system with state-switching control to synchronize and control switching among communication states
US20250323743A1 (en) Scheduled synchronization messages