[go: up one dir, main page]

TWI836871B - Bus system - Google Patents

Bus system Download PDF

Info

Publication number
TWI836871B
TWI836871B TW112102162A TW112102162A TWI836871B TW I836871 B TWI836871 B TW I836871B TW 112102162 A TW112102162 A TW 112102162A TW 112102162 A TW112102162 A TW 112102162A TW I836871 B TWI836871 B TW I836871B
Authority
TW
Taiwan
Prior art keywords
slave
alert
control line
component
handshake
Prior art date
Application number
TW112102162A
Other languages
Chinese (zh)
Other versions
TW202431108A (en
Inventor
邱康富
黃之鴻
張豪揚
Original Assignee
新唐科技股份有限公司
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 新唐科技股份有限公司 filed Critical 新唐科技股份有限公司
Priority to TW112102162A priority Critical patent/TWI836871B/en
Priority to CN202310433226.XA priority patent/CN118363908A/en
Application granted granted Critical
Publication of TWI836871B publication Critical patent/TWI836871B/en
Publication of TW202431108A publication Critical patent/TW202431108A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4291Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a clocked protocol
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4286Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a handshaking protocol, e.g. RS232C link

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)
  • Bus Control (AREA)
  • Small-Scale Networks (AREA)

Abstract

A bus system is provided. A plurality of slave devices are electrically connected to a master device via a bus. The alert handshake pins of the slave devices are electrically connected together via an alert handshake control line. When a first slave device communicates with the master device via the bus, in a first phase of each assignment period corresponding to the first slave device, the first slave device is configured to control the alert handshake control line to a first voltage level via the alert handshake pin. When the first slave device communicates with the master device via the bus, a second slave device is configured to control the alert handshake control line to a second voltage level via the alert handshake pin during a level enhancement time period after the first phase of each of the assignment periods.

Description

匯流排系統Bus System

本發明係有關於一種匯流排系統,且特別係有關於一種具有複數從屬元件之匯流排系統。The present invention relates to a bus system, and more particularly to a bus system having a plurality of slave components.

以往在電腦系統中,晶片組如南橋晶片(south bridge chip)是藉由低接腳數(Low Pin Count,LPC)介面來與其他的電路模組,例如具不同功能的系統單晶片(System-on-a-chip,SoC)互相電性連接。透過低接腳數介面連接的這些外接電路模組可分配到不同的獨立位址,南橋晶片可因此以一對多的方式和外接電路模組通訊。然而近年來,部分新提出的匯流排架構,例如增強序列週邊設備介面(Enhanced Serial Peripheral Interface,eSPI)匯流排,僅允許晶片組和外接電路模組間以一對一的機制通訊。In the past, in computer systems, chipsets such as south bridge chips used low pin count (LPC) interfaces to communicate with other circuit modules, such as system-on-a-chip (System-on-chip) with different functions. on-a-chip, SoC) are electrically connected to each other. These external circuit modules connected through the low-pin-count interface can be assigned to different independent addresses, so the Southbridge chip can communicate with the external circuit modules in a one-to-many manner. However, in recent years, some newly proposed bus architectures, such as the Enhanced Serial Peripheral Interface (eSPI) bus, only allow one-to-one communication between the chipset and external circuit modules.

因此,需要一種能排程多個電路模組之匯流排的機制。Therefore, a mechanism that can schedule buses of multiple circuit modules is needed.

本發明實施例提供一種匯流排系統。該匯流排系統包括一主控元件、一匯流排以及複數從屬元件。該等從屬元件經由該匯流排電性連接於該主控元件。每一該從屬元件具有一警示交握接腳,以及該等從屬元件的該警示交握接腳係經由一警示交握控制線而電性連接在一起。當該等從屬元件之一第一從屬元件與該主控元件經由該匯流排進行通訊時,在每一分發週期之複數階段中對應於該第一從屬元件的一第一階段內,該第一從屬元件經由該警示交握接腳控制該警示交握控制線為一第一電壓位準。當該第一從屬元件與該主控元件經由該匯流排進行通訊時,在每一該分發週期的該第一階段之後的一位準強化時間週期內,該等從屬元件之一第二從屬元件經由該警示交握接腳控制該警示交握控制線為一第二電壓位準。An embodiment of the present invention provides a bus system. The bus system includes a master control component, a bus and a plurality of slave components. The slave components are electrically connected to the master control component via the bus. Each of the slave components has an alarm handshake pin, and the alarm handshake pins of the slave components are electrically connected together via an alarm handshake control line. When a first slave component of the slave components communicates with the master control component via the bus, in a first phase corresponding to the first slave component in the plurality of phases of each distribution cycle, the first slave component controls the alarm handshake control line to a first voltage level via the alarm handshake pin. When the first slave device communicates with the master device via the bus, a second slave device of the slave devices controls the alert handshake control line to a second voltage level via the alert handshake pin during a level-enhanced time period after the first phase of each distribution cycle.

再者,本發明實施例提供一種匯流排系統。該匯流排系統包括一主控元件、一匯流排以及複數從屬元件。該等從屬元件經由該匯流排電性連接於該主控元件。每一該從屬元件具有一警示交握接腳,以及該等從屬元件的該警示交握接腳係經由一警示交握控制線而電性連接在一起。當該等從屬元件之一第一從屬元件在電源開啟或重置之後偵測到該等從屬元件之一第二從屬元件在一第一時間週期內控制該警示交握控制線為一第一電壓位準時,該第一從屬元件在一分發階段的每一分發週期之複數階段中對應於該第二從屬元件的一第一階段之後的一第二時間週期內經由該警示交握接腳控制該警示交握控制線為一第二電壓位準。Furthermore, an embodiment of the present invention provides a bus system. The bus system includes a master control component, a bus and a plurality of slave components. The slave components are electrically connected to the master control component via the bus. Each of the slave components has an alarm handshake pin, and the alarm handshake pins of the slave components are electrically connected together via an alarm handshake control line. When a first slave element among the slave elements detects that a second slave element among the slave elements controls the warning handshake control line to a first voltage level within a first time period after power is turned on or reset, the first slave element controls the warning handshake control line to a second voltage level via the warning handshake pin within a second time period corresponding to a first phase of the second slave element in a plurality of phases of each distribution phase of a distribution phase.

為讓本發明之上述和其他目的、特徵、和優點能更明顯易懂,下文特舉出較佳實施例,並配合所附圖式,作詳細說明如下:In order to make the above and other objects, features, and advantages of the present invention more clearly understood, preferred embodiments are listed below and described in detail with reference to the accompanying drawings:

第1圖係顯示根據本發明一些實施例所述之匯流排系統1。匯流排系統1包括主控(master)元件10、匯流排12以及複數從屬(slave)元件14A-14D。在一些實施例中,主控元件10是南橋晶片。在一些實施例中,主控元件10可電性連接於一電腦系統(未顯示)的處理模組20,以便相應於處理模組20的指令而經由匯流排12與從屬元件14A-14D進行資料存取。在一些實施例中,處理模組20可電性連接於電腦系統的記憶體22,以便根據不同應用程式的需求來存取記憶體22。在一些實施例中,匯流排12為增強序列週邊設備介面(Enhanced Serial Peripheral Interface,eSPI)匯流排。主控元件10是經由匯流排12而電性連接於從屬元件14A-14D。此外,主控元件10是以一對一機制與從屬元件14A-14D進行通訊,而從屬元件14A-14D是根據仲裁機制與主控元件10進行通訊。值得注意的是,從屬元件14A-14D的數量僅是個例子,並非用以限定本發明。FIG. 1 shows a bus system 1 according to some embodiments of the present invention. The bus system 1 includes a master component 10, a bus 12, and a plurality of slave components 14A-14D. In some embodiments, the master component 10 is a south bridge chip. In some embodiments, the master component 10 can be electrically connected to a processing module 20 of a computer system (not shown) so as to access data through the bus 12 and the slave components 14A-14D in response to instructions from the processing module 20. In some embodiments, the processing module 20 can be electrically connected to a memory 22 of the computer system so as to access the memory 22 according to the requirements of different applications. In some embodiments, the bus 12 is an Enhanced Serial Peripheral Interface (eSPI) bus. The master component 10 is electrically connected to the slave components 14A-14D via the bus 12. In addition, the master component 10 communicates with the slave components 14A-14D in a one-to-one mechanism, and the slave components 14A-14D communicate with the master component 10 according to an arbitration mechanism. It is worth noting that the number of the slave components 14A-14D is only an example and is not intended to limit the present invention.

第2圖係顯示根據本發明一些實施例所述之第1圖中匯流排系統1之連接配置圖。在此實施例中,匯流排12包括重置信號線eSPI_RST、晶片選擇(chip select)信號線eSPI_CS、時脈信號eSPI_CLK以及輸入輸出信號線eSPI_IO。主控元件10是藉由晶片選擇信號線eSPI_CS與從屬元件14A-14D以一對一機制來進行通訊。此外,透過仲裁機制,從屬元件14A-14D可經由輸入輸出信號線eSPI_IO與主控元件10進行通訊(例如傳輸資料與指令)。當主控元件10經由匯流排12與從屬元件14A-14D進行通訊時,時脈信號eSPI_CLK可做為參考時脈。Figure 2 is a connection configuration diagram of the bus system 1 in Figure 1 according to some embodiments of the present invention. In this embodiment, the bus 12 includes a reset signal line eSPI_RST, a chip select signal line eSPI_CS, a clock signal eSPI_CLK, and an input/output signal line eSPI_IO. The master control device 10 communicates with the slave devices 14A-14D in a one-to-one mechanism through the chip selection signal line eSPI_CS. In addition, through the arbitration mechanism, the slave components 14A-14D can communicate (such as transmitting data and instructions) with the master control component 10 through the input and output signal lines eSPI_IO. When the master device 10 communicates with the slave devices 14A-14D via the bus 12, the clock signal eSPI_CLK can be used as a reference clock.

一般來說,根據晶片選擇信號線eSPI_CS的運作機制,主控元件10僅能選擇單一元件進行通訊。然而,藉由使用仲裁機制,於匯流排系統1中單一時間僅由從屬元件14A-14D之一者與主控元件10進行回應。因此,在主控元件10仍以一對一通訊機制運作的情形下,匯流排12可對應一個晶片選擇信號線eSPI_CS而連接從屬元件14A-14D進行通訊,因而可提高匯流排系統1的擴充性。Generally speaking, according to the operation mechanism of the chip select signal line eSPI_CS, the master control component 10 can only select a single component for communication. However, by using the arbitration mechanism, only one of the slave components 14A-14D responds to the master control component 10 at a time in the bus system 1. Therefore, when the master control component 10 still operates in a one-to-one communication mechanism, the bus 12 can correspond to one chip select signal line eSPI_CS and connect the slave components 14A-14D for communication, thereby improving the scalability of the bus system 1.

在第2圖中,從屬元件14A-14D包括位址區段選擇接腳18A-18D、位址進入選擇接腳16A-16D以及警示交握(handshake)接腳Alert_1-Alert_4。從屬元件14A-14D所對應的位址可藉由位址區段選擇接腳18A-18D以及位址進入選擇接腳16A-16D所接收的電壓準位的組合來進行配置,以使從屬元件14A-14D具有互異的位址區段。例如,從屬元件14A與14C的位址區段選擇接腳18A及18C是耦接於接地端GND,以對應於第一位址區段。從屬元件14A與14C的位址進入選擇接腳16A及16C分別耦接於接地端GND以及電源VDD,以分別對應不同的位址進入碼,例如分別對應於第一位址區段的第一位址及第二位址。此外,從屬元件14B與14D的位址區段選擇接腳18B及18D是耦接於電源VDD,以對應於第二位址區段。從屬元件14B與14D的位址進入選擇接腳16B及16D分別耦接於接地端GND以及電源VDD,以分別對應不同的位址進入碼,例如分別對應於第二位址區段的第一位址及第二位址。值得注意的是,位址區段選擇接腳18A-18D以及位址進入選擇接腳16A-16D的配置僅是個例子,並非用以限定本發明。在其他實施例中,任何合適的設置都可用於設定從屬元件14A-14D所對應的位址區段。In FIG. 2, the slave devices 14A-14D include address segment selection pins 18A-18D, address entry selection pins 16A-16D, and alert handshake pins Alert_1-Alert_4. The address corresponding to the slave device 14A-14D can be configured by a combination of the voltage levels received by the address segment selection pins 18A-18D and the address entry selection pins 16A-16D, so that the slave device 14A -14D has mutually different address segments. For example, the address segment selection pins 18A and 18C of the slave devices 14A and 14C are coupled to the ground terminal GND to correspond to the first address segment. The address entry selection pins 16A and 16C of the slave devices 14A and 14C are respectively coupled to the ground terminal GND and the power supply VDD to respectively correspond to different address entry codes, such as corresponding to the first bit of the first address section. address and the second address. In addition, the address segment selection pins 18B and 18D of the slave devices 14B and 14D are coupled to the power supply VDD to correspond to the second address segment. The address entry selection pins 16B and 16D of the slave devices 14B and 14D are respectively coupled to the ground terminal GND and the power supply VDD to respectively correspond to different address entry codes, such as corresponding to the first bit of the second address section. address and the second address. It is worth noting that the configuration of the address section selection pins 18A-18D and the address entry selection pins 16A-16D is only an example and is not intended to limit the present invention. In other embodiments, any suitable settings may be used to set the address segments corresponding to the slave elements 14A-14D.

從屬元件14A-14D的警示交握接腳Alert_1 - Alert_4是彼此電性連接至警示交握控制線ALERT_HAND。在此實施例中,警示交握控制線ALERT_HAND是經由上拉(pull-up)電阻R而電性連接至電源VDD,以使警示交握控制線ALERT_HAND為高電壓位準(例如高邏輯信號“H”)。此外,從屬元件14A-14D內的排程控制器(schedule controller)可藉由控制所對應之警示交握接腳Alert_1-Alert_4為低電壓位準(例如低邏輯信號“L”),來驅動警示交握控制線ALERT_HAND,以使警示交握控制線ALERT_HAND為低電壓位準。於是,每一從屬元件14A-14D可藉由控制警示交握控制線ALERT_HAND的電壓位準,來取得主動和主控元件10通訊的權利。警示交握接腳Alert_1-Alert_4為雙向輸入/輸出接腳(bi-directional input/output),且在輸出模式下為汲極開路(open drain)。在一些實施例中,警示交握控制線ALERT_HAND是經由下拉(pull-down)電阻而電性連接至接地端GND,以使警示交握控制線ALERT_HAND為低電壓位準(例如低邏輯信號“L”)。The alert handshake pins Alert_1 - Alert_4 of the slave components 14A-14D are electrically connected to the alert handshake control line ALERT_HAND. In this embodiment, the alert handshake control line ALERT_HAND is electrically connected to the power source VDD via a pull-up resistor R, so that the alert handshake control line ALERT_HAND is a high voltage level (e.g., a high logic signal "H"). In addition, the schedule controller in the slave components 14A-14D can drive the alert handshake control line ALERT_HAND by controlling the corresponding alert handshake pins Alert_1-Alert_4 to a low voltage level (e.g., a low logic signal "L"), so that the alert handshake control line ALERT_HAND is a low voltage level. Therefore, each slave component 14A-14D can obtain the right to actively communicate with the master component 10 by controlling the voltage level of the alert handshake control line ALERT_HAND. The alert handshake pins Alert_1-Alert_4 are bidirectional input/output pins and are open drain in output mode. In some embodiments, the alert handshake control line ALERT_HAND is electrically connected to the ground terminal GND via a pull-down resistor so that the alert handshake control line ALERT_HAND is a low voltage level (e.g., a low logic signal "L").

在第2圖中,每一從屬元件14A-14D包括各自的排程控制器。例如,從屬元件14A、14C和14D包括排程控制器110,而從屬元件14B包括位準強化(level enhancement)排程控制器120。每一個排程控制器110和位準強化排程控制器120是用以控制警示交握控制線ALERT_HAND以進行通訊的排序。此外,從屬元件14A-14D控制警示交握控制線ALERT_HAND的優先順序是由是由第2圖之位址區段選擇接腳18A-18D與位址進入選擇接腳16A-16D所決定。在其他實施例中,可使用其他硬體或是軟體的設定來決定從屬元件14A-14D控制警示交握控制線ALERT_HAND的優先順序。值得注意的是,在匯流排系統1中,僅有一個從屬元件(例如從屬元件14B)具有能對警示交握控制線ALERT_HAND執行位準強化的排程控制器(例如位準強化排程控制器120)。位準強化排程控制器120與排程控制器110的操作將描述於後。In FIG. 2, each slave component 14A-14D includes its own schedule controller. For example, slave components 14A, 14C, and 14D include a schedule controller 110, and slave component 14B includes a level enhancement schedule controller 120. Each schedule controller 110 and level enhancement schedule controller 120 are used to control the alert handshake control line ALERT_HAND for communication sequencing. In addition, the priority of the slave components 14A-14D controlling the alert handshake control line ALERT_HAND is determined by the address segment selection pins 18A-18D and the address entry selection pins 16A-16D of FIG. 2. In other embodiments, other hardware or software settings may be used to determine the priority of the slave components 14A-14D controlling the alert handshake control line ALERT_HAND. It is worth noting that in the bus system 1, only one slave device (e.g., slave device 14B) has a schedule controller (e.g., level-enhanced schedule controller 120) capable of performing level-enhanced on the alert handshake control line ALERT_HAND. The operations of the level-enhanced schedule controller 120 and the schedule controller 110 will be described below.

在此實施例中,上拉電阻R是設置在從屬元件14A-14D外部的阻抗元件。因此,上拉電阻R是經由警示交握控制線ALERT_HAND耦接於從屬元件14A-14D的警示交握接腳Alert_1-Alert_4。在一些實施例中,上拉電阻R是實施(設置)在具有位準強化排程控制器120的從屬元件14B內。因此,上拉電阻R是經由從屬元件14B的警示交握接腳Alert_2而耦接於警示交握控制線ALERT_HAND。In this embodiment, pull-up resistors R are impedance elements provided externally to slave elements 14A-14D. Therefore, the pull-up resistor R is coupled to the alert handover pins Alert_1-Alert_4 of the slave devices 14A-14D via the alert handshake control line ALERT_HAND. In some embodiments, the pull-up resistor R is implemented (disposed) within the slave device 14B with the level-enhanced schedule controller 120 . Therefore, the pull-up resistor R is coupled to the alert handover control line ALERT_HAND via the alert handover pin Alert_2 of the slave device 14B.

第3圖係顯示根據本發明一些實施例所述之匯流排系統1之排程控制方法的流程圖。第3圖之排程控制方法是由匯流排系統1中從屬元件14B之位準強化排程控制器120所執行。此外,第3圖之排程控制方法中的流程S350亦可由匯流排系統1中從屬元件14A、14C和14D的排程控制器110所執行。第4圖係顯示從屬元件14A-14D之時脈信號clk1-clk4以及警示交握控制線ALERT_HAND的示範信號波形圖,用以說明第3圖之排程控制方法之同步階段ST_Sync、同步結束階段ST_SyncEnd以及分發階段ST_Ass的操作。此外,第4圖所顯示之時脈信號clk1-clk4與警示交握控制線ALERT_HAND的波形僅是個例子,並非用以限定本發明。FIG. 3 is a flow chart showing a scheduling control method of the bus system 1 according to some embodiments of the present invention. The scheduling control method of FIG. 3 is executed by the level-enhanced scheduling controller 120 of the slave component 14B in the bus system 1. In addition, the process S350 in the scheduling control method of FIG. 3 can also be executed by the scheduling controller 110 of the slave components 14A, 14C and 14D in the bus system 1. FIG. 4 is a diagram showing exemplary signal waveforms of the clock signals clk1-clk4 of the slave components 14A-14D and the alert handshake control line ALERT_HAND, which are used to illustrate the operations of the synchronization stage ST_Sync, the synchronization end stage ST_SyncEnd and the distribution stage ST_Ass of the scheduling control method of FIG. 3. In addition, the waveforms of the clock signals clk1-clk4 and the alert handshake control line ALERT_HAND shown in FIG. 4 are merely examples and are not intended to limit the present invention.

同時參考第3圖與第4圖,從屬元件14A-14D是使用相同頻率之時脈信號clk1-clk4來作為排程控制器110和位準強化排程控制器120的計數依據。在一些實施例中,時脈信號clk1-clk4具有相同的相位。在一些實施例中,時脈信號clk1-clk4具有不同的相位。在一些實施例中,時脈信號clk1-clk4具有相同的頻率,因此時脈信號clk1-clk4具有相同的時間週期,即TP1=TP2=TP3=TP4。在一些實施例中,從屬元件14A、14B、14C或14D是根據所對應的時脈信號的上升邊緣(rising edge)而進行計數。在一些實施例中,14A、14B、14C或14D是根據所對應的時脈信號的下降邊緣(falling edge)而進行計數。此外,在信號波形圖中,警示交握控制線ALERT_HAND為虛線是表示警示交握控制線ALERT_HAND並沒有被任何從屬元件所驅動,而此時警示交握控制線ALERT_HAND是透過上拉電阻R所驅動。如先前所描述,上拉電阻R可以設置在從屬元件14A-14D的外部或是設置在從屬元件14B的內部。Referring to FIG. 3 and FIG. 4 simultaneously, the slave components 14A-14D use the same frequency clock signals clk1-clk4 as the counting basis for the schedule controller 110 and the level-enhanced schedule controller 120. In some embodiments, the clock signals clk1-clk4 have the same phase. In some embodiments, the clock signals clk1-clk4 have different phases. In some embodiments, the clock signals clk1-clk4 have the same frequency, so the clock signals clk1-clk4 have the same time period, that is, TP1=TP2=TP3=TP4. In some embodiments, the slave components 14A, 14B, 14C or 14D count according to the rising edge of the corresponding clock signal. In some embodiments, 14A, 14B, 14C or 14D counts according to the falling edge of the corresponding clock signal. In addition, in the signal waveform diagram, the dotted line of the alert handshake control line ALERT_HAND indicates that the alert handshake control line ALERT_HAND is not driven by any slave component, and the alert handshake control line ALERT_HAND is driven by the pull-up resistor R. As described previously, the pull-up resistor R can be set outside the slave components 14A-14D or inside the slave component 14B.

首先,當從屬元件14B上電或是被重置(步驟S302)之後,位準強化排程控制器120會經由所對應之警示交握接腳Alert_2來監看(或偵測)警示交握控制線ALERT_HAND的電壓位準,以判斷警示交握控制線ALERT_HAND是否被驅動且被驅動的時脈週期(clock cycle)的數量未超過特定值(步驟S304)。First, when the slave device 14B is powered on or reset (step S302), the level enhancement schedule controller 120 monitors (or detects) the alert handover control through the corresponding alert handover pin Alert_2. The voltage level of the line ALERT_HAND is determined to determine whether the alert handover control line ALERT_HAND is driven and the number of driven clock cycles does not exceed a specific value (step S304).

在一些實施例中,排程控制器110和位準強化排程控制器120會在2×n個時脈週期內偵測警示交握控制線ALERT_HAND是否被任一從屬元件14A-14D所驅動(例如偵測到警示交握控制線ALERT_HAND由高電壓位準改變為低電壓位準),其中n為匯流排系統1中從屬元件14A-14D的數量。例如,在第4圖中,位準強化排程控制器120會偵測警示交握控制線ALERT_HAND是否被其他從屬元件14A、14C或14D驅動。當警示交握控制線ALERT_HAND被驅動時,從屬元件14B會進一步判斷警示交握控制線ALERT_HAND被驅動之時脈週期的數量是否未超過2×4個時脈週期(步驟S304)。值得注意的是,時脈週期的數量僅作為例子,並非用以限定本發明。In some embodiments, the schedule controller 110 and the level-enhanced schedule controller 120 detect whether the alert handshake control line ALERT_HAND is driven by any slave component 14A-14D (e.g., detect that the alert handshake control line ALERT_HAND changes from a high voltage level to a low voltage level) within 2×n clock cycles, where n is the number of slave components 14A-14D in the bus system 1. For example, in FIG. 4 , the level-enhanced schedule controller 120 detects whether the alert handshake control line ALERT_HAND is driven by other slave components 14A, 14C, or 14D. When the ALERT_HAND control line is driven, the slave device 14B further determines whether the number of clock cycles during which the ALERT_HAND control line is driven does not exceed 2×4 clock cycles (step S304). It should be noted that the number of clock cycles is only an example and is not intended to limit the present invention.

當偵測到警示交握控制線ALERT_HAND被驅動且未超過2×4個時脈週期,位準強化排程控制器120會判斷從屬元件14B在上電或是被重置時有其他從屬元件已驅動警示交握控制線ALERT_HAND而欲與主控元件10進行通訊。於是,位準強化排程控制器120會控制從屬元件14B進入熱加入(hot join)模式。熱加入模式的操作將描述於後。When it is detected that the alarm handover control line ALERT_HAND is driven and does not exceed 2×4 clock cycles, the level enhancement schedule controller 120 will determine that other slave devices have been activated when the slave device 14B is powered on or reset. The driver alert hands over the control line ALERT_HAND to communicate with the main control component 10 . Therefore, the level enhancement schedule controller 120 controls the slave component 14B to enter a hot join mode. The operation of the hot add mode will be described later.

當偵測到警示交握控制線ALERT_HAND未被驅動或是被驅動超過2×4個時脈週期時,位準強化排程控制器120會控制從屬元件14B進入待機等待階段(idle wait stage)ST_IdleWait(步驟S306)。在待機等待階段ST_IdleWait中,從屬元件14B的位準強化排程控制器120會控制所對應之警示交握接腳Alert_2為輸入模式,以便監看警示交握控制線ALERT_HAND是否被其他從屬元件14A、14C或14D所驅動(步驟S308),例如警示交握控制線ALERT_HAND由高電壓位準改變為低電壓位準。若警示交握控制線ALERT_HAND未被其他從屬元件14A、14C或14D所驅動,則從屬元件14B的位準強化排程控制器120會更判斷是否需要與主控元件10進行通訊(步驟S310)。若從屬元件14B不需要與主控元件10進行通訊,則流程回到步驟S306。若從屬元件14B需要與主控元件10進行通訊,則位準強化排程控制器120會驅動警示交握控制線ALERT_HAND(即控制警示交握控制線ALERT_HAND為低電壓位準)。當偵測到警示交握控制線ALERT_HAND被驅動時,每一排程控制器110以及位準強化排程控制器120會分別控制所對應的從屬元件14A-14D進入同步階段ST_Sync(步驟S312)。於是,匯流排系統1的從屬元件14A-14D會同時進入同步階段ST_Sync。When it is detected that the alert handshake control line ALERT_HAND is not driven or is driven for more than 2×4 clock cycles, the level-enhanced scheduling controller 120 controls the slave component 14B to enter the idle wait stage ST_IdleWait (step S306). In the idle wait stage ST_IdleWait, the level-enhanced scheduling controller 120 of the slave component 14B controls the corresponding alert handshake pin Alert_2 to be in input mode, so as to monitor whether the alert handshake control line ALERT_HAND is driven by other slave components 14A, 14C or 14D (step S308), for example, the alert handshake control line ALERT_HAND changes from a high voltage level to a low voltage level. If the alert handshake control line ALERT_HAND is not driven by other slave components 14A, 14C or 14D, the level-enhanced scheduling controller 120 of the slave component 14B will further determine whether it needs to communicate with the master component 10 (step S310). If the slave component 14B does not need to communicate with the master component 10, the process returns to step S306. If the slave component 14B needs to communicate with the master component 10, the level-enhanced scheduling controller 120 will drive the alert handshake control line ALERT_HAND (i.e., control the alert handshake control line ALERT_HAND to a low voltage level). When the ALERT_HAND control line is detected to be driven, each schedule controller 110 and the level-enhanced schedule controller 120 will control the corresponding slave components 14A-14D to enter the synchronization phase ST_Sync (step S312). Therefore, the slave components 14A-14D of the bus system 1 will enter the synchronization phase ST_Sync at the same time.

在第4圖中,相應於中斷需求REQ1,從屬元件14B2的位準強化排程控制器120會控制警示交握接腳Alert_2為輸出模式並輸出低電壓位準,以驅動警示交握控制線ALERT_HAND超過特定數量的時脈週期(例如驅動3個時脈週期以上),以便讓匯流排系統1的其他從屬元件能分辨出匯流排系統1進入同步階段ST_Sync而非其他階段(例如分發階段ST_Ass)。當警示交握控制線ALERT_HAND被驅動超過3個時脈週期之後,位準強化排程控制器120會停止驅動警示交握控制線ALERT_HAND,並控制警示交握接腳Alert_2為輸入模式,以監看警示交握控制線ALERT_HAND。同時地,匯流排系統1的其他從屬元件也會偵測到警示交握控制線ALERT_HAND恢復為高電壓位準(例如由上拉電阻R所驅動),於是所有的從屬元件同時進入同步結束階段ST_SyncEnd(步驟S314)。In Figure 4, corresponding to the interrupt request REQ1, the level enhancement schedule controller 120 of the slave device 14B2 controls the alert handover pin Alert_2 to the output mode and outputs a low voltage level to drive the alert handover control line ALERT_HAND. Exceeding a certain number of clock cycles (for example, driving more than 3 clock cycles), so that other slave components of the bus system 1 can recognize that the bus system 1 enters the synchronization phase ST_Sync instead of other phases (such as the distribution phase ST_Ass). When the alert handshake control line ALERT_HAND is driven for more than 3 clock cycles, the level enhancement schedule controller 120 will stop driving the alert handshake control line ALERT_HAND, and control the alert handshake pin Alert_2 to the input mode to monitor Alert handover control line ALERT_HAND. At the same time, other slave components of the bus system 1 will also detect that the alarm handover control line ALERT_HAND returns to a high voltage level (for example, driven by the pull-up resistor R), so all slave components enter the synchronization end stage ST_SyncEnd at the same time. (Step S314).

在同步結束階段ST_SyncEnd中,每一排程控制器會等待至少一個時脈週期,以確保匯流排系統1的每一從屬元件14A-14D皆完成同步階段ST_Sync,然後排程控制器110與位準強化排程控制器120會分別控制所對應的從屬元件14A-14D從同步結束階段ST_SyncEnd進入分發階段ST_Ass(步驟S316)。在分發階段ST_Ass中,每一從屬元件14A-14D會在每一分發週期(assignment period)AP中經由警示交握接腳Alert_1-Alert_4來監看警示交握控制線ALERT_HAND的狀態。In the synchronization end phase ST_SyncEnd, each schedule controller waits for at least one clock cycle to ensure that each slave device 14A-14D of the bus system 1 completes the synchronization phase ST_Sync, and then the schedule controller 110 and the level The enhanced schedule controller 120 will respectively control the corresponding slave components 14A-14D to enter the distribution stage ST_Ass from the synchronization end stage ST_SyncEnd (step S316). In the assignment phase ST_Ass, each slave element 14A-14D monitors the status of the alert handshake control line ALERT_HAND via the alert handshake pins Alert_1-Alert_4 in each assignment period AP.

在第4圖中,每一從屬元件14A-14D具有相同時間週期的分發週期AP1-AP4。在此實施例中,每一分發週期AP1-AP4具有2×4個時脈週期CY1-CY8。此外,每一分發週期AP1-AP4可劃分成4個階段(phase)PH1-PH4,而每一階段包括2個時脈週期。例如,階段PH1包括時脈週期CY1與CY2、階段PH2包括時脈週期CY3與CY4、階段PH3包括時脈週期CY5與CY6以及階段PH4包括時脈週期CY7與CY8。In Figure 4, each slave element 14A-14D has a distribution period AP1-AP4 of the same time period. In this embodiment, each distribution period AP1-AP4 has 2×4 clock periods CY1-CY8. In addition, each distribution cycle AP1-AP4 can be divided into 4 phases PH1-PH4, and each phase includes 2 clock cycles. For example, phase PH1 includes clock cycles CY1 and CY2, phase PH2 includes clock cycles CY3 and CY4, phase PH3 includes clock cycles CY5 and CY6, and phase PH4 includes clock cycles CY7 and CY8.

在第4圖的分發階段ST_Ass中,每一從屬元件14A-14D是依據階段PH1-PH4來分別執行相對應之操作。在此實施例中,從屬元件14A是對應於階段PH1、從屬元件14B是對應於階段PH2、從屬元件14C是對應於階段PH3而從屬元件14D是對應於階段PH4。在一些實施例中,從屬元件14A-14D與階段PH1-PH4的對應關係是由第2圖之位址區段選擇接腳18A-18D與位址進入選擇接腳16A-16D所決定。在其他實施例中,可使用其他硬體或是軟體的設定來決定從屬元件14A-14D與階段PH1-PH4的對應關係。In the distribution phase ST_Ass of FIG. 4, each slave component 14A-14D performs corresponding operations according to phases PH1-PH4. In this embodiment, slave component 14A corresponds to phase PH1, slave component 14B corresponds to phase PH2, slave component 14C corresponds to phase PH3, and slave component 14D corresponds to phase PH4. In some embodiments, the correspondence between slave components 14A-14D and phases PH1-PH4 is determined by address segment selection pins 18A-18D and address entry selection pins 16A-16D of FIG. 2. In other embodiments, other hardware or software settings may be used to determine the correspondence between the slave components 14A-14D and the phases PH1-PH4.

在第4圖中,從屬元件14A-14D是依據其內部之時脈信號clk1-clk4的上升邊緣來計數分發週期AP1-AP4中的時脈週期CY1-CY8。在分發階段ST_Ass中,若從屬元件14A與主控元件10進行通訊的話,則從屬元件14A僅能在分發週期AP1的階段PH1中有權力能驅動警示交握控制線ALERT_HAND(即控制警示交握控制線ALERT_HAND為低電壓位準)。相似地,若從屬元件14B與主控元件10進行通訊的話,則從屬元件14B僅能在分發週期AP2的階段PH2中有權力能驅動警示交握控制線ALERT_HAND。具體而言,當從屬元件14B與主控元件10進行通訊時,從屬元件14B的位準強化排程控制器120會在階段PH2中控制警示交握接腳Alert_2為輸出模式並輸出低電壓位準,以驅動警示交握控制線ALERT_HAND,即控制警示交握控制線ALERT_HAND為低電壓位準。若從屬元件14B不需與主控元件10進行通訊,則從屬元件14B的位準強化排程控制器120會在階段PH2中控制警示交握接腳Alert_1為輸入模式或三態模式,即不驅動警示交握控制線ALERT_HAND。In FIG. 4 , the slave components 14A-14D count the clock cycles CY1-CY8 in the distribution cycles AP1-AP4 according to the rising edges of the internal clock signals clk1-clk4. In the distribution phase ST_Ass, if the slave component 14A communicates with the master component 10, the slave component 14A can only have the power to drive the alert handshake control line ALERT_HAND (i.e., control the alert handshake control line ALERT_HAND to a low voltage level) in the phase PH1 of the distribution cycle AP1. Similarly, if the slave component 14B communicates with the master component 10, the slave component 14B can only have the power to drive the alert handshake control line ALERT_HAND in the phase PH2 of the distribution cycle AP2. Specifically, when the slave device 14B communicates with the master device 10, the level-enhanced scheduling controller 120 of the slave device 14B controls the alert handshake pin Alert_2 to be in output mode and outputs a low voltage level in phase PH2 to drive the alert handshake control line ALERT_HAND, that is, controls the alert handshake control line ALERT_HAND to be at a low voltage level. If the slave device 14B does not need to communicate with the master device 10, the level-enhanced scheduling controller 120 of the slave device 14B controls the alert handshake pin Alert_1 to be in input mode or tri-state mode in phase PH2, that is, does not drive the alert handshake control line ALERT_HAND.

在第4圖中,相應於中斷需求REQ1,從屬元件14B需要與主控元件10進行通訊。當從屬元件14B欲與主控元件10進行通訊前,會先監看警示交握控制線ALERT_HAND的電壓位準,以確定警示交握控制線ALERT_HAND未被從屬元件14A、14C和14D所驅動。接著,在時間點t1,從屬元件14B會控制警示交握接腳Alert_2為輸出模式並在時脈信號clk2的3個時脈週期內輸出低電壓位準,以驅動警示交握控制線ALERT_HAND,以便通知從屬元件14A、14C和14D進入同步階段ST_Sync。接著,在時間點t2,完成同步階段ST_Sync之後,從屬元件14B會控制警示交握接腳Alert_2為輸入模式或三態模式,以停止驅動警示交握控制線ALERT_HAND。於是,匯流排系統1的每一從屬元件14A-14D會進入同步結束階段ST_SyncEnd。在一些實施例中,在同步結束階段ST_SyncEnd,每一從屬元件14A-14D會等待至少一個時脈週期,然後從屬元件14A-14D從同步結束階段ST_SyncEnd進入分發階段ST_Ass。In FIG. 4 , in response to the interruption request REQ1, the slave component 14B needs to communicate with the master component 10. Before the slave component 14B wants to communicate with the master component 10, it will first monitor the voltage level of the alert handshake control line ALERT_HAND to determine that the alert handshake control line ALERT_HAND is not driven by the slave components 14A, 14C, and 14D. Then, at time point t1, the slave component 14B controls the alert handshake pin Alert_2 to be in output mode and outputs a low voltage level within 3 clock cycles of the clock signal clk2 to drive the alert handshake control line ALERT_HAND, so as to notify the slave components 14A, 14C, and 14D to enter the synchronization stage ST_Sync. Then, at time point t2, after completing the synchronization phase ST_Sync, the slave component 14B controls the alert handshake pin Alert_2 to the input mode or tri-state mode to stop driving the alert handshake control line ALERT_HAND. Then, each slave component 14A-14D of the bus system 1 enters the synchronization end phase ST_SyncEnd. In some embodiments, in the synchronization end phase ST_SyncEnd, each slave component 14A-14D waits for at least one clock cycle, and then the slave component 14A-14D enters the distribution phase ST_Ass from the synchronization end phase ST_SyncEnd.

在第4圖的分發階段ST_Ass中,從屬元件14B會取得警示交握控制線ALERT_HAND的控制權,以便與主控元件10進行通訊。因此,在時間點t3,警示交握控制線ALERT_HAND會在從屬元件14B之分發週期AP2中的階段PH2變為低電壓位準。於是,從屬元件14B可取得進行通訊的權力。接著,從屬元件14A會在分發週期AP1之階段PH2(如箭頭402所顯示)中偵測到警示交握控制線ALERT_HAND為低電壓位準。於是,從屬元件14A可得知對應於階段PH2的從屬元件14B要進行通訊(例如處理中斷需求)。同時地,從屬元件14D亦會在分發週期AP4之階段PH2(如箭頭404所顯示)中偵測到警示交握控制線ALERT_HAND為低電壓位準。於是,從屬元件14D可得知對應於階段PH1的從屬元件14B正在進行通訊(例如處理中斷需求)。接著,從屬元件14C會在分發週期AP3之階段PH2(如箭頭406所顯示)中偵測到警示交握控制線ALERT_HAND為低電壓位準。於是,從屬元件14C可得知對應於階段PH2的從屬元件14B正在進行通訊(例如處理中斷需求)。In the distribution phase ST_Ass of Figure 4, the slave component 14B obtains control of the alert handshake control line ALERT_HAND in order to communicate with the master component 10. Therefore, at time point t3, the alert handshake control line ALERT_HAND becomes a low voltage level in phase PH2 of the distribution cycle AP2 of the slave component 14B. Therefore, the slave component 14B can obtain the right to communicate. Then, the slave component 14A detects that the alert handshake control line ALERT_HAND is at a low voltage level in phase PH2 of the distribution cycle AP1 (as shown by arrow 402). Therefore, the slave component 14A can know that the slave component 14B corresponding to phase PH2 wants to communicate (for example, to handle an interrupt request). At the same time, the slave component 14D also detects that the alert handshake control line ALERT_HAND is at a low voltage level in phase PH2 of the distribution cycle AP4 (as shown by arrow 404). Therefore, the slave component 14D can know that the slave component 14B corresponding to phase PH1 is communicating (e.g., processing an interrupt request). Then, the slave component 14C detects that the alert handshake control line ALERT_HAND is at a low voltage level in phase PH2 of the distribution cycle AP3 (as shown by arrow 406). Therefore, the slave component 14C can know that the slave component 14B corresponding to phase PH2 is communicating (e.g., processing an interrupt request).

在一些實施例中,當從屬元件14B與主控元件10正在進行通訊時,從屬元件14B會經由其輸入輸出信號線eSPI_IO2提供事件警示信號ALERT至匯流排12的輸入輸出信號線eSPI_IO,以便傳送事件警示信號ALERT至主控元件10。事件警示信號ALERT是表示從屬元件14B對主控元件10要求通訊的請求信號。相應於事件警示訊號ALERT,主控元件10會經由輸入輸出訊號線eSPI_IO傳送狀態擷取訊號GET_STATUS,以詢問從屬元件14A-14D的狀態。此時,從屬元件14B會經由輸入輸出訊號線eSPI_IO接收狀態擷取訊號GET_STATUS並進行回應,以通知主控元件10有資訊欲進行傳送。此時,其他的從屬元件14A、14C和14D則不會接收狀態擷取訊號GET_STATUS且亦不回應。接著,主控元件10會經由輸入輸出訊號線eSPI_IO傳送事件擷取訊號GET_VWIRE,以擷取從屬元件14B的事件訊息。接著,從屬元件14B會接收事件擷取訊號GET_VWIRE並進行回應,以便將事件訊息傳送至主控元件10。從屬元件14A、14C和14D則不會接收事件擷取訊號GET_VWIRE亦不會回應。In some embodiments, when the slave device 14B is communicating with the master device 10, the slave device 14B provides the event alert signal ALERT to the input and output signal line eSPI_IO of the bus 12 via its input and output signal line eSPI_IO2 in order to transmit the event. The warning signal ALERT is sent to the main control component 10 . The event alert signal ALERT is a request signal indicating that the slave component 14B requests communication from the master control component 10 . Corresponding to the event alert signal ALERT, the master control component 10 transmits the status retrieval signal GET_STATUS via the input and output signal line eSPI_IO to query the status of the slave components 14A-14D. At this time, the slave component 14B will receive the status acquisition signal GET_STATUS via the input and output signal line eSPI_IO and respond to notify the master control component 10 that there is information to be transmitted. At this time, the other slave components 14A, 14C and 14D will not receive the status retrieval signal GET_STATUS and will not respond. Then, the master control component 10 will transmit the event capture signal GET_VWIRE via the input and output signal line eSPI_IO to capture the event information of the slave component 14B. Then, the slave component 14B will receive the event capture signal GET_VWIRE and respond to transmit the event message to the master control component 10 . The slave components 14A, 14C and 14D will not receive the event capture signal GET_VWIRE and will not respond.

當偵測到從屬元件14B驅動警示交握控制線ALERT_HAND時,其他的從屬元件14A、14C和14D如果欲與主控元件10進行通訊,則會將事件訊息進行儲存,以待之後取得警示交握控制線ALERT_HAND的控制權時再與主控元件10通訊。當從屬元件14B與主控元件10進行通訊時,從屬元件14B會在每一分發週期AP2的階段PH2來驅動警示交握控制線ALERT_HAND,直到與主控元件10結束通訊。相似地,當其他從屬元件與主控元件10進行通訊時,該從屬元件會在每一分發週期中所對應的階段來驅動警示交握控制線ALERT_HAND,直到結束通訊。When the slave device 14B is detected to drive the alert handshake control line ALERT_HAND, if the other slave devices 14A, 14C and 14D want to communicate with the master device 10, they will store the event information and communicate with the master device 10 when they obtain the control right of the alert handshake control line ALERT_HAND later. When the slave device 14B communicates with the master device 10, the slave device 14B drives the alert handshake control line ALERT_HAND in the phase PH2 of each distribution cycle AP2 until the communication with the master device 10 is terminated. Similarly, when other slave devices communicate with the master device 10, the slave device drives the alert handshake control line ALERT_HAND in the corresponding phase of each distribution cycle until the communication is terminated.

當警示交握控制線ALERT_HAND在所對應的階段被驅動時(步驟S318),相較於從屬元件14A、14C和14D的排程控制器110,從屬元件14B的位準強化排程控制器120會更對警示交握控制線ALERT_HAND執行位準強化(步驟S322)。如先前所描述,從屬元件14B的位準強化排程控制器120會在分發週期AP2中的階段PH2驅動警示交握控制線ALERT_HAND為低電壓位準。接著,從屬元件14B的位準強化排程控制器120會在位準強化時間週期Level_EH(即分發週期AP2中的時脈週期CY5-CY8)中控制警示交握控制線ALERT_HAND為高電壓位準,因此可避免上拉電阻R對警示交握控制線ALERT_HAND的轉態時間不穩定所造成的功能失效(function fail)。換言之,在位準強化時間週期Level_EH中,從屬元件14A,14C和14D不會偵測到警示交握控制線ALERT_HAND具有由不穩定之轉態時間所造成的低電壓位準。在位準強化時間週期Level_EH結束之後,位準強化排程控制器120會停止控制警示交握控制線ALERT_HAND(即從屬元件14B會控制警示交握接腳Alert_2為輸入模式或三態模式)。於是,警示交握控制線ALERT_HAND的位準會經由上拉電阻R維持在至高電壓位準。因此,相較於傳統匯流排系統中透過上拉電阻R將警示交握控制線ALERT_HAND拉至高電壓位準的不穩定轉態時間,藉由位準強化排程控制器120在位準強化時間週期Level_EH對警示交握控制線ALERT_HAND執行位準強化,可避免匯流排系統1中的從屬元件14A-14D會將不穩定的轉態電壓誤判成警示交握控制線ALERT_HAND被某一從屬元件所驅動。於是,匯流排系統1不會發生功能失效的問題。此外,藉由位準強化排程控制器120執行位準強化功能,可省下選擇適當的上拉電阻R的調適時間成本。在一些實施例中,當上拉電阻R內建在具有位準強化排程控制器120的從屬元件時,更可省下配置外部上拉電阻R的成本。When the alert handshake control line ALERT_HAND is driven at the corresponding phase (step S318), the level enhancement schedule controller 120 of the slave device 14B performs level enhancement on the alert handshake control line ALERT_HAND more than the schedule controllers 110 of the slave devices 14A, 14C, and 14D (step S322). As previously described, the level enhancement schedule controller 120 of the slave device 14B drives the alert handshake control line ALERT_HAND to a low voltage level at phase PH2 in the distribution cycle AP2. Then, the level enhancement scheduling controller 120 of the slave device 14B controls the alert handshake control line ALERT_HAND to a high voltage level in the level enhancement time period Level_EH (i.e., the clock periods CY5-CY8 in the distribution period AP2), thereby avoiding the function failure caused by the unstable transition time of the alert handshake control line ALERT_HAND by the pull-up resistor R. In other words, in the level enhancement time period Level_EH, the slave devices 14A, 14C and 14D will not detect that the alert handshake control line ALERT_HAND has a low voltage level caused by the unstable transition time. After the level enhancement time period Level_EH ends, the level enhancement scheduling controller 120 stops controlling the alert handshake control line ALERT_HAND (ie, the slave device 14B controls the alert handshake pin Alert_2 to be in input mode or tri-state mode). Therefore, the level of the alert handshake control line ALERT_HAND is maintained at a high voltage level through the pull-up resistor R. Therefore, compared with the unstable transition time of pulling the alert handshake control line ALERT_HAND to a high voltage level through a pull-up resistor R in a conventional bus system, the level enhancement scheduling controller 120 performs level enhancement on the alert handshake control line ALERT_HAND during the level enhancement time period Level_EH, thereby preventing the slave components 14A-14D in the bus system 1 from misjudging the unstable transition voltage as the alert handshake control line ALERT_HAND being driven by a certain slave component. Therefore, the bus system 1 will not have a functional failure problem. In addition, by performing the level enhancement function through the level enhancement scheduling controller 120, the adjustment time cost of selecting an appropriate pull-up resistor R can be saved. In some embodiments, when the pull-up resistor R is built into the slave device having the level-enhanced scheduling controller 120, the cost of configuring an external pull-up resistor R can be saved.

在第4圖中,位準強化排程控制器120控制位準強化時間週期Level_EH為4個時脈週期。在一些實施例中,位準強化排程控制器120可控制位準強化時間週期Level_EH為1至(2n-2)個時脈週期,其中n為從屬元件的數量。接著,在對警示交握控制線ALERT_HAND執行位準強化(步驟S322)之後,位準強化排程控制器120會控制流程回到步驟S316。In FIG. 4 , the level enhancement scheduling controller 120 controls the level enhancement time period Level_EH to be 4 clock cycles. In some embodiments, the level enhancement scheduling controller 120 can control the level enhancement time period Level_EH to be 1 to (2n-2) clock cycles, where n is the number of slave components. Then, after performing level enhancement on the alert handshake control line ALERT_HAND (step S322), the level enhancement scheduling controller 120 controls the process back to step S316.

在結束通訊(步驟S316)之後,從屬元件14B不會在分發週期AP2的階段PH2驅動警示交握控制線ALERT_HAND(步驟S318),於是從屬元件14A-14D會進入待機等待階段ST_IdleWait(步驟S306)。如先前所描述,在待機等待階段ST_IdleWait中,每一從屬元件14A-14D會控制所對應之警示交握接腳Alert_1-Alert_4為輸入模式,以便監看警示交握控制線ALERT_HAND是否被任一從屬元件14A-14D所驅動。After ending the communication (step S316), the slave component 14B will not drive the alarm handover control line ALERT_HAND in the phase PH2 of the distribution cycle AP2 (step S318), so the slave components 14A-14D will enter the standby waiting stage ST_IdleWait (step S306). As described previously, in the standby waiting phase ST_IdleWait, each slave component 14A-14D controls the corresponding alert handover pins Alert_1-Alert_4 to the input mode in order to monitor whether the alert handover control line ALERT_HAND is controlled by any slave. Driven by elements 14A-14D.

第5圖係顯示警示交握控制線ALERT_HAND的示範波形圖,用以說明從屬元件14A-14D根據第3圖之排程控制方法來驅動警示交握控制線ALERT_HAND的操作。同時參考第3圖和第5圖,相應於中斷需求REQ2,從屬元件14A需要與主控元件10進行通訊。當從屬元件14A欲與主控元件10進行通訊前,會先監看警示交握控制線ALERT_HAND的電壓位準,以確定警示交握控制線ALERT_HAND未被從屬元件14B-14D所驅動。接著,在時間點t11,從屬元件14A會控制警示交握接腳Alert_1為輸出模式並在時脈信號clk1的3個時脈週期內輸出低電壓位準,以驅動警示交握控制線ALERT_HAND,以便通知從屬元件14B-14D進入同步階段ST_Sync。由於匯流排系統1正操作在同步階段ST_Sync中,儘管從屬元件14B此時有中斷需求REQ3產生,從屬元件14B也不會對警示交握控制線ALERT_HAND進行驅動。在完成同步階段ST_Sync之後,從屬元件14A會控制警示交握接腳Alert_1為輸入模式,以停止驅動警示交握控制線ALERT_HAND。於是,在時間點t12,匯流排系統1的每一從屬元件14A-14D會進入同步結束階段ST_SyncEnd。如先前所描述,在同步結束階段ST_SyncEnd中,從屬元件14A-14D會等待至少一個時脈週期,然後從屬元件14A-14D會從同步結束階段ST_SyncEnd進入分發階段ST_Ass。FIG. 5 is an exemplary waveform diagram showing the alarm handover control line ALERT_HAND to illustrate the operation of the slave components 14A-14D to drive the alarm handover control line ALERT_HAND according to the schedule control method in FIG. 3. Referring to Figures 3 and 5 at the same time, corresponding to the interrupt request REQ2, the slave component 14A needs to communicate with the master control component 10. When the slave device 14A wants to communicate with the master device 10, it will first monitor the voltage level of the alarm handshake control line ALERT_HAND to determine that the alarm handshake control line ALERT_HAND is not driven by the slave devices 14B-14D. Then, at time point t11, the slave component 14A controls the alert handover pin Alert_1 to be in the output mode and outputs a low voltage level within 3 clock cycles of the clock signal clk1 to drive the alert handover control line ALERT_HAND, so that The slave elements 14B-14D are notified to enter the synchronization phase ST_Sync. Since the bus system 1 is operating in the synchronization phase ST_Sync, although the slave component 14B has an interrupt request REQ3 generated at this time, the slave component 14B will not drive the alarm handover control line ALERT_HAND. After completing the synchronization phase ST_Sync, the slave component 14A controls the alert handshake pin Alert_1 to the input mode to stop driving the alert handshake control line ALERT_HAND. Therefore, at time point t12, each slave element 14A-14D of the bus system 1 will enter the synchronization end phase ST_SyncEnd. As described previously, in the synchronization end phase ST_SyncEnd, the slave elements 14A-14D will wait for at least one clock cycle, and then the slave elements 14A-14D will enter the distribution phase ST_Ass from the synchronization end phase ST_SyncEnd.

在分發階段ST_Ass中,從屬元件14A會取得警示交握控制線ALERT_HAND的控制權,以便與主控元件10通訊。因此,在時間點t13,警示交握控制線ALERT_HAND會在從屬元件14A之分發週期AP1中的階段PH1變為低電壓位準。於是,從屬元件14A可取得與主控元件10進行通訊的權力。接著,從屬元件14B-14D會在各自之分發週期AP2-AP4中的階段PH1偵測到警示交握控制線ALERT_HAND為低電壓位準。於是,從屬元件14B-14D可得知對應於階段PH1的從屬元件14A與主控元件10正在進行通訊(例如處理中斷需求)。In the distribution phase ST_Ass, the slave component 14A will obtain control of the alert handover control line ALERT_HAND in order to communicate with the master control component 10 . Therefore, at time point t13, the alert handover control line ALERT_HAND changes to a low voltage level during the phase PH1 in the distribution cycle AP1 of the slave device 14A. Therefore, the slave component 14A can obtain the right to communicate with the master control component 10 . Then, the slave devices 14B-14D will detect that the alarm handover control line ALERT_HAND is a low voltage level during the phase PH1 in the respective distribution cycles AP2-AP4. Therefore, the slave components 14B-14D can know that the slave component 14A corresponding to the stage PH1 is communicating with the master control component 10 (for example, processing an interrupt request).

當從屬元件14A與主控元件10正在進行通訊時,從屬元件14A會經由其輸入輸出信號線eSPI_IO1提供事件警示信號ALERT至匯流排12的輸入輸出信號線eSPI_IO,以便傳送事件警示信號ALERT至主控元件10。事件警示信號ALERT是表示從屬元件14A對主控元件10要求通訊的請求信號。當偵測到從屬元件14A驅動警示交握控制線ALERT_HAND時,其他的從屬元件14B-14D如果欲與主控元件10進行通訊,則會將事件訊息進行儲存,以待之後取得警示交握控制線ALERT_HAND的控制權時再與主控元件10通訊。When the slave component 14A is communicating with the master control component 10, the slave component 14A will provide the event alert signal ALERT to the input and output signal line eSPI_IO of the bus 12 via its input and output signal line eSPI_IO1, so as to transmit the event alert signal ALERT to the master control Element 10. The event alert signal ALERT is a request signal indicating that the slave component 14A requests communication from the master control component 10 . When it is detected that the slave component 14A drives the alarm handover control line ALERT_HAND, if other slave components 14B-14D want to communicate with the master control component 10, the event message will be stored to obtain the alarm handover control line later. Then communicate with the main control component 10 when the control right of ALERT_HAND is obtained.

相應於事件警示信號ALERT,主控元件10會經由輸入輸出信號線eSPI_IO傳送狀態擷取信號GET_STATUS,以詢問從屬元件14A-14D的狀態。此時,從屬元件14A會經由輸入輸出信號線eSPI_IO接收狀態擷取信號GET_STATUS並進行回應,以通知主控元件10有資訊欲進行傳送。此時,其他的從屬元件14B-14D則不會接收狀態擷取信號GET_STATUS且亦不回應。接著,主控元件10會經由輸入輸出信號線eSPI_IO傳送事件擷取信號GET_VWIRE,以擷取從屬元件14A的事件訊息。接著,從屬元件14A會接收事件擷取信號GET_VWIRE並進行回應,以便將事件訊息傳送至主控元件10。從屬元件14B-14D則不會接收事件擷取信號GET_VWIRE亦不會回應。當從屬元件14A與主控元件10進行通訊時,從屬元件14A會在每一分發週期AP1的階段PH1來驅動警示交握控制線ALERT_HAND,直到與主控元件10結束通訊。Corresponding to the event alert signal ALERT, the master control component 10 transmits the status retrieval signal GET_STATUS via the input and output signal line eSPI_IO to query the status of the slave components 14A-14D. At this time, the slave component 14A will receive the status retrieval signal GET_STATUS via the input and output signal line eSPI_IO and respond to notify the master control component 10 that there is information to be transmitted. At this time, other slave components 14B-14D will not receive the status retrieval signal GET_STATUS and will not respond. Then, the master control component 10 transmits the event capture signal GET_VWIRE via the input and output signal line eSPI_IO to capture the event information of the slave component 14A. Then, the slave component 14A will receive the event retrieval signal GET_VWIRE and respond to transmit the event message to the master control component 10 . The slave components 14B-14D will not receive the event capture signal GET_VWIRE and will not respond. When the slave component 14A communicates with the master control component 10, the slave component 14A drives the alarm handover control line ALERT_HAND in the phase PH1 of each distribution cycle AP1 until the communication with the master control component 10 is completed.

如先前所描述,當從屬元件14B的位準強化排程控制器120偵測到警示交握控制線ALERT_HAND被從屬元件14A驅動(步驟S308)時,位準強化排程控制器120會控制從屬元件14B依序進入在同步結束階段ST_SyncEnd(步驟S314)與分發階段ST_Ass(步驟S316)。接著,當位準強化排程控制器120偵測到警示交握控制線ALERT_HAND在對應於從屬元件14A的階段PH1被從屬元件14A驅動(步驟S318)時,位準強化排程控制器120會控制從屬元件14B在分發週期AP2的階段PH1之後進入位準強化時間週期Level_EH,以對警示交握控制線ALERT_HAND執行位準強化(步驟S322)。As previously described, when the level-enhanced scheduling controller 120 of the slave component 14B detects that the alert handshake control line ALERT_HAND is driven by the slave component 14A (step S308), the level-enhanced scheduling controller 120 controls the slave component 14B to sequentially enter the synchronization end stage ST_SyncEnd (step S314) and the distribution stage ST_Ass (step S316). Next, when the level enhancement scheduling controller 120 detects that the alert handshake control line ALERT_HAND is driven by the slave component 14A at the phase PH1 corresponding to the slave component 14A (step S318), the level enhancement scheduling controller 120 controls the slave component 14B to enter the level enhancement time period Level_EH after the phase PH1 of the distribution period AP2 to perform level enhancement on the alert handshake control line ALERT_HAND (step S322).

在第5圖中,儘管時脈信號clk1-clk4具有不同的相位,從屬元件14B在位準強化時間週期Level_EH所執行的位準強化可確保其他從屬元件在所對應之分發週期的階段PH2中偵測到警示交握控制線ALERT_HAND為高電壓位準。例如,從屬元件14A會在分發週期AP1之階段PH2(如箭頭502所顯示)中偵測到警示交握控制線ALERT_HAND為高電壓位準。從屬元件14C會在分發週期AP3之階段PH2(如箭頭504所顯示)中偵測到警示交握控制線ALERT_HAND為高電壓位準。從屬元件14D會在分發週期AP4之階段PH2(如箭頭506所顯示)中偵測到警示交握控制線ALERT_HAND為高電壓位準。In FIG. 5 , although the clock signals clk1-clk4 have different phases, the level enhancement performed by the slave component 14B during the level enhancement time period Level_EH ensures that the other slave components detect the alert handshake control line ALERT_HAND as a high voltage level during the phase PH2 of the corresponding distribution cycle. For example, the slave component 14A detects the alert handshake control line ALERT_HAND as a high voltage level during the phase PH2 of the distribution cycle AP1 (as shown by arrow 502). The slave component 14C detects the alert handshake control line ALERT_HAND as a high voltage level during the phase PH2 of the distribution cycle AP3 (as shown by arrow 504). The slave device 14D detects that the alert handshake control line ALERT_HAND is at a high voltage level during phase PH2 (as indicated by arrow 506) of the distribution cycle AP4.

在第5圖中,位準強化排程控制器120控制位準強化時間週期Level_EH為4個時脈週期(即分發週期AP2的階段PH2和PH3)。在一些實施例中,位準強化排程控制器120可控制位準強化時間週期Level_EH為1至(2n-2)個時脈週期,其中n為從屬元件的數量。接著,在執行位準強化(步驟S322)之後,位準強化排程控制器120會控制流程回到步驟S316。In FIG. 5 , the level enhancement scheduling controller 120 controls the level enhancement time period Level_EH to be 4 clock cycles (i.e., phases PH2 and PH3 of the distribution cycle AP2). In some embodiments, the level enhancement scheduling controller 120 can control the level enhancement time period Level_EH to be 1 to (2n-2) clock cycles, where n is the number of slave components. Then, after executing the level enhancement (step S322), the level enhancement scheduling controller 120 controls the process back to step S316.

在第5圖中,從屬元件14B的位準強化排程控制器120會在分發週期AP2中的階段PH2和PH3(即位準強化時間週期Level_EH)控制警示交握控制線ALERT_HAND為高電壓位準,因此可避免上拉電阻R對警示交握控制線ALERT_HAND的轉態時間不穩定所造成的功能失效。換言之,在位準強化時間週期Level_EH中,從屬元件14A,14C和14D不會偵測到警示交握控制線ALERT_HAND具有由不穩定之轉態時間所造成的低電壓位準。在位準強化時間週期Level_EH結束之後,位準強化排程控制器120會停止控制警示交握控制線ALERT_HAND(即從屬元件14B會控制警示交握接腳Alert_2為輸入模式或三態模式)。於是,警示交握控制線ALERT_HAND的位準會經由上拉電阻R維持在至高電壓位準。因此,相較於傳統匯流排系統中透過上拉電阻R將警示交握控制線ALERT_HAND拉至高電壓位準的不穩定轉態時間,藉由位準強化排程控制器120在位準強化時間週期Level_EH對警示交握控制線ALERT_HAND執行位準強化,可避免匯流排系統1中的從屬元件14A-14D將不穩定的轉態電壓誤判成警示交握控制線ALERT_HAND被某一從屬元件所驅動。於是,匯流排系統1不會發生功能失效的問題。此外,藉由位準強化排程控制器120執行位準強化功能,可省下選擇適當的上拉電阻R的調適時間成本及配置外部上拉電阻R的成本。In FIG. 5 , the level enhancement scheduling controller 120 of the slave device 14B controls the alert handshake control line ALERT_HAND to a high voltage level in phases PH2 and PH3 (i.e., the level enhancement time period Level_EH) in the distribution cycle AP2, thereby avoiding the functional failure caused by the unstable transition time of the alert handshake control line ALERT_HAND caused by the pull-up resistor R. In other words, in the level enhancement time period Level_EH, the slave devices 14A, 14C, and 14D will not detect that the alert handshake control line ALERT_HAND has a low voltage level caused by the unstable transition time. After the level enhancement time period Level_EH ends, the level enhancement scheduling controller 120 stops controlling the alert handshake control line ALERT_HAND (ie, the slave device 14B controls the alert handshake pin Alert_2 to be in input mode or tri-state mode). Therefore, the level of the alert handshake control line ALERT_HAND is maintained at a high voltage level through the pull-up resistor R. Therefore, compared to the unstable transition time of pulling the alert handshake control line ALERT_HAND to a high voltage level through a pull-up resistor R in a conventional bus system, the level enhancement scheduling controller 120 performs level enhancement on the alert handshake control line ALERT_HAND during the level enhancement time period Level_EH, thereby preventing the slave components 14A-14D in the bus system 1 from misjudging the unstable transition voltage as the alert handshake control line ALERT_HAND being driven by a certain slave component. Therefore, the bus system 1 will not have a functional failure problem. In addition, by performing the level enhancement function through the level enhancement scheduling controller 120, the adjustment time cost of selecting an appropriate pull-up resistor R and the cost of configuring an external pull-up resistor R can be saved.

第6圖係顯示警示交握控制線ALERT_HAND的示範波形圖,用以說明從屬元件14A-14D根據第3圖之排程控制方法來驅動警示交握控制線ALERT_HAND的操作,其中從屬元件14B是操作在熱加入模式。同時參考第3圖和第6圖,在此實施例中,從屬元件14B在時間點t24之前是操作在電源開啟或重置(步驟S302),因此無法監看(或偵測)警示交握控制線ALERT_HAND的電壓位準。FIG. 6 is an exemplary waveform diagram showing the alert handshake control line ALERT_HAND, which is used to illustrate the operation of the slave components 14A-14D driving the alert handshake control line ALERT_HAND according to the scheduling control method of FIG. 3, wherein the slave component 14B is operated in the hot join mode. Referring to FIG. 3 and FIG. 6 at the same time, in this embodiment, the slave component 14B is operated in the power on or reset (step S302) before the time point t24, and therefore cannot monitor (or detect) the voltage level of the alert handshake control line ALERT_HAND.

相應於中斷需求REQ4,從屬元件14C需要與主控元件10進行通訊。當從屬元件14C欲與主控元件10進行通訊前,會先監看警示交握控制線ALERT_HAND的電壓位準,以確定警示交握控制線ALERT_HAND未被其他從屬元件所驅動。接著,在時間點t21,從屬元件14C會控制警示交握接腳Alert_3為輸出模式並在時脈信號clk3的3個時脈週期內輸出低電壓位準,以驅動警示交握控制線ALERT_HAND,以便通知其他從屬元件(即從屬元件14A和14D)進入同步階段ST_Sync。在完成同步階段ST_Sync之後,從屬元件14C會控制警示交握接腳Alert_3為輸入模式,以停止驅動警示交握控制線ALERT_HAND。於是,在時間點t22,匯流排系統1的從屬元件14A和14D會進入同步結束階段ST_SyncEnd。如先前所描述,在同步結束階段ST_SyncEnd中,從屬元件14A、14C和14D會等待至少一個時脈週期,然後從屬元件14A、14C和14D會從同步結束階段ST_SyncEnd進入分發階段ST_Ass。Corresponding to the interrupt request REQ4, the slave component 14C needs to communicate with the master control component 10 . When the slave component 14C wants to communicate with the master control component 10, it will first monitor the voltage level of the alert handshake control line ALERT_HAND to ensure that the alert handshake control line ALERT_HAND is not driven by other slave components. Then, at time point t21, the slave component 14C controls the alert handover pin Alert_3 to be in the output mode and outputs a low voltage level within 3 clock cycles of the clock signal clk3 to drive the alert handover control line ALERT_HAND, so that The other slave elements (ie slave elements 14A and 14D) are notified to enter the synchronization phase ST_Sync. After completing the synchronization phase ST_Sync, the slave component 14C controls the alert handshake pin Alert_3 to the input mode to stop driving the alert handshake control line ALERT_HAND. Therefore, at time point t22, the slave components 14A and 14D of the bus system 1 will enter the synchronization end phase ST_SyncEnd. As described previously, in the synchronization end phase ST_SyncEnd, the slave elements 14A, 14C and 14D will wait for at least one clock cycle, and then the slave elements 14A, 14C and 14D will enter the distribution phase ST_Ass from the synchronization end phase ST_SyncEnd.

在分發階段ST_Ass中,從屬元件14C會取得警示交握控制線ALERT_HAND的控制權,以便與主控元件10通訊。因此,在時間點t23,警示交握控制線ALERT_HAND會在從屬元件14C之分發週期AP3中的階段PH3變為低電壓位準。於是,從屬元件14C可取得與主控元件10進行通訊的權力。接著,其他從屬元件會在各自之分發週期中的階段PH3偵測到警示交握控制線ALERT_HAND為低電壓位準。於是,從屬元件14A和14D可得知對應於階段PH3的從屬元件14C與主控元件10正在進行通訊(例如處理中斷需求)。In the distribution phase ST_Ass, the slave component 14C obtains control of the alert handshake control line ALERT_HAND in order to communicate with the master component 10. Therefore, at time point t23, the alert handshake control line ALERT_HAND becomes a low voltage level in phase PH3 of the distribution cycle AP3 of the slave component 14C. Therefore, the slave component 14C can obtain the right to communicate with the master component 10. Then, the other slave components will detect that the alert handshake control line ALERT_HAND is at a low voltage level in phase PH3 of their respective distribution cycles. Therefore, the slave components 14A and 14D can know that the slave component 14C corresponding to phase PH3 is communicating with the master component 10 (for example, processing an interrupt request).

從屬元件14B在電源開啟或重置之後,會在時間點t24開始於每一時脈信號clk2的上升邊緣監看警示交握控制線ALERT_HAND的電壓位準。因此,當從屬元件14C在分發週期AP3中的階段PH3驅動警示交握控制線ALERT_HAND為低電壓位準時,位準強化排程控制器120會執行步驟S320,並偵測警示交握控制線ALERT_HAND是否被驅動且超過2個時脈週期。若警示交握控制線ALERT_HAND被驅動且超過2個時脈週期(例如被驅動3個時脈週期),則位準強化排程控制器120會判斷匯流排系統1的從屬元件進入同步結束階段ST_SyncEnd(步驟S314)。在時間點t25,若警示交握控制線ALERT_HAND未被驅動超過2個時脈週期(如箭頭602和604所顯示),則位準強化排程控制器120會控制從屬元件14B進入分發階段ST_Ass(步驟S316)。接著,當位準強化排程控制器120偵測到警示交握控制線ALERT_HAND在對應於從屬元件14C的階段PH3被從屬元件14C驅動(步驟S318)之後,位準強化排程控制器120會控制從屬元件14B在位準強化時間週期Level_EH對警示交握控制線ALERT_HAND執行位準強化(步驟S322)。After the power is turned on or reset, the slave element 14B will start to monitor the voltage level of the alarm handover control line ALERT_HAND at the rising edge of each clock signal clk2 at time point t24. Therefore, when the slave device 14C drives the alert handover control line ALERT_HAND to a low voltage level in the phase PH3 of the distribution cycle AP3, the level enhancement schedule controller 120 will execute step S320 and detect whether the alert handover control line ALERT_HAND driven for more than 2 clock cycles. If the alert handshake control line ALERT_HAND is driven for more than 2 clock cycles (eg, driven for 3 clock cycles), the level enhancement schedule controller 120 will determine that the slave device of the bus system 1 enters the synchronization end phase ST_SyncEnd (Step S314). At time point t25, if the alert handover control line ALERT_HAND has not been driven for more than 2 clock cycles (as shown by arrows 602 and 604), the level enhancement schedule controller 120 will control the slave element 14B to enter the distribution phase ST_Ass ( Step S316). Next, when the level enhancement schedule controller 120 detects that the alert handover control line ALERT_HAND is driven by the slave device 14C in the phase PH3 corresponding to the slave device 14C (step S318), the level enhancement schedule controller 120 controls The slave element 14B performs level strengthening on the alert handover control line ALERT_HAND in the level strengthening time period Level_EH (step S322).

在第6圖中,位準強化排程控制器120控制從屬元件14B在時間點t25進入分發階段ST_Ass。由於位準強化排程控制器120是第一次監看到警示交握控制線ALERT_HAND被驅動,因此位準強化排程控制器120會直接視為警示交握控制線ALERT_HAND是被從屬元件14A所驅動的,以避免識別成錯誤的從屬元件,而導致計數到錯誤的時脈週期(例如CY1-CY8)或階段(例如PH1-PH4)。因此,位準強化排程控制器120會將從屬元件14C當作從屬元件14A,並在進入分發階段ST_Ass之後,由時脈週期CY3開始計數。In FIG. 6 , the level-enhanced scheduling controller 120 controls the slave device 14B to enter the distribution phase ST_Ass at time t25. Since the level-enhanced scheduling controller 120 monitors the alert handshake control line ALERT_HAND being driven for the first time, the level-enhanced scheduling controller 120 directly regards the alert handshake control line ALERT_HAND as being driven by the slave device 14A to avoid identifying the wrong slave device and causing the counting to the wrong clock cycle (e.g., CY1-CY8) or phase (e.g., PH1-PH4). Therefore, the level-enhanced scheduling controller 120 will treat the slave device 14C as the slave device 14A and start counting from the clock cycle CY3 after entering the distribution phase ST_Ass.

在第6圖中,位準強化排程控制器120控制位準強化時間週期Level_EH為4個時脈週期。在一些實施例中,位準強化排程控制器120可控制位準強化時間週期Level_EH為1至(2n-2)個時脈週期,其中n為從屬元件的數量。接著,在執行位準強化(步驟S322)之後,位準強化排程控制器120會控制流程回到步驟S316。In FIG. 6 , the level enhancement schedule controller 120 controls the level enhancement time period Level_EH to be 4 clock cycles. In some embodiments, the level enhancement schedule controller 120 may control the level enhancement time period Level_EH to be 1 to (2n-2) clock cycles, where n is the number of slave elements. Next, after performing the level enhancement (step S322), the level enhancement schedule controller 120 returns the control process to step S316.

在匯流排系統1中,每一從屬元件的時脈信號(例如時脈信號clk1-clk4)在長時間操作之後會有時脈偏差產生。為了避免累加的時脈時脈會導致不同的從屬元件計數到不同的時脈週期(例如時脈週期CY1-CY8)而造成排程錯誤或衝突,匯流排系統1的每一從屬元件會在有任一中斷需求時都會重新進入同步階段ST_Sync,使時脈信號的偏差量重新歸零。所以不同的從屬元件於所對應的分發階段中,不會計數到不同的時脈週期而導致排程錯誤或衝突。換言之,具有位準強化排程控制器120的從屬元件(例如從屬元件14B)也不會在錯誤的時脈週期內控制警示交握控制線ALERT_HAND為高電壓位準,因此可避免功能失效。In the bus system 1, the clock signals of each slave component (eg, the clock signals clk1-clk4) may generate clock deviation after long-term operation. In order to avoid that the accumulated clock pulse will cause different slave devices to count to different clock cycles (such as clock cycles CY1-CY8) and cause scheduling errors or conflicts, each slave device of the bus system 1 will When any interrupt is required, the synchronization phase ST_Sync will be re-entered to reset the deviation of the clock signal to zero. Therefore, different slave components will not count different clock cycles in the corresponding distribution phases, causing scheduling errors or conflicts. In other words, the slave device (such as the slave device 14B) with the level enhanced schedule controller 120 will not control the alert handover control line ALERT_HAND to a high voltage level in the wrong clock cycle, thus avoiding functional failure.

在本發明實施例中,藉由使用位準強化排程控制器120對警示交握控制線ALERT_HAND執行位準強化,可解決傳統匯流排系統中因為上拉電阻R對警示交握控制線ALERT_HAND造成的轉態時間不穩定或其他因素而導致誤判而功能失效,因此使得匯流排系統1在操作上更強建(robus)。此外,對匯流排系統1而言,使用位準強化排程控制器120可不需要額外的時間來挑選合適的上拉電阻R或是不需要配置外部之上拉電阻R,因此可降低製造成本。In the embodiment of the present invention, by using the level enhancement schedule controller 120 to perform level enhancement on the alert handover control line ALERT_HAND, the problem caused by the pull-up resistor R on the alert handover control line ALERT_HAND in the traditional bus system can be solved. The unstable transition time or other factors may lead to misjudgment and functional failure, thus making the bus system 1 more robust (robus) in operation. In addition, for the bus system 1 , using the level enhancement schedule controller 120 does not require extra time to select a suitable pull-up resistor R or configure an external pull-up resistor R, thus reducing manufacturing costs.

雖然本發明已以較佳實施例發明如上,然其並非用以限定本發明,任何所屬技術領域中包括通常知識者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been described above with preferred embodiments, they are not intended to limit the present invention. Any person skilled in the art, including those with common knowledge, may make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of the attached patent application.

1:匯流排系統 10:主控元件 12:匯流排 14A-14D:從屬元件 16A-16D:位址進入選擇接腳 18A-18D:位址區段選擇接腳 20:處理模組 22:記憶體 110:排程控制器 120:位準強化排程控制器 Alert_1-Alert_4:警示交握接腳 ALERT_HAND:警示交握控制線 AP1-AP4:分發週期 clk1-clk4:時脈信號 CY1-CY8:時脈週期 eSPI_CLK:時脈信號 eSPI_CS:晶片選擇信號線 eSPI_IO, eSPI_IO1-eSPI_IO3:輸入輸出信號線 eSPI_RST:重置信號線 GND:接地端 Level_EH:位準強化時間週期 PH1-PH4:階段 R:上拉電阻 REQ1-REQ4:中斷需求 S302-S322:步驟 S350:流程 ST_IdleWait:待機等待階段 ST_Sync:同步階段 ST_SyncEnd:同步結束階段 ST_Ass:分發階段 TP1-TP4:時間週期 VDD:電源 ALERT:事件警示信號1:Bus system 10: Main control component 12:Bus 14A-14D: Slave components 16A-16D: Address entry selection pin 18A-18D: Address segment selection pin 20: Processing module 22:Memory 110:Scheduling controller 120: Level enhanced schedule controller Alert_1-Alert_4: Alert handshake pin ALERT_HAND: Alert handover control line AP1-AP4: distribution cycle clk1-clk4: clock signal CY1-CY8: clock cycle eSPI_CLK: Clock signal eSPI_CS: Chip select signal line eSPI_IO, eSPI_IO1-eSPI_IO3: input and output signal lines eSPI_RST: reset signal line GND: ground terminal Level_EH: Level enhancement time period PH1-PH4: Stage R: pull-up resistor REQ1-REQ4: Interrupt requirements S302-S322: Steps S350:Process ST_IdleWait: standby waiting phase ST_Sync: synchronization phase ST_SyncEnd: synchronization end phase ST_Ass: Distribution stage TP1-TP4: time period VDD: power supply ALERT: event warning signal

第1圖係顯示根據本發明一些實施例所述之匯流排系統。 第2圖係顯示根據本發明一些實施例所述之第1圖中匯流排系統之連接配置圖。 第3圖係顯示根據本發明一些實施例所述之匯流排系統之排程控制方法的流程圖。 第4圖係顯示從屬元件之時脈信號以及警示交握控制線的示範信號波形圖,用以說明第3圖之排程控制方法之同步階段、同步結束階段以及分發階段的操作。 第5圖係顯示警示交握控制線的示範波形圖,用以說明從屬元件根據第3圖之排程控制方法來驅動警示交握控制線的操作。 第6圖係顯示警示交握控制線的示範波形圖,用以說明從屬元件根據第3圖之排程控制方法來驅動警示交握控制線的操作。 FIG. 1 shows a bus system according to some embodiments of the present invention. FIG. 2 shows a connection configuration diagram of the bus system in FIG. 1 according to some embodiments of the present invention. FIG. 3 shows a flow chart of a scheduling control method for a bus system according to some embodiments of the present invention. FIG. 4 shows a sample signal waveform diagram of a clock signal of a slave component and a warning handshake control line, which is used to illustrate the operation of the synchronization phase, the synchronization end phase, and the distribution phase of the scheduling control method of FIG. 3. FIG. 5 shows a sample waveform diagram of a warning handshake control line, which is used to illustrate the operation of a slave component driving the warning handshake control line according to the scheduling control method of FIG. 3. Figure 6 is a sample waveform diagram showing the warning handshake control line, which is used to illustrate the operation of the slave component driving the warning handshake control line according to the scheduling control method of Figure 3.

1:匯流排系統 1:Bus system

10:主控元件 10: Main control components

12:匯流排 12:Bus

14A-14D:從屬元件 14A-14D: Slave components

20:處理模組 20: Processing module

22:記憶體 22: Memory

Claims (20)

一種匯流排系統,包括: 一主控元件; 一匯流排;以及 複數從屬元件,經由該匯流排電性連接於該主控元件; 其中每一該從屬元件具有一警示交握接腳,以及該等從屬元件的該警示交握接腳係經由一警示交握控制線而電性連接在一起; 其中當該等從屬元件之一第一從屬元件與該主控元件經由該匯流排進行通訊時,在每一分發週期之複數階段中對應於該第一從屬元件的一第一階段內,該第一從屬元件經由該警示交握接腳控制該警示交握控制線為一第一電壓位準; 其中當該第一從屬元件與該主控元件經由該匯流排進行通訊時,在每一該分發週期的該第一階段之後的一位準強化時間週期內,該等從屬元件之一第二從屬元件經由該警示交握接腳控制該警示交握控制線為一第二電壓位準。 A bus system, comprising: a master control element; a bus; and a plurality of slave elements electrically connected to the master control element via the bus; wherein each of the slave elements has an alarm handshake pin, and the alarm handshake pins of the slave elements are electrically connected together via an alarm handshake control line; wherein when a first slave element of the slave elements communicates with the master control element via the bus, in a first phase corresponding to the first slave element in a plurality of phases of each distribution cycle, the first slave element controls the alarm handshake control line to a first voltage level via the alarm handshake pin; When the first slave component communicates with the master component via the bus, during a standard enhancement time period after the first phase of each distribution cycle, a second slave component of the slave components controls the warning handshake control line to a second voltage level via the warning handshake pin. 如請求項1之匯流排系統,其中當該第二從屬元件與該主控元件經由該匯流排進行通訊時,在每一該分發週期之該等階段中對應於該第二從屬元件的一第二階段內,該第二從屬元件經由該警示交握接腳控制該警示交握控制線為該第一電壓位準,以及在每一該分發週期之該第二階段之後的該位準強化時間週期中,該第二從屬元件經由該警示交握接腳控制該警示交握控制線為該第二電壓位準。The bus system of claim 1, wherein when the second slave component communicates with the master control component via the bus, a first slave component corresponding to the second slave component in the stages of each distribution cycle In the second phase, the second slave component controls the alert handover control line to the first voltage level through the alert handover pin, and the level strengthening time after the second phase of each distribution cycle During the cycle, the second slave component controls the alert handover control line to the second voltage level via the alert handover pin. 如請求項1之匯流排系統,其中每一該階段包括固定數量的時脈週期,以及上述位準強化時間週期包括至少一個時間週期。A bus system as claimed in claim 1, wherein each of the phases includes a fixed number of clock cycles, and the level enhancement time period includes at least one time cycle. 如請求項1之匯流排系統,其中每一該分發週期包括n個該等階段,以及每一該階段包括2個時脈週期,其中上述位準強化時間週期包括1至(2n-2)個時間週期。Such as the bus system of claim 1, wherein each distribution cycle includes n such stages, and each such stage includes 2 clock cycles, wherein the above-mentioned level enhancement time period includes 1 to (2n-2) time period. 如請求項1之匯流排系統,其中在每一該分發週期中,該等階段的數量是等於該等從屬元件的數量。For example, the bus system of claim 1, wherein in each distribution cycle, the number of the stages is equal to the number of the slave components. 如請求項1之匯流排系統,其中當該第一從屬元件與該主控元件經由該匯流排進行通訊時,該第二從屬元件僅在每一該分發週期的該位準強化時間週期內經由該警示交握接腳控制該警示交握控制線為該第二電壓位準。The bus system of claim 1, wherein when the first slave component communicates with the master component via the bus, the second slave component only communicates via the level enhancement time period of each distribution cycle. The warning handover pin controls the warning handover control line to the second voltage level. 如請求項1之匯流排系統,其中當該第一從屬元件與該主控元件經由該匯流排進行通訊時,該第一從屬元件僅在每一該分發週期的該第一階段內經由該警示交握接腳控制該警示交握控制線為該第一電壓位準。A bus system as claimed in claim 1, wherein when the first slave component communicates with the master component via the bus, the first slave component controls the alert handshake control line to the first voltage level via the alert handshake pin only in the first phase of each of the distribution cycles. 如請求項1之匯流排系統,更包括: 一阻抗元件,耦接於該警示交握控制線以及具有該第二電壓位準的一電源之間; 其中在該位準強化時間週期之後,該第二從屬元件停止控制該警示交握控制線,以及該警示交握控制線是經由該阻抗元件拉至該第二電壓位準。 For example, the bus system of request item 1 further includes: An impedance element coupled between the alarm handover control line and a power supply having the second voltage level; Wherein, after the level strengthening time period, the second slave component stops controlling the warning handover control line, and the warning handover control line is pulled to the second voltage level through the impedance component. 如請求項8之匯流排系統,其中該阻抗元件是設置在該等從屬元件的外部,以及該阻抗元件是經由該警示交握控制線耦接於每一該從屬元件的該警示交握接腳。A bus system as claimed in claim 8, wherein the impedance element is disposed outside the slave elements, and the impedance element is coupled to the warning handshake pin of each of the slave elements via the warning handshake control line. 如請求項8之匯流排系統,其中該阻抗元件是實施於該第二從屬元件內,以及該阻抗元件是經由該第二從屬元件的該警示交握接腳耦接於該警示交握控制線。A bus system as claimed in claim 8, wherein the impedance element is implemented in the second slave element, and the impedance element is coupled to the alert handshake control line via the alert handshake pin of the second slave element. 一種匯流排系統,包括: 一主控元件; 一匯流排;以及 複數從屬元件,經由該匯流排電性連接於該主控元件; 其中每一該從屬元件具有一警示交握接腳,以及該等從屬元件的該警示交握接腳係經由一警示交握控制線而電性連接在一起; 其中當該等從屬元件之一第一從屬元件在電源開啟或重置之後偵測到該等從屬元件之一第二從屬元件在一第一時間週期內控制該警示交握控制線為一第一電壓位準時,該第一從屬元件在一分發階段的每一分發週期之複數階段中對應於該第二從屬元件的一第一階段之後的一第二時間週期內經由該警示交握接腳控制該警示交握控制線為一第二電壓位準。 A bus system including: a main control component; a bus; and A plurality of slave components are electrically connected to the master control component via the busbar; Each of the slave components has an alert handshake pin, and the alert handshake pins of the slave components are electrically connected together through an alert handshake control line; When one of the slave components detects one of the slave components and the second slave component controls the alarm handover control line within a first time period after the power is turned on or reset, the alarm handover control line is a first When the voltage level is correct, the first slave element is controlled through the alert handshake pin in a second time period after a first phase corresponding to the second slave element in a plurality of phases of each distribution cycle of a distribution phase. The warning control line is a second voltage level. 如請求項11之匯流排系統,其中當該第一時間週期與該第一階段具有相同數量的時脈週期時,該第一從屬元件是在該等從屬元件操作在該分發階段時被電源開啟或重置。The bus system of claim 11, wherein when the first time period and the first phase have the same number of clock cycles, the first slave element is powered on when the slave elements operate in the distribution phase. or reset. 如請求項11之匯流排系統,其中當該第一時間週期比該第一階段具有較多數量的時脈週期時,該第一從屬元件是在該等從屬元件操作在該分發階段之前的一同步階段時被電源開啟或重置。The bus system of claim 11, wherein when the first time period has a greater number of clock cycles than the first phase, the first slave element is a time period before the slave elements operate in the distribution phase. Powered on or reset during the synchronization phase. 如請求項11之匯流排系統,其中每一該階段包括固定數量的時脈週期,以及上述第二時間週期包括至少一個時間週期。The bus system of claim 11, wherein each phase includes a fixed number of clock cycles, and the second time period includes at least one time period. 如請求項11之匯流排系統,其中每一該分發週期包括n個該等階段,以及每一該階段包括2個時脈週期,其中上述第二時間週期包括1至(2n-2)個時間週期。A bus system as claimed in claim 11, wherein each of the distribution cycles includes n such phases, and each of the phases includes 2 clock cycles, wherein the second time cycle includes 1 to (2n-2) time cycles. 如請求項11之匯流排系統,其中在每一該分發週期中,該等階段的數量是等於該等從屬元件的數量。A bus system as claimed in claim 11, wherein in each of the distribution cycles, the number of the phases is equal to the number of the slave components. 如請求項11之匯流排系統,其中當該第二從屬元件與該主控元件經由該匯流排進行通訊時,該第一從屬元件僅在每一該分發週期的該第二時間週期內經由該警示交握接腳控制該警示交握控制線為該第二電壓位準。A bus system as claimed in claim 11, wherein when the second slave component communicates with the master component via the bus, the first slave component controls the alert handshake control line to the second voltage level via the alert handshake pin only during the second time period of each distribution cycle. 如請求項11之匯流排系統,其中當該第二從屬元件與該主控元件經由該匯流排進行通訊時,該第二從屬元件僅在每一該分發週期的該第一階段內經由該警示交握接腳控制該警示交握控制線為該第一電壓位準。The bus system of claim 11, wherein when the second slave component communicates with the master control component via the bus, the second slave component only passes the alert in the first phase of each distribution cycle. The handover pin controls the alarm handover control line to be the first voltage level. 如請求項11之匯流排系統,更包括: 一阻抗元件,耦接於該警示交握控制線以及具有該第二電壓位準的一電源之間; 其中在該第二時間週期之後,該第一從屬元件停止控制該警示交握控制線,以及該警示交握控制線是經由該阻抗元件拉至該第二電壓位準; 其中該阻抗元件是設置在該等從屬元件的外部,以及該阻抗元件是經由該警示交握控制線耦接於每一該從屬元件的該警示交握接腳。 For example, the bus system in request item 11 further includes: An impedance element coupled between the alarm handover control line and a power supply having the second voltage level; Wherein after the second time period, the first slave component stops controlling the warning handover control line, and the warning handover control line is pulled to the second voltage level through the impedance component; The impedance element is disposed outside the slave components, and the impedance element is coupled to the alert handshake pin of each slave component via the alert handshake control line. 如請求項11之匯流排系統,更包括: 一阻抗元件,耦接於該警示交握控制線以及具有該第二電壓位準的一電源之間; 其中在該第二時間週期之後,該第一從屬元件停止控制該警示交握控制線,以及該警示交握控制線是經由該阻抗元件拉至該第二電壓位準; 其中該阻抗元件是實施於該第一從屬元件內,以及該阻抗元件是經由該第一從屬元件的該警示交握接腳耦接於該警示交握控制線。 For example, the bus system in request item 11 further includes: An impedance element coupled between the alarm handover control line and a power supply having the second voltage level; Wherein after the second time period, the first slave element stops controlling the warning handover control line, and the warning handover control line is pulled to the second voltage level through the impedance element; The impedance element is implemented in the first slave element, and the impedance element is coupled to the alarm handshake control line through the alarm handshake pin of the first slave element.
TW112102162A 2023-01-18 2023-01-18 Bus system TWI836871B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW112102162A TWI836871B (en) 2023-01-18 2023-01-18 Bus system
CN202310433226.XA CN118363908A (en) 2023-01-18 2023-04-21 Bus system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW112102162A TWI836871B (en) 2023-01-18 2023-01-18 Bus system

Publications (2)

Publication Number Publication Date
TWI836871B true TWI836871B (en) 2024-03-21
TW202431108A TW202431108A (en) 2024-08-01

Family

ID=91269916

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112102162A TWI836871B (en) 2023-01-18 2023-01-18 Bus system

Country Status (2)

Country Link
CN (1) CN118363908A (en)
TW (1) TWI836871B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110029705A1 (en) * 2008-05-21 2011-02-03 Duane Martin Evans Multi-drop serial bus with location detection and method
TW201128348A (en) * 2009-09-30 2011-08-16 Via Tech Inc Method for generating multiple serial bus chip selects using single chip select signal and modulation of clock signal frequency
TWI671638B (en) * 2018-05-24 2019-09-11 新唐科技股份有限公司 Bus system
TW202022628A (en) * 2018-12-13 2020-06-16 新唐科技股份有限公司 Bus system
US20200265003A1 (en) * 2016-01-19 2020-08-20 Elmos Semiconductor Aktiengesellschaft Concatenated two-wire data bus
TW202246994A (en) * 2021-05-17 2022-12-01 新唐科技股份有限公司 Bus system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110029705A1 (en) * 2008-05-21 2011-02-03 Duane Martin Evans Multi-drop serial bus with location detection and method
TW201128348A (en) * 2009-09-30 2011-08-16 Via Tech Inc Method for generating multiple serial bus chip selects using single chip select signal and modulation of clock signal frequency
US20200265003A1 (en) * 2016-01-19 2020-08-20 Elmos Semiconductor Aktiengesellschaft Concatenated two-wire data bus
TWI671638B (en) * 2018-05-24 2019-09-11 新唐科技股份有限公司 Bus system
US10936524B2 (en) * 2018-05-24 2021-03-02 Nuvoton Technology Corporation Bus system with slave devices
TW202022628A (en) * 2018-12-13 2020-06-16 新唐科技股份有限公司 Bus system
TW202246994A (en) * 2021-05-17 2022-12-01 新唐科技股份有限公司 Bus system

Also Published As

Publication number Publication date
CN118363908A (en) 2024-07-19
TW202431108A (en) 2024-08-01

Similar Documents

Publication Publication Date Title
TWI671638B (en) Bus system
TWI706257B (en) Bus system
US11256651B2 (en) Multiple master, multi-slave serial peripheral interface
US20090234998A1 (en) Connection system
CN112416841A (en) Multi-machine communication realization method based on I2C bus and multi-machine communication system
JP7391154B2 (en) Daisy chain SPI integrated circuit and its method of operation
TWI719633B (en) Integrated circuit, bus system and scheduling method
JP6007509B2 (en) Serial I/F bus control device and imaging device
US11907155B2 (en) Bus system connecting slave devices with single-wire data access communication
TWI836871B (en) Bus system
TWI813104B (en) Bus system
US10901935B2 (en) IC, bus system and control method thereof
CN117215977B (en) I3C concentrator and interrupt arbitration digital implementation method
JP4654116B2 (en) Computer system
CN116069715B (en) Storage device sharing system and storage device sharing method
US6868457B2 (en) Direct memory access controller, direct memory access device, and request device
CN116701025A (en) Master-secondary PMIC ordering and centralized fault management independent of MCU