TWI489287B - Multiplexer device and switching method therefor - Google Patents

Multiplexer device and switching method therefor Download PDF

Info

Publication number
TWI489287B
TWI489287B TW102122806A TW102122806A TWI489287B TW I489287 B TWI489287 B TW I489287B TW 102122806 A TW102122806 A TW 102122806A TW 102122806 A TW102122806 A TW 102122806A TW I489287 B TWI489287 B TW I489287B
Authority
TW
Taiwan
Prior art keywords
control signal
control
signal
unit
switching
Prior art date
Application number
TW102122806A
Other languages
Chinese (zh)
Other versions
TW201500931A (en
Inventor
Chia Hsiang Chen
Original Assignee
Inventec 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 Inventec Corp filed Critical Inventec Corp
Priority to TW102122806A priority Critical patent/TWI489287B/en
Publication of TW201500931A publication Critical patent/TW201500931A/en
Application granted granted Critical
Publication of TWI489287B publication Critical patent/TWI489287B/en

Links

Landscapes

  • Time-Division Multiplex Systems (AREA)

Description

多工切換裝置及其切換方法Multiplex switching device and switching method thereof

一種多工切換裝置及其切換方法,特別關於一種可自動判斷及選擇多個控制訊號之一輸出的多工切換裝置及其切換方法。A multiplex switching device and a switching method thereof, in particular to a multiplex switching device capable of automatically determining and selecting one of a plurality of control signals and a switching method thereof.

內部整合電路(Inter-Integrated Circuit,以下簡稱I2C)協定是電子元件中相互溝通常用的一種標準協定。而在每個具I2C協定之電子元件中,都有配置一個位址(Address),此位址可以讓主控端(Master)進行具I2C協定之電子裝置的內部資料讀取與資料設定。但由於在一系統上可能會有多組具I2C協定的控制迴路設計,因此常見之設計方式是使用多工器(Multiplexer,MUX)將多組資料訊號(Data Signal)與時脈訊號(Clock Signal)訊號連接在一起。接著,再透過一選擇(Select)的控制訊號,控制欲讀取之具I2C協定的電子裝置,藉以達到多電子裝置之切換控制設計。The Inter-Integrated Circuit (I2C) protocol is a standard protocol commonly used in electronic communication. In each electronic component with I2C protocol, an address is configured, which allows the master to perform internal data reading and data setting of the I2C-compliant electronic device. However, since there may be multiple sets of control loop designs with I2C protocol on a system, a common design method is to use a multiplexer (MUX) to transmit multiple sets of data signals and clock signals (Clock Signal). The signals are connected together. Then, through an optional control signal, the electronic device with the I2C protocol to be read is controlled to achieve the switching control design of the multi-electronic device.

但在大型系統上,由於系統較龐大,且可能具有多個主控端,所以通常不只有單一組主從式(Master-Slave)的I2C協定控制迴路架構。例如南橋晶片(South-Bridge Chip,SB Chip)或基板控制器(Baseboard Management Controller,BMC)都能對同一具I2C協定迴路進行主控,而大多數具I2C協定之電子裝置並無支援多個主從架構控制迴路的設計。因此, 如果兩個主控端同時對同一具I2C協定之迴路進行控制時,便會造成系統錯誤。However, on large systems, because the system is large and may have multiple masters, there is usually no single master-slave I2C protocol control loop architecture. For example, the South-Bridge Chip (SB Chip) or the Baseboard Management Controller (BMC) can control the same I2C protocol loop, and most I2C-compliant electronic devices do not support multiple masters. The design of the control loop from the architecture. therefore, If the two masters simultaneously control the same I2C-compliant loop, a system error will result.

然而在大型系統中,這類的解決方案,是將主控端之選擇訊號路徑各分別放置一串聯電阻,在工程師設計系統階段便可針對系統控制需求進行預先設定。當決定控制權後,便將不須控制的選擇訊號迴路斷開,此方法雖然可確保具I2C協定之控制迴路不會出錯,但卻讓設計及除錯缺乏彈性。However, in large-scale systems, this type of solution is to place a series resistor on each of the selected signal paths of the master, and the system control requirements can be preset in the engineer design system phase. When the control is determined, the control signal loop that does not need to be controlled is disconnected. This method ensures that the control loop with the I2C protocol does not go wrong, but it lacks flexibility in design and debugging.

本發明提供一種多工切換裝置及其切換方法,藉以解決多個主控端同時提出控制權之衝突問題。The invention provides a multiplex switching device and a switching method thereof, thereby solving the problem that a plurality of master terminals simultaneously propose control conflicts.

本發明提出一種多工切換方法,包括下列步驟。接收第一控制訊號以及第二控制訊號。判斷第一控制訊號以及第二控制訊號是否被接收。當第一控制訊號以及第二控制訊號被接收時,判斷第一控制訊號以及第二控制訊號是否均具有控制請求。當判斷第一控制訊號以及第二控制訊號均具有控制請求時,執行控制訊號保護程序,以切換第一匯流排與多個第二匯流排其中之一相連接,並發出錯誤警告訊號。當判斷第一控制訊號以及第二控制訊號均未具有控制請求時,執行備援處理程序,並發出錯誤警告訊號。The present invention proposes a multiplex switching method comprising the following steps. Receiving the first control signal and the second control signal. It is determined whether the first control signal and the second control signal are received. When the first control signal and the second control signal are received, it is determined whether the first control signal and the second control signal both have a control request. When it is determined that the first control signal and the second control signal both have a control request, the control signal protection program is executed to switch the first bus bar to connect with one of the plurality of second bus bars, and issue an error warning signal. When it is determined that neither the first control signal nor the second control signal has a control request, the backup processing program is executed, and an error warning signal is issued.

在一實施例中,前述多工切換方法更包括下列步驟。當判斷第一控制訊號及第二控制訊號未被接收時,分別輸出第一控制訊號及第二控制訊號。依據第一控制訊號及第二控制訊號,分別切換第一匯流排與對應之多個第二匯流排其中之一相連接。In an embodiment, the foregoing multiplex switching method further includes the following steps. When it is determined that the first control signal and the second control signal are not received, the first control signal and the second control signal are respectively output. And respectively switching the first bus bar and one of the corresponding plurality of second bus bars according to the first control signal and the second control signal.

在一實施例中,前述多工切換方法更包括下列步驟。記錄第一控制訊號以及第二控制訊號。In an embodiment, the foregoing multiplex switching method further includes the following steps. Recording the first control signal and the second control signal.

在一實施例中,前述控制請求為符合內部整合電路協定或符合序列周邊介面匯流排協定。In one embodiment, the aforementioned control request is in accordance with an internal integrated circuit agreement or a conforming peripheral interface bus protocol.

在一實施例中,前述控制訊號保護程序之步驟包括下列步驟。判斷是否依據優先順序列表選擇輸出第一控制訊號或第二控制訊號。當判斷依據優先順序列表選擇輸出第一控制訊號或第二控制訊號時,輸出優先順序列表中所設定的第一控制訊號或第二控制訊號。當判斷未依據優先順序列表選擇輸出第一控制訊號或第二控制訊號時,輸出預設之第一控制訊號或第二控制訊號。In an embodiment, the step of controlling the signal protection program includes the following steps. It is determined whether the first control signal or the second control signal is output according to the priority list. When it is determined that the first control signal or the second control signal is output according to the priority list, the first control signal or the second control signal set in the priority order list is output. When it is determined that the first control signal or the second control signal is not selected according to the priority list, the preset first control signal or the second control signal is output.

本發明提出一種多工切換裝置,包括控制單元以及切換單元。控制單元包括切換訊號監控單元、控制訊號保護單元、備援處理程序單元、錯誤訊號警告單元以及記錄單元。切換訊號監控單元用以接收第一控制訊號以及第二控制訊號,以判斷第一控制訊號以及第二控制訊號是否被接收。當判斷第一控制訊號以及第二控制訊號被接收時,切換訊號監控單元判斷第一控制訊號以及第二控制訊號是否均具有控制請求。控制訊號保護單元耦接切換訊號監控單元,用以當判斷第一控制訊號以及第二控制訊號均具有控制請求時,執行控制訊號保護程序,以控制切換訊號監控單元輸出對應的第一控制訊號或第二控制訊號,並發出錯誤警告訊號。備援處理程序單元耦接切換訊號監控單元,用以當第一控制訊號以及第二控制訊號均未具有控制請求時,執行備援處理程序,並發出錯誤警告訊號。The invention provides a multiplex switching device comprising a control unit and a switching unit. The control unit includes a switching signal monitoring unit, a control signal protection unit, a backup processing program unit, an error signal warning unit, and a recording unit. The switching signal monitoring unit is configured to receive the first control signal and the second control signal to determine whether the first control signal and the second control signal are received. When it is determined that the first control signal and the second control signal are received, the switching signal monitoring unit determines whether the first control signal and the second control signal both have a control request. The control signal protection unit is coupled to the switching signal monitoring unit for performing a control signal protection program to control the output of the first control signal or the corresponding control signal when the first control signal and the second control signal have a control request. The second control signal and an error warning signal is issued. The backup processing unit is coupled to the switching signal monitoring unit for executing the backup processing program and issuing an error warning signal when the first control signal and the second control signal do not have a control request.

錯誤訊號警告單元耦接控制訊號保護單元及備援處理程序 單元,用以接收錯誤警告訊號,並依據錯誤警告訊號,產生錯誤警告訊息。切換單元耦接控制單元。切換單元具有第一匯流排及多個第二匯流排,且切換單元依據切換訊號監控單元所輸出之對應的第一控制訊號或第二控制訊號,切換第一匯流排與對應之多個第二匯流排其中之一相連接。The error signal warning unit is coupled to the control signal protection unit and the backup processing program The unit is configured to receive an error warning signal and generate an error warning message according to the error warning signal. The switching unit is coupled to the control unit. The switching unit has a first bus bar and a plurality of second bus bars, and the switching unit switches the first bus bar and the corresponding plurality of second according to the corresponding first control signal or the second control signal output by the switching signal monitoring unit One of the bus bars is connected.

在一實施例中,前述當判斷第一控制訊號及第二控制訊號未被接收時,切換訊號監控單元分別輸出第一控制訊號及第二控制訊號。切換單元依據第一控制訊號及第二控制訊號,分別切換第一匯流排與對應之多個第二匯流排其中之一相連接。In an embodiment, when it is determined that the first control signal and the second control signal are not received, the switching signal monitoring unit outputs the first control signal and the second control signal, respectively. The switching unit respectively switches the first bus bar and one of the corresponding plurality of second bus bars according to the first control signal and the second control signal.

在一實施例中,前述控制單元更包括記錄單元。記錄單元耦接切換訊號監控單元,用以記錄第一控制訊號以及第二控制訊號。In an embodiment, the aforementioned control unit further includes a recording unit. The recording unit is coupled to the switching signal monitoring unit for recording the first control signal and the second control signal.

在一實施例中,前述當控制訊號保護單元執行控制訊號保護程序時,控制訊號保護單元判斷是否依據優先順序列表選擇輸出第一控制訊號或第二控制訊號。當判斷依據優先順序列表選擇輸出第一控制訊號或第二控制訊號時,控制訊號保護單元控制切換訊號監控單元輸出優先順序列表中所設定的第一控制訊號或第二控制訊號。當判斷未依據優先順序列表選擇輸出第一控制訊號或第二控制訊號時,控制訊號保護單元控制切換訊號監控單元輸出預設之第一控制訊號或第二控制訊號。In an embodiment, when the control signal protection unit executes the control signal protection program, the control signal protection unit determines whether to output the first control signal or the second control signal according to the priority list. When it is determined that the first control signal or the second control signal is selected according to the priority list, the control signal protection unit controls the switching signal monitoring unit to output the first control signal or the second control signal set in the priority order list. When it is determined that the first control signal or the second control signal is not selected according to the priority list, the control signal protection unit controls the switching signal monitoring unit to output the preset first control signal or the second control signal.

在本一實施例中,前述切換單元為多工器,控制單元為複雜可程式邏輯裝置。In this embodiment, the foregoing switching unit is a multiplexer, and the control unit is a complex programmable logic device.

本發明之多工切換裝置及其切換方法,藉由在第一控制訊號以及第二控制訊號被接收時,判斷第一控制訊號以及第二控制訊號中是否有控制請求,再據以執行控制訊號保護程序或備援處理程序,以切換切換 單元之第一匯流排與多個第二匯流排其中之一相連接,並發出錯誤警告訊號。如此一來,可以達到自動判斷並選擇適當的控制訊號進行對應的切換,解決多個主控元件同時提出控制權之衝突問題。The multiplexer switching device of the present invention and the switching method thereof, when the first control signal and the second control signal are received, determine whether there is a control request in the first control signal and the second control signal, and then execute the control signal according to the control signal Protector or backup handler to switch between The first bus of the unit is connected to one of the plurality of second bus bars and issues an error warning signal. In this way, it is possible to automatically determine and select an appropriate control signal for corresponding switching, and solve the problem that multiple control elements simultaneously raise control rights.

有關本發明的特徵與實作,茲配合圖式作實施例詳細說明如下。The features and implementations of the present invention are described in detail below with reference to the drawings.

100‧‧‧多工切換裝置100‧‧‧Multiplex switcher

110‧‧‧控制單元110‧‧‧Control unit

112‧‧‧第一控制訊號112‧‧‧First control signal

114‧‧‧第二控制訊號114‧‧‧Second control signal

116‧‧‧錯誤警告訊息116‧‧‧Error warning message

120‧‧‧切換單元120‧‧‧Switch unit

122‧‧‧第一匯流排122‧‧‧First bus

124‧‧‧第二匯流排124‧‧‧Second bus

1101‧‧‧切換訊號監控單元1101‧‧‧Switch signal monitoring unit

1102‧‧‧控制訊號保護單元1102‧‧‧Control signal protection unit

1103‧‧‧備援處理程序單元1103‧‧‧Backup handler unit

1104‧‧‧錯誤訊號警告單元1104‧‧‧Error signal warning unit

1105‧‧‧記錄單元1105‧‧‧recording unit

第1圖為本發明之多工切換裝置的示意圖。Figure 1 is a schematic illustration of a multiplex switching device of the present invention.

第2圖為本發明之多工切換方法的示意圖。Figure 2 is a schematic diagram of the multiplex switching method of the present invention.

第3圖為第2圖之步驟S240之的詳細流程圖。Fig. 3 is a detailed flowchart of step S240 of Fig. 2.

第4圖為本發明之多工切換方法的另一流程圖。Figure 4 is another flow chart of the multiplex switching method of the present invention.

以下在實施方式中詳細敘述本發明之詳細特徵以及優點,其內容足以使任何熟習相關技藝者了解本發明之技術內容並據以實施,且根據本說明書所揭露之內容、申請專利範圍及圖式,任何熟習相關技藝者可輕易地理解本發明相關之目的及優點。The detailed features and advantages of the present invention are set forth in the Detailed Description of the Detailed Description of the <RTIgt; </ RTI> <RTIgt; </ RTI> </ RTI> </ RTI> <RTIgt; The objects and advantages associated with the present invention can be readily understood by those skilled in the art.

請參照「第1圖」,其為本發明之多工切換裝置之示意圖。本實施例之多工切換裝置100適用於電腦裝置或伺服器,以對電腦裝置或伺服器內之主控元件所產生的控制訊號進行相對應的切換處理。Please refer to "FIG. 1", which is a schematic diagram of the multiplex switching device of the present invention. The multiplexer switching device 100 of this embodiment is applicable to a computer device or a server to perform a corresponding switching process on a control signal generated by a main control component in a computer device or a server.

多工切換裝置100包括控制單元110以及切換單元120。其中,控制單元110包括切換訊號監控單元1101、控制訊號保護單元1102、一備援處理程序單元1103、錯誤訊號警告單元1104以及記錄單元1105。The multiplex switching device 100 includes a control unit 110 and a switching unit 120. The control unit 110 includes a switching signal monitoring unit 1101, a control signal protection unit 1102, a backup processing program unit 1103, an error signal warning unit 1104, and a recording unit 1105.

切換訊號監控單元1101用以接收第一控制訊號112以及第二控制訊號114,以判斷第一控制訊號112以及第二控制訊號114是否被接收。當判斷第一控制訊號112以及第二控制訊號114被接收時,切換訊號監控單元1101會再判斷第一控制訊號112以及第二控制訊號114是否均具有控制請求。The switching signal monitoring unit 1101 is configured to receive the first control signal 112 and the second control signal 114 to determine whether the first control signal 112 and the second control signal 114 are received. When it is determined that the first control signal 112 and the second control signal 114 are received, the switching signal monitoring unit 1101 may further determine whether the first control signal 112 and the second control signal 114 both have a control request.

控制訊號保護單元1102耦接切換訊號監控單元1101,用以當判斷第一控制訊號112以及第二控制訊號114均具有控制請求時,執行控制訊號保護程序,以控制切換訊號監控單元1101輸出對應的第一控制訊號112或第二控制訊號114,並發出錯誤警告訊號。The control signal protection unit 1102 is coupled to the switching signal monitoring unit 1101, and is configured to execute a control signal protection program to control the output of the switching signal monitoring unit 1101 when determining that both the first control signal 112 and the second control signal 114 have a control request. The first control signal 112 or the second control signal 114 sends an error warning signal.

備援處理程序單元1103耦接切換訊號監控單元1101,用以當判斷第一控制訊號112以及第二控制訊號114均未具有控制請求時,執行備援處理程序,並發出錯誤警告訊號。錯誤訊號警告單元1104耦接控制訊號保護單元1103及備援處理程序單元1104,用以接收錯誤警告訊號,並依據錯誤警告訊號,產生錯誤警告訊息116The backup processing unit 1103 is coupled to the switching signal monitoring unit 1101 for executing the backup processing program and issuing an error warning signal when it is determined that the first control signal 112 and the second control signal 114 do not have a control request. The error signal warning unit 1104 is coupled to the control signal protection unit 1103 and the backup processing program unit 1104 for receiving an error warning signal and generating an error warning message 116 according to the error warning signal.

切換單元120耦接控制單元110,且切換單元120具有第一匯流排122及多個第二匯流排124。切換單元120依據控制單元110所輸出之對應的第一控制訊號112或第二控制訊號114,用以切換第一匯流排122與對應之多個第二匯流排124其中之一相連接。在本實施例中,切換單元120例如為多工器,而控制單元110例如為複雜可程式邏輯裝置(Complex Programmable Logic Device,CPLD)。The switching unit 120 is coupled to the control unit 110, and the switching unit 120 has a first bus bar 122 and a plurality of second bus bars 124. The switching unit 120 is configured to switch the first bus bar 122 to be connected to one of the corresponding plurality of second bus bars 124 according to the corresponding first control signal 112 or the second control signal 114 output by the control unit 110. In this embodiment, the switching unit 120 is, for example, a multiplexer, and the control unit 110 is, for example, a Complex Programmable Logic Device (CPLD).

另外,第一控制訊號112與第二控制訊號114例如由電腦裝置或伺服器之主控元件所輸出。並且,主控元件例如包括南橋晶片、基板 管理控制器(Baseboard Management Controller,BMC)等。舉例來說,第一控制訊號112例如由南橋晶片所輸出,第二控制訊號114例如為基板管理控制器所輸出,但並不以此為限。In addition, the first control signal 112 and the second control signal 114 are output by, for example, a main control component of a computer device or a server. And, the main control element includes, for example, a south bridge wafer, a substrate Management Board (Baseboard Management Controller, BMC), etc. For example, the first control signal 112 is output by the south bridge chip, for example, the second control signal 114 is output by the substrate management controller, but is not limited thereto.

前述僅簡略描述多工切換裝置100的內部元件及其耦接關係,以下將搭配多工切換方法列舉其它實施例,進一步對多工切換裝置100的操作進行說明。In the foregoing, only the internal components of the multiplexer switching device 100 and their coupling relationships will be briefly described. Other embodiments will be described below in conjunction with the multiplex switching method, and the operation of the multiplex switching device 100 will be further described.

請參照「第2圖」,其為本發明之多工切換方法的流程圖。首先,切換訊號監控單元1101接收第一控制訊號112以及第二控制訊號114(步驟S210)。接著,切換訊號監控單元1101判斷第一控制訊號112以及第二控制訊號114是否被接收(步驟S220)。當判斷第一控制訊號112以及第二控制訊號114被接收時,切換訊號監控單元1101會進一步判斷第一控制訊號112以及第二控制訊號114是否均具有控制請求(步驟S230)。在本實施例中,此控制請求可以為但不限於符合內部整合電路協定或符合序列周邊介面匯流排(Serial Peripheral Interface Bus,SPI Bus)協定。Please refer to "FIG. 2", which is a flowchart of the multiplex switching method of the present invention. First, the switching signal monitoring unit 1101 receives the first control signal 112 and the second control signal 114 (step S210). Next, the switching signal monitoring unit 1101 determines whether the first control signal 112 and the second control signal 114 are received (step S220). When it is determined that the first control signal 112 and the second control signal 114 are received, the switching signal monitoring unit 1101 further determines whether the first control signal 112 and the second control signal 114 both have a control request (step S230). In this embodiment, the control request may be, but is not limited to, conforming to an internal integrated circuit protocol or conforming to a Serial Peripheral Interface Bus (SPI Bus) protocol.

當判斷第一控制訊號112以及第二控制訊號114均具有控制請求時,控制訊號保護單元1102執行控制訊號保護程序,使控制訊號保護單元1102控制切換訊號監控單元1101,以輸出對應的第一控制訊號112或第二控制訊號114。據此,控制訊號保護單元1102控制切換訊號監控單元1101輸出對應的第一控制訊號112或第二控制訊號114,用以切換第一匯流排122與多個第二匯流排124其中之一相連接(步驟S240)。之後,控制訊號保護單元1102發出錯誤警告訊號(步驟S250),此錯誤警告訊號會輸出至錯誤訊號警告單元1104。When it is determined that the first control signal 112 and the second control signal 114 both have a control request, the control signal protection unit 1102 performs a control signal protection process, so that the control signal protection unit 1102 controls the switching signal monitoring unit 1101 to output a corresponding first control. Signal 112 or second control signal 114. Accordingly, the control signal protection unit 1102 controls the switching signal monitoring unit 1101 to output a corresponding first control signal 112 or second control signal 114 for switching the first bus bar 122 to be connected to one of the plurality of second bus bars 124. (Step S240). Thereafter, the control signal protection unit 1102 issues an error warning signal (step S250), and the error warning signal is output to the error signal warning unit 1104.

另一方面,當判斷第一控制訊號112以及第二控制訊號114均未具有控制請求時,備援處理程序單元1103執行備援處理程序(步驟S260)。接著,控制訊號保護單元1102亦會發出錯誤警告訊號(步驟S250),此錯誤警告訊號會輸出至錯誤訊號警告單元1104。On the other hand, when it is judged that neither the first control signal 112 nor the second control signal 114 has a control request, the backup processing program unit 1103 executes the backup processing program (step S260). Then, the control signal protection unit 1102 also issues an error warning signal (step S250), and the error warning signal is output to the error signal warning unit 1104.

在本實施例中,前述備援處理程序可以為備援處理程序單元1103將此控制單元110之控制權切換至另一備援控制單元之程序,用以取代此控制單元110之控制功能,但並不以此為限。之後,錯誤訊號警告單元1104會依據錯誤警告訊號,產生錯誤警告訊息116。此錯誤警告訊息116可以為但不限於經由顯示裝置來顯示。In this embodiment, the backup processing program may be a program in which the backup processing program unit 1103 switches the control of the control unit 110 to another backup control unit, instead of the control function of the control unit 110, but Not limited to this. Thereafter, the error signal warning unit 1104 generates an error warning message 116 according to the error warning signal. This error warning message 116 can be, but is not limited to, displayed via a display device.

承接步驟S220,當判斷第一控制訊號112及第二控制訊號114未被接收時,切換訊號監控單元1101分別輸出第一控制訊號112及第二控制訊號114(步驟S270)。接著,切換單元120依據第一控制訊號112及第二控制訊號114,分別切換第一匯流排122與對應之第二匯流排124其中之一相連接(步驟S280)。In step S220, when it is determined that the first control signal 112 and the second control signal 114 are not received, the switching signal monitoring unit 1101 outputs the first control signal 112 and the second control signal 114, respectively (step S270). Then, the switching unit 120 switches the first bus bar 122 to one of the corresponding second bus bars 124 according to the first control signal 112 and the second control signal 114 (step S280).

舉例來說,當第一控制訊號112在第二控制訊號114之前先被接收時,切換訊號監控單元1101會先輸出第一控制訊號112,以控制切換單元120切換第一匯流排122與第二匯流排124中的第一個匯流排相連接。接著,切換訊號監控單元1101再輸出第二控制訊號114,以控制切換單元120切換第一匯流排122與第二匯流排124中的第三個匯流排相連接,但並不以此為限。For example, when the first control signal 112 is received before the second control signal 114, the switching signal monitoring unit 1101 first outputs the first control signal 112 to control the switching unit 120 to switch the first bus bar 122 and the second. The first bus bar in the bus bar 124 is connected. Then, the switching signal monitoring unit 1101 outputs the second control signal 114 to control the switching unit 120 to switch the first bus bar 122 to the third bus bar in the second bus bar 124, but is not limited thereto.

請參照「第3圖」,其為「第2圖」之步驟S240的詳細流程圖。當控制訊號保護單元1102執行控制訊號保護程序時,控制訊號保護單 元1102會先判斷是否依據優先順序列表選擇輸出第一控制訊號112或第二控制訊號114(步驟S310)。當判斷依據優先順序列表選擇輸出第一控制訊號112或第二控制訊號114時,控制訊號保護單元1102控制切換訊號監控單元1101,以輸出優先順序列表中所設定的第一控制訊號112或第二控制訊號114(步驟S320)。Please refer to "FIG. 3", which is a detailed flowchart of step S240 of "FIG. 2". When the control signal protection unit 1102 performs a control signal protection program, the control signal protection list The element 1102 first determines whether to output the first control signal 112 or the second control signal 114 according to the priority list (step S310). When it is determined that the first control signal 112 or the second control signal 114 is selected according to the priority list, the control signal protection unit 1102 controls the switching signal monitoring unit 1101 to output the first control signal 112 or the second set in the priority order list. Control signal 114 (step S320).

在本實施例中,優先順序列表例如為工程師依據第一控制訊號112以及第二控制訊號114之重要性所預先設定之優先順序列表。以第一控制訊號112之優先輸出順序在第二控制訊號114之前為例。當切換訊號監控單元1101接收第一控制訊號112以及第二控制訊號114時,控制訊號保護單元1102會控制切換訊號監控單元1101,以輸出第一控制訊號112至切換單元120。相反地,以第二控制訊號114之優先輸出順序在第一控制訊號112之前為例,當切換訊號監控單元1101接收第一控制訊號112以及第二控制訊號114時,控制訊號保護單元1102會控制切換訊號監控單元1101,以輸出第二控制訊號114至切換單元120,但並不以此為限。In this embodiment, the priority order list is, for example, a priority order list preset by the engineer according to the importance of the first control signal 112 and the second control signal 114. Taking the priority output order of the first control signal 112 before the second control signal 114 as an example. When the switching signal monitoring unit 1101 receives the first control signal 112 and the second control signal 114, the control signal protection unit 1102 controls the switching signal monitoring unit 1101 to output the first control signal 112 to the switching unit 120. Conversely, the priority output sequence of the second control signal 114 is preceded by the first control signal 112. When the switching signal monitoring unit 1101 receives the first control signal 112 and the second control signal 114, the control signal protection unit 1102 controls The signal monitoring unit 1101 is switched to output the second control signal 114 to the switching unit 120, but is not limited thereto.

當判斷依據優先順序列表選擇輸出第一控制訊號112或第二控制訊號114時,控制訊號保護單元1102控制切換訊號監控單元1101,以輸出預設之第一控制訊號112或第二控制訊號114至切換單元120(步驟S330)。在本實施例中,以預設之第一控制訊號112作為切換訊號監控單元1101的預設輸出選擇為例,因此當第一控制訊號112或第二控制訊號114被接收時,控制訊號保護單元1102會控制切換訊號監控單元1101,以輸出預設之第一控制訊號112至切換單元120。When it is determined that the first control signal 112 or the second control signal 114 is selected according to the priority list, the control signal protection unit 1102 controls the switching signal monitoring unit 1101 to output the preset first control signal 112 or the second control signal 114 to The switching unit 120 (step S330). In this embodiment, the preset first control signal 112 is used as the preset output selection of the switching signal monitoring unit 1101. Therefore, when the first control signal 112 or the second control signal 114 is received, the control signal protection unit is controlled. 1102 controls the switching signal monitoring unit 1101 to output the preset first control signal 112 to the switching unit 120.

請參照「第4圖」,其為本發明之多工切換方法的另一流程 圖。首先,切換訊號監控單元1101接收第一控制訊號112以及第二控制訊號114(步驟S410)。接著,記錄單元1105記錄第一控制訊號112以及第二控制訊號114(步驟S490),以避免資料遺失。之後,切換訊號監控單元1101判斷第一控制訊號112以及第二控制訊號114是否被接收(步驟S420)。Please refer to "FIG. 4", which is another flow of the multiplex switching method of the present invention. Figure. First, the switching signal monitoring unit 1101 receives the first control signal 112 and the second control signal 114 (step S410). Next, the recording unit 1105 records the first control signal 112 and the second control signal 114 (step S490) to avoid data loss. Thereafter, the switching signal monitoring unit 1101 determines whether the first control signal 112 and the second control signal 114 are received (step S420).

當判斷第一控制訊號112以及第二控制訊號114被接收時,切換訊號監控單元1101會判斷第一控制訊號112以及第二控制訊號114是否均具有控制請求(步驟S430)。當判斷第一控制訊號112以及第二控制訊號114均具有控制請求時,控制訊號保護單元1102執行控制訊號保護程序,以切換第一匯流排122與對應之第二匯流排124其中之一相連接(步驟S440)。接著,控制訊號保護單元1102發出錯誤警告訊號(步驟S450),此錯誤警告訊號會輸出至錯誤訊號警告單元1104。When it is determined that the first control signal 112 and the second control signal 114 are received, the switching signal monitoring unit 1101 determines whether the first control signal 112 and the second control signal 114 both have a control request (step S430). When it is determined that both the first control signal 112 and the second control signal 114 have a control request, the control signal protection unit 1102 performs a control signal protection process to switch the first bus bar 122 to be connected to one of the corresponding second bus bars 124. (Step S440). Then, the control signal protection unit 1102 issues an error warning signal (step S450), and the error warning signal is output to the error signal warning unit 1104.

另一方面,當判斷第一控制訊號112以及第二控制訊號114均未具有控制請求時,備援處理程序單元1103執行備援處理程序(步驟S460)。接著,控制訊號保護單元1102發出錯誤警告訊號(步驟S450),此錯誤警告訊號會輸出至錯誤訊號警告單元1104。On the other hand, when it is judged that neither the first control signal 112 nor the second control signal 114 has a control request, the backup processing program unit 1103 executes the backup processing program (step S460). Then, the control signal protection unit 1102 issues an error warning signal (step S450), and the error warning signal is output to the error signal warning unit 1104.

承接步驟S420,當判斷第一控制訊號112及第二控制訊號114未被接收時,切換訊號監控單元1101分別輸出第一控制訊號112及第二控制訊號114(步驟S470)。接著,切換單元120依據第一控制訊號112及第二控制訊號114,分別切換第一匯流排122與對應之第二匯流排124其中之一相連接(步驟S480)。In step S420, when it is determined that the first control signal 112 and the second control signal 114 are not received, the switching signal monitoring unit 1101 outputs the first control signal 112 and the second control signal 114, respectively (step S470). Then, the switching unit 120 switches the first bus bar 122 and one of the corresponding second bus bars 124 according to the first control signal 112 and the second control signal 114 (step S480).

本發明之實施例所揭露的多工切換裝置及其切換方法,藉由在第一控制訊號以及第二控制訊號被接收時,判斷第一控制訊號及第二控 制訊號中是否有控制請求,再據以執行控制訊號保護程序或備援處理程序,以切換切換單元之第一匯流排與多個第二匯流排其中之一相連接,並發出錯誤警告訊號。如此一來,可以達到自動判斷並選擇適當的控制訊號進行對應的切換,以解決多個主控元件(即南橋晶片及基板管理控制器)同時提出控制權之衝突問題。The multiplexer switching device and the switching method thereof are determined by the first control signal and the second control when the first control signal and the second control signal are received. Whether there is a control request in the signal signal, and then executing the control signal protection program or the backup processing program, the first bus bar of the switching switching unit is connected with one of the plurality of second bus bars, and an error warning signal is issued. In this way, it is possible to automatically determine and select an appropriate control signal for corresponding switching, so as to solve the problem that multiple control elements (ie, the south bridge chip and the substrate management controller) simultaneously propose control conflicts.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明。在不脫離本發明之精神和範圍內,所為之更動與潤飾,均屬本發明之專利保護範圍。關於本發明所界定之保護範圍請參考所附之申請專利範圍。Although the present invention has been disclosed above in the foregoing embodiments, it is not intended to limit the invention. It is within the scope of the invention to be modified and modified without departing from the spirit and scope of the invention. Please refer to the attached patent application for the scope of protection defined by the present invention.

Claims (10)

一種多工切換方法,包括:接收一第一控制訊號以及一第二控制訊號;判斷該第一控制訊號以及該第二控制訊號是否被接收;當判斷該第一控制訊號以及該第二控制訊號被接收時,判斷該第一控制訊號以及該第二控制訊號是否均具有一控制請求;當判斷該第一控制訊號以及該第二控制訊號均具有該控制請求時,執行一控制訊號保護程序,以切換一第一匯流排與多個第二匯流排其中之一相連接,並發出一錯誤警告訊號;以及當該第一控制訊號以及該第二控制訊號均未具有該控制請求時,執行一備援處理程序,並發出該錯誤警告訊號;其中該備援處理程序係將一控制單元之控制權切換給一備援控制單元。 A multiplex switching method includes: receiving a first control signal and a second control signal; determining whether the first control signal and the second control signal are received; and determining the first control signal and the second control signal When being received, determining whether the first control signal and the second control signal both have a control request; when determining that the first control signal and the second control signal both have the control request, performing a control signal protection procedure, Switching a first bus bar to connect with one of the plurality of second bus bars and issuing an error warning signal; and when the first control signal and the second control signal do not have the control request, executing one The backup processing program issues the error warning signal; wherein the backup processing program switches control of a control unit to a backup control unit. 如請求項1所述之多工切換方法,更包括:當判斷該第一控制訊號及該第二控制訊號未被接收時,分別輸出該第一控制訊號及該第二控制訊號;以及依據該第一控制訊號及該第二控制訊號,分別切換該第一匯流排與對應之該些第二匯流排其中之一相連接。 The multiplex switching method of claim 1, further comprising: when determining that the first control signal and the second control signal are not received, respectively outputting the first control signal and the second control signal; The first control signal and the second control signal respectively switch the first bus bar to be connected to one of the corresponding second bus bars. 如請求項1所述之多工切換方法,更包括:記錄該第一控制訊號以及該第二控制訊號。 The multiplex switching method of claim 1, further comprising: recording the first control signal and the second control signal. 如請求項1所述之多工切換方法,其中該控制請求為符合內部整合電路協定或符合序列周邊介面匯流排協定。 The multiplex switching method of claim 1, wherein the control request is in accordance with an internal integrated circuit agreement or a sequence peripheral interface bus protocol. 如請求項1所述之多工切換方法,其中該控制訊號保護程序之步驟包括:判斷是否依據一優先順序列表選擇輸出該第一控制訊號或該第二控制訊號;當判斷依據該優先順序列表選擇輸出該第一控制訊號或該第二控制訊號時,輸出該優先順序列表中所設定的該第一控制訊號或該第二控制訊號;以及當判斷未依據該優先順序列表選擇輸出該第一控制訊號或該第二控制訊號時,輸出一預設之該第一控制訊號或該第二控制訊號。 The multiplex switching method of claim 1, wherein the step of controlling the signal protection program comprises: determining whether to output the first control signal or the second control signal according to a priority list; when determining according to the priority order list When the first control signal or the second control signal is selected to be output, the first control signal or the second control signal set in the priority order list is output; and when it is determined that the first control output is not selected according to the priority order list When the control signal or the second control signal is received, a preset first control signal or the second control signal is output. 一種多工切換裝置,包括:一控制單元,包括:一切換訊號監控單元,用以接收一第一控制訊號以及一第二控制訊號,以判斷該第一控制訊號以及該第二控制訊號是否被接收;當判斷該第一控制訊號以及該第二控制訊號被接收時,判斷該第一控制訊號以及該第二控制訊號是否均具有一控制請求;一控制訊號保護單元,耦接該切換訊號監控單元,用以當判斷該第一控制訊號以及該第二控制訊號均具有該控制請求時,執行一控制訊號保護程序,以控制該切換訊號監控單元輸出對應的該第一控制訊號或該第二控制訊號,並發出一錯誤警告訊號;一備援處理程序單元,耦接該切換訊號監控單元,用以當判斷該第一控制訊號以及該第二控制訊號均未具有該控制請求時,執行一備援處理程序,並發出該錯誤警告訊號;以及 一錯誤訊號警告單元,耦接該控制訊號保護單元及該備援處理程序單元,用以接收該錯誤警告訊號,並依據該錯誤警告訊號,產生一錯誤警告訊息;以及一切換單元,耦接該控制單元,該切換單元具有一第一匯流排及多個第二匯流排,該切換單元依據該切換訊號監控單元所輸出之對應的該第一控制訊號或該第二控制訊號,切換該第一匯流排與對應之該些第二匯流排其中之一相連接;其中該備援處理程序係將該控制單元之控制權切換給一備援控制單元。 A multiplexer switching device includes: a control unit, comprising: a switching signal monitoring unit, configured to receive a first control signal and a second control signal to determine whether the first control signal and the second control signal are Receiving; determining that the first control signal and the second control signal are received, determining whether the first control signal and the second control signal each have a control request; and a control signal protection unit coupled to the switching signal monitoring a unit, configured to: when determining that the first control signal and the second control signal have the control request, performing a control signal protection procedure to control the switching signal monitoring unit to output the corresponding first control signal or the second Controlling the signal and issuing an error warning signal; a backup processing unit coupled to the switching signal monitoring unit for performing a control when the first control signal and the second control signal do not have the control request Backup the handler and issue the error warning signal; An error signal warning unit coupled to the control signal protection unit and the backup processing program unit for receiving the error warning signal and generating an error warning message according to the error warning signal; and a switching unit coupled to the a control unit, the switching unit has a first bus bar and a plurality of second bus bars, and the switching unit switches the first control signal according to the first control signal or the second control signal output by the switching signal monitoring unit The bus bar is connected to one of the corresponding second bus bars; wherein the backup processing program switches the control of the control unit to a backup control unit. 如請求項6所述之多工切換裝置,其中當該第一控制訊號及該第二控制訊號未被接收時,該切換訊號監控單元分別輸出該第一控制訊號及該第二控制訊號,且該切換單元依據該第一控制訊號及第二控制訊號,分別切換該第一匯流排與對應之該些第二匯流排其中之一相連接。 The multiplexer switching device of claim 6, wherein the switching signal monitoring unit outputs the first control signal and the second control signal respectively when the first control signal and the second control signal are not received, and The switching unit switches the first bus bar to one of the corresponding second bus bars according to the first control signal and the second control signal. 如請求項6所述之多工切換裝置,其中該控制單元更包括:一記錄單元,耦接該切換訊號監控單元,用以記錄該第一控制訊號以及該第二控制訊號。 The multiplexer switching device of claim 6, wherein the control unit further comprises: a recording unit coupled to the switching signal monitoring unit for recording the first control signal and the second control signal. 如請求項6所述之多工切換裝置,其中當該控制訊號保護單元執行該控制訊號保護程序時,該控制訊號保護單元判斷是否依據一優先順序列表選擇輸出該第一控制訊號或該第二控制訊號;當判斷依據該優先順序列表選擇輸出該第一控制訊號或該第二控制訊號時,該控制訊號保護單元控制該切換訊號監控單元輸出該優先順序列表中所設定的該第一控制訊號或該第二控制訊號;當判斷未依據該優先順序列表選擇輸出該第一 控制訊號或該第二控制訊號時,該控制訊號保護單元控制該切換訊號監控單元輸出一預設之該第一控制訊號或該第二控制訊號。 The multiplexer switching device of claim 6, wherein when the control signal protection unit executes the control signal protection program, the control signal protection unit determines whether to output the first control signal or the second according to a priority order list. Controlling the signal; when it is determined that the first control signal or the second control signal is selected according to the priority list, the control signal protection unit controls the switching signal monitoring unit to output the first control signal set in the priority order list Or the second control signal; when it is determined that the first output is not selected according to the priority list The control signal protection unit controls the switching signal monitoring unit to output a preset first control signal or the second control signal when the control signal or the second control signal is received. 如請求項6所述之多工切換裝置,其中該切換單元為多工器,該控制單元為複雜可程式邏輯裝置。 The multiplex switching device of claim 6, wherein the switching unit is a multiplexer, and the control unit is a complex programmable logic device.
TW102122806A 2013-06-26 2013-06-26 Multiplexer device and switching method therefor TWI489287B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102122806A TWI489287B (en) 2013-06-26 2013-06-26 Multiplexer device and switching method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102122806A TWI489287B (en) 2013-06-26 2013-06-26 Multiplexer device and switching method therefor

Publications (2)

Publication Number Publication Date
TW201500931A TW201500931A (en) 2015-01-01
TWI489287B true TWI489287B (en) 2015-06-21

Family

ID=52717938

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102122806A TWI489287B (en) 2013-06-26 2013-06-26 Multiplexer device and switching method therefor

Country Status (1)

Country Link
TW (1) TWI489287B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI739853B (en) * 2017-06-16 2021-09-21 英業達股份有限公司 Computing device and operation method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030225739A1 (en) * 2002-05-04 2003-12-04 Chesson Gregory L. Flexible scheduling architecture
TW200837632A (en) * 2007-03-15 2008-09-16 Inventec Corp Boot-switching apparatus and method for multiprocessor and multi-memory system
TW201133243A (en) * 2010-03-19 2011-10-01 Asustek Comp Inc Arbitrator and arbitrating method applied to system management bus system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030225739A1 (en) * 2002-05-04 2003-12-04 Chesson Gregory L. Flexible scheduling architecture
TW200837632A (en) * 2007-03-15 2008-09-16 Inventec Corp Boot-switching apparatus and method for multiprocessor and multi-memory system
TW201133243A (en) * 2010-03-19 2011-10-01 Asustek Comp Inc Arbitrator and arbitrating method applied to system management bus system

Also Published As

Publication number Publication date
TW201500931A (en) 2015-01-01

Similar Documents

Publication Publication Date Title
US8898358B2 (en) Multi-protocol communication on an I2C bus
JP4805163B2 (en) Apparatus and method for time sequencing events in a system having multiple time domain groups
WO2016037501A1 (en) Device management method and apparatus
WO2017080274A1 (en) Multiprocessor system and clock synchronization method
AU2017223094B2 (en) Bus bridge for translating requests between a module bus and an axi bus
WO2024113818A1 (en) Switch reset system and method, non-volatile readable storage medium, and electronic device
CN108023762B (en) Server data port learning for data exchanger
CN104571294A (en) Server system
US9208008B2 (en) Method and apparatus for multi-chip reduced pin cross triggering to enhance debug experience
TWI489287B (en) Multiplexer device and switching method therefor
TWI528287B (en) Server system
US9509633B2 (en) Multi-switching device and multi-switching method thereof
CN112486899A (en) Integrated circuit, bus system and scheduling method
CN105446654A (en) Server control method and rack controller
JP6030998B2 (en) Information processing system
US20160349326A1 (en) Debug trigger interface for non-debug domain system reset
TW202215199A (en) Master-slave interchangeable power supply device and host machine thereof, master-slave interchangeable power supply method, and computer-readable recording medium thereof for the power control module and the power supply unit to communicate with each other under the standard of the communication bus
JP5733384B2 (en) Information processing device
US20180018292A1 (en) Method and apparatus for detecting and resolving bus hang in a bus controlled by an interface clock
CN111338993B (en) Hard disk control system
TW202207042A (en) Server system
TWI658366B (en) Hardware resource expansion system and hot swap management device
TWI685748B (en) Hdd control system
CN113064664A (en) Control method and device, complex programmable logic device and server
TW201522998A (en) Testing device using standalone control module for testing and method thereof

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees