TWI506416B - Debug device and debug method - Google Patents

Debug device and debug method Download PDF

Info

Publication number
TWI506416B
TWI506416B TW102123252A TW102123252A TWI506416B TW I506416 B TWI506416 B TW I506416B TW 102123252 A TW102123252 A TW 102123252A TW 102123252 A TW102123252 A TW 102123252A TW I506416 B TWI506416 B TW I506416B
Authority
TW
Taiwan
Prior art keywords
signal
interface
debug
unit
debugging
Prior art date
Application number
TW102123252A
Other languages
Chinese (zh)
Other versions
TW201500912A (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 TW102123252A priority Critical patent/TWI506416B/en
Publication of TW201500912A publication Critical patent/TW201500912A/en
Application granted granted Critical
Publication of TWI506416B publication Critical patent/TWI506416B/en

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

除錯裝置與除錯方法Debugging device and debugging method

一種除錯裝置,特別有關於一種適於一伺服器的除錯裝置與除錯方法。A debugging device, in particular, relates to a debugging device and a debugging method suitable for a server.

在目前的伺服器中,當伺服器啟動時,基本輸入輸出系統(Basic Input Output System,BIOS)將會最先被啟動,以讓基本輸入輸出系統對伺服器內的硬體設備進行完整的檢驗和測試,此檢驗與測試的動作又被稱為開機自我測試(Power On Self Test,POST)。而當伺服器內的硬體設備通過檢驗與測試後,基本輸入輸出系統便會將伺服器內的硬體資訊交給作業系統,讓作業系統繼續完成開機的流程。但是,若伺服器中有某個元件件運作失常時,將使得開機程序停留在某個關卡而無法繼續正常開機。In the current server, when the server is started, the Basic Input Output System (BIOS) will be activated first, so that the basic input and output system can completely check the hardware devices in the server. And testing, this test and test action is also called Power On Self Test (POST). When the hardware device in the server passes the inspection and testing, the basic input and output system will deliver the hardware information in the server to the operating system, so that the operating system continues to complete the booting process. However, if a component in the server malfunctions, it will cause the boot program to stay at a certain level and cannot continue to boot normally.

因此,當開機程序中未進入作業系統之前,發生開機不正常的狀況時,只要去找出特定輸入輸出埠(IO Port)的代碼,例如Port 80,再找出此代碼所對應的檢查階段,就可以檢測出伺服器的哪個元件出現運作不正常的狀況。目前最常應用除錯的方式為利用配置於主機板上之除錯模組(Debug Module)來擷取Port 80的代碼,並將Port 80的代碼顯示出來,以供使用者判斷伺服器是否產生錯誤狀態。Therefore, when the booting process does not enter the operating system before the booting is abnormal, just find the code of the specific input/output port (IO Port), such as Port 80, and find out the check phase corresponding to the code. It is possible to detect which component of the server is not functioning properly. At present, the most common way to debug is to use the Debug Module configured on the motherboard to retrieve the code of the Port 80 and display the code of the Port 80 for the user to determine whether the server is generated. Error status.

然而,由於伺服器之主機板的空間有限,往往會在出貨時將除錯模組從主機板上卸除,亦即出貨的主機板上不會配置有除錯模組,如此就無法得知Port 80之代碼的訊息,並造成後續伺服器之主機板量產後,不易進行除錯與錯誤分析。因此,如何提供有效的除錯裝置,將是一個重要的課題。However, due to the limited space of the motherboard of the server, the debug module is often removed from the motherboard at the time of shipment, that is, the debugged motherboard is not equipped with a debug module, so After the message of the port 80 code is known, and the subsequent server board is mass-produced, debugging and error analysis are not easy. Therefore, how to provide an effective debugging device will be an important issue.

本揭露在於提供一種除錯裝置與除錯方法,藉以減少伺服器的除錯時間、成本及執行困難度,並提升除錯效率。The disclosure aims to provide a debugging device and a debugging method, thereby reducing the debugging time, cost and difficulty of execution of the server, and improving the debugging efficiency.

本揭露之一種除錯裝置,適用於伺服器上,此伺服器包括控制晶片。此除錯裝置包括接收單元、訊號處理單元與多個連接埠。接收單元耦接控制晶片,用以接收開機檢測訊號。訊號處理單元耦接接收單元,用以透過接收單元接收開機檢測訊號,並依據至少一切換訊號以及多個輸出介面,將開機檢測訊號的資訊碼轉換成至少一除錯訊號,其中輸出介面彼此不同。前述連接埠耦接訊號處理單元且分別對應輸出介面其中之一,用以傳送至少一除錯訊號。A debug device of the present disclosure is applicable to a server, the server including a control chip. The debugging device includes a receiving unit, a signal processing unit and a plurality of ports. The receiving unit is coupled to the control chip for receiving the power-on detection signal. The signal processing unit is coupled to the receiving unit for receiving the power-on detection signal through the receiving unit, and converting the information code of the power-on detection signal into at least one debugging signal according to the at least one switching signal and the plurality of output interfaces, wherein the output interfaces are different from each other . The connection port is coupled to the signal processing unit and corresponding to one of the output interfaces for transmitting at least one error signal.

在一實施例中,前述輸出介面包括串列埠介面、並列埠介面、內部積體電路與顯示訊號介面。In one embodiment, the output interface includes a serial port interface, a parallel port interface, an internal integrated circuit, and a display signal interface.

在一實施例中,前述除錯裝置更包括儲存單元。此儲存單元耦接訊號處理單元,用以儲存開機檢測訊號的資訊碼。In an embodiment, the foregoing debugging device further includes a storage unit. The storage unit is coupled to the signal processing unit for storing the information code of the power-on detection signal.

在一實施例中,前述除錯裝置更包括切換單元。此切換單元耦接訊號處理單元,用以產生切換訊號。In an embodiment, the foregoing debugging device further includes a switching unit. The switching unit is coupled to the signal processing unit for generating a switching signal.

在一實施例中,前述除錯裝置更包括多個顯示單元。這些顯示單元分別耦接連接埠,用以接收至少一除錯訊號,並顯示對應的至少一除錯訊號。In an embodiment, the foregoing debugging device further includes a plurality of display units. The display units are respectively coupled to the connection port for receiving at least one debug signal and displaying the corresponding at least one debug signal.

在一實施例中,前述接收單元包括低腳位數介面。In an embodiment, the aforementioned receiving unit includes a low-foot digit interface.

在一實施例中,前述至少一切換訊號由連接埠至少其中之一與顯示單元連接而產生。In an embodiment, the at least one switching signal is generated by connecting at least one of the ports to the display unit.

本揭露之一種除錯方法,適用於一伺服器上,此伺服器包括控制晶片。此除錯方法包括下列步驟。接收控制晶片所產生的開機檢測訊號。依據至少一切換訊號以及多個輸出介面,將開機檢測訊號的資訊碼轉換成至少一除錯訊號,其中輸出介面彼此不同。傳送至少一除錯訊號。A method of debugging according to the present disclosure is applicable to a server including a control chip. This debugging method includes the following steps. Receiving a power-on detection signal generated by the control chip. And converting the information code of the power-on detection signal into at least one debugging signal according to the at least one switching signal and the plurality of output interfaces, wherein the output interfaces are different from each other. Transmit at least one debug signal.

本揭露之除錯裝置與除錯方法,其藉由訊號處理單元取得 控制晶片所產生之開機檢測訊號,並依據切換訊號以及輸出介面,將開機檢測訊號的資訊碼轉換成對應的至少一除錯訊號,再由連接埠將前述除錯訊號傳送出去。另外,前述切換訊號可由連接埠至少其一與顯示單元連接而產生或是由切換單元來產生。如此一來,可減少伺服器的除錯時間、成本及執行困難度,並提升除錯效率。The debugging device and the debugging method of the present disclosure are obtained by a signal processing unit Controlling the power-on detection signal generated by the chip, and converting the information code of the power-on detection signal into corresponding at least one debugging signal according to the switching signal and the output interface, and then transmitting the debugging signal by the connection port. In addition, the foregoing switching signal may be generated by connecting at least one of the ports to the display unit or by the switching unit. In this way, the debugging time, cost, and difficulty of execution of the server can be reduced, and the debugging efficiency can be improved.

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

100、200‧‧‧伺服器100, 200‧‧‧ server

102‧‧‧中央處理單元102‧‧‧Central Processing Unit

104‧‧‧記憶體104‧‧‧ memory

106‧‧‧基本輸入輸出系統記憶體106‧‧‧Basic input and output system memory

108‧‧‧控制晶片108‧‧‧Control wafer

110‧‧‧除錯裝置110‧‧‧Debugging device

120‧‧‧接收單元120‧‧‧ receiving unit

130‧‧‧訊號處理單元130‧‧‧Signal Processing Unit

140_1~140_N‧‧‧連接埠140_1~140_N‧‧‧Connector

150_1~150_N、230_1~230_N‧‧‧處理單元150_1~150_N, 230_1~230_N‧‧‧ processing unit

210‧‧‧儲存單元210‧‧‧ storage unit

220‧‧‧切換單元220‧‧‧Switch unit

BDS‧‧‧開機檢測訊號BDS‧‧‧Start detection signal

第1圖為本揭露之伺服器的示意圖。Figure 1 is a schematic diagram of the server of the present disclosure.

第2圖為本揭露之伺服器的另一示意圖。Figure 2 is another schematic diagram of the server of the present disclosure.

第3圖為本揭露之除錯方法的流程圖。Figure 3 is a flow chart of the method for debugging the disclosure.

以下所列舉的各實施例中,將以相同的標號代表相同或相似的元件。In the various embodiments listed below, the same reference numerals will be used to refer to the same or similar elements.

請參考「第1圖」所示,其為本揭露之伺服器的示意圖。伺服器100包括中央處理單元(Central Processing unit,CPU)102、記憶體(Dual In-line Memory Module,DIMM)104、基本輸入輸出系統(Basic Input Output System,BIOS)記憶體106、控制晶片108與本揭露之除錯裝置110。中央處理單元102耦接記憶體104。基本輸入輸出系統記憶體106用以儲存基本輸入輸出系統。控制晶片108耦接中央處理單元104與基本輸入輸出系統單元106。Please refer to "Figure 1" for a schematic diagram of the server of the present disclosure. The server 100 includes a central processing unit (CPU) 102, a memory (Dual In-line Memory Module, DIMM) 104, a basic input output system (BIOS) memory 106, and a control chip 108. The debug device 110 of the present disclosure. The central processing unit 102 is coupled to the memory 104. The basic input/output system memory 106 is used to store a basic input/output system. The control chip 108 is coupled to the central processing unit 104 and the basic input output system unit 106.

並且,控制晶片108例如透過直接媒體介面(Direct Media Interface,DMI)匯流排耦接中央處理單元102。控制晶片108例如透過串列周邊介面(Serial Peripheral Interface,SPI)匯流排耦接基本輸入輸出系統記憶體106。其中,中央處理單元102、記憶體104與基本輸入輸出系統記憶體106不為本揭露的重點,故在此不再贅述。Moreover, the control chip 108 is coupled to the central processing unit 102 via a direct media interface (DMI) bus bar, for example. The control chip 108 is coupled to the basic input/output system memory 106, for example, via a Serial Peripheral Interface (SPI) bus. The central processing unit 102, the memory 104, and the basic input/output system memory 106 are not the focus of the disclosure, and thus are not described herein.

本揭露之除錯裝置100包括接收單元120、訊號處理單元130與多個連接埠140_1~140_N,其中N為大於1的正整數。The debug device 100 of the present disclosure includes a receiving unit 120, a signal processing unit 130 and a plurality of ports 140_1~140_N, where N is a positive integer greater than one.

接收單元120耦接控制晶片108,用以接收開機檢測訊號(Boot Device Select)BDS。在本實施例中,接收單元120例如包括低腳位數(Low Pin Count,LPC)介面,則除錯裝置110透過前述低腳位數介面耦接控制晶片108,以接收控制晶片108所產生開機檢測訊號BDS。The receiving unit 120 is coupled to the control chip 108 for receiving a Boot Device Select BDS. In this embodiment, the receiving unit 120 includes, for example, a low pin count (LPC) interface, and the debug device 110 is coupled to the control chip 108 through the low bit device interface to receive the boot of the control chip 108. Detection signal BDS.

訊號處理單元130耦接接收單元120,用以透過接收單元120接收控制晶片108所產生的開機檢測訊號BDS,並依據一切換訊號以及多個輸出介面,將開機檢測訊號BDS的資訊碼轉換成至少一除錯訊號,而前述輸出介面比此不同。其中,此控制晶片108例如為伺服器100之主機板的南橋晶片(South Bridge Chip,SB Chip)或平台控制集線器(Platform Controller Hub,PCH)晶片。而前述輸出介面包括串列埠(Serial Port)介面、並列埠(Parallel Port)介面、內部積體電路(Inter Integrated Circuit,I2C)與顯示訊號介面或其他的訊號輸出介面。The signal processing unit 130 is coupled to the receiving unit 120 for receiving the power-on detection signal BDS generated by the control chip 108 through the receiving unit 120, and converting the information code of the power-on detection signal BDS into at least one switching signal and a plurality of output interfaces. A debug signal, and the aforementioned output interface is different. The control chip 108 is, for example, a South Bridge Chip (SB Chip) or a Platform Controller Hub (PCH) chip of the motherboard of the server 100. The output interface includes a serial port interface, a Parallel Port interface, an Inter Integrated Circuit (I2C) and a display signal interface or other signal output interfaces.

在實際應用上,基本輸入輸出系統記憶體106會預先儲存多個開機自我測試碼(Power On Self Test Code,POST Code),用來代表不同開機自我測試的階段。當伺服器100要進入某個開機自我測試的階段時,此階段所代表的開機自我測試碼數值會被送至特定輸入輸出埠(IO Port),例如Port 80。In practical applications, the basic input/output system memory 106 pre-stores a plurality of Power On Self Test Codes (POST Codes), which are used to represent different stages of self-testing. When the server 100 is to enter a stage of power-on self-test, the value of the power-on self-test code represented by this stage is sent to a specific input/output port (IO Port), such as Port 80.

並且,控制晶片108耦接基本輸入輸出系統記憶體106,且於伺服器100的開機過程中,輸出主機板對應開機自我測試碼的開機檢測訊號。而訊號處理單元130接收到前述開機檢測訊號BDS後,會將開機檢測訊號BDS的資訊碼擷取出來,再依據切換訊號以及輸出介面,將前述資訊碼轉換成至少一除錯訊號。其中,此資訊碼例如對應前述開機自我測試碼。Moreover, the control chip 108 is coupled to the basic input/output system memory 106, and during the booting process of the server 100, the power-on detection signal corresponding to the boot self-test code is outputted from the motherboard. After receiving the boot detection signal BDS, the signal processing unit 130 extracts the information code of the boot detection signal BDS, and converts the information code into at least one debug signal according to the switching signal and the output interface. The information code corresponds to, for example, the aforementioned boot self test code.

連接埠140_1~140_N耦接訊號處理單元130且分別對應輸出介面其中之一,用以傳送至少一除錯訊號。舉例來說,連接埠140_1對應的 輸出介面例如為串列埠介面,連接埠140_2對應的輸出介面例如並列埠介面,連接埠140_3對應的輸出介面例如內部積體電路,連接埠140_4對應的輸出介面例如為顯示訊號介面。其餘則類推。The ports 140_1~140_N are coupled to the signal processing unit 130 and respectively correspond to one of the output interfaces for transmitting at least one error signal. For example, the connection 埠140_1 corresponds to The output interface is, for example, a serial port interface, the output interface corresponding to the port 140_2 is, for example, a parallel interface, the output interface corresponding to the port 140_3 is, for example, an internal integrated circuit, and the output interface corresponding to the port 140_4 is, for example, a display signal interface. The rest is analogous.

進一步來說,連接埠140_1~140_N適於耦接顯示單元150_1~150_N,且連接埠140_1~140_N與顯示單元150_1~150_N一對一對應。舉例來說,連接埠140_1適於耦接顯示單元150_1,連接埠140_2適於耦接顯示單元150_2,連接埠140_3適於耦接顯示單元150_3。其餘則類推。並且,顯示單元150_1例如具有串列埠介面的裝置,顯示單元150_2例如具有並列埠介面的裝置,顯示單元150_3例如具有如內部積體電路的裝置,顯示單元150_4例如具有顯示訊號介面的發光二極體或七段顯示器。其餘則類推。Further, the ports 140_1~140_N are adapted to be coupled to the display units 150_1~150_N, and the ports 140_1~140_N are in one-to-one correspondence with the display units 150_1~150_N. For example, the port 140_1 is adapted to be coupled to the display unit 150_1, the port 140_2 is adapted to be coupled to the display unit 150_2, and the port 140_3 is adapted to be coupled to the display unit 150_3. The rest is analogous. Further, the display unit 150_1 has, for example, a device having a serial interface, and the display unit 150_2 has, for example, a device that is parallel to the interface. The display unit 150_3 has, for example, a device such as an internal integrated circuit. The display unit 150_4 has, for example, a light-emitting diode that displays a signal interface. Body or seven-segment display. The rest is analogous.

另外,前述切換訊號例如由連接埠140_1~140_N與顯示單元150_1~150_N至少其一有連接而產生。舉例來說,當連接埠140_1與顯示單元150_1時,顯示單元150_1例如透過連接埠140_1傳送切換訊號給訊號處理單元130,則訊號處理單元130依據此切換訊號以及對應此切換訊號的輸出介面(例如串列埠介面),將開機檢測訊號BDS的資訊碼轉換成具有串列埠介面的除錯訊號。接著,訊號處理單元130將具有串列埠介面的除錯訊號透過連接埠140_1傳送至顯示單元150_1,以於顯示單元150_1上顯示除錯訊號的對應狀態。如此一來,使用者便可透過顯示單元150_1得知伺服器100的運作狀況。In addition, the foregoing switching signal is generated, for example, by connecting at least one of the ports 140_1~140_N and the display units 150_1~150_N. For example, when the port 140_1 and the display unit 150_1 are connected, the display unit 150_1 transmits the switching signal to the signal processing unit 130 via the port 140_1, for example, the signal processing unit 130 according to the switching signal and the output interface corresponding to the switching signal (for example, The serial port interface converts the information code of the power-on detection signal BDS into a debug signal with a serial port interface. Then, the signal processing unit 130 transmits the error signal having the serial port interface to the display unit 150_1 through the port 140_1 to display the corresponding state of the debug signal on the display unit 150_1. In this way, the user can know the operation status of the server 100 through the display unit 150_1.

當連接埠140_2與顯示單元150_2時,顯示單元150_2例如透過連接埠140_2傳送切換訊號給訊號處理單元130,則訊號處理單元130依據此切換訊號以及對應此切換訊號的輸出介面(例如並列埠介面),將開機檢測訊號BDS的資訊碼轉換成具有並列埠介面的除錯訊號。接著,訊號處理單元130將具有並列埠介面的除錯訊號透過連接埠140_2傳送至顯示單元150_2,以於顯示單元150_2上顯示除錯訊號的對應狀態。如此一來,使用者便可透過顯示單元150_2得知伺服器100的運作狀況。When the connection unit 140_2 and the display unit 150_2 are connected, the display unit 150_2 transmits the switching signal to the signal processing unit 130 through the connection 140_2, for example, the signal processing unit 130 switches the signal and the output interface corresponding to the switching signal (for example, the parallel interface). The information code of the power-on detection signal BDS is converted into a debugging signal with a parallel interface. Then, the signal processing unit 130 transmits the error signal having the parallel interface through the port 140_2 to the display unit 150_2 to display the corresponding state of the debug signal on the display unit 150_2. In this way, the user can know the operation status of the server 100 through the display unit 150_2.

首先,當電源供應器開始供電給伺服器100啟動時,伺服器100會進行上電時序(Power Sequence)。接著,當伺服器100的上電時序完成後,基本輸入輸出系統進入開機自我測試的階段,以產生對應的開機自我測試碼數值至特定輸出輸入埠,則控制晶片108對應前述開機自我測試碼數值,產生開機檢測訊號。First, when the power supply starts to supply power to the server 100, the server 100 performs a Power Sequence. Then, after the power-on sequence of the server 100 is completed, the basic input/output system enters a stage of power-on self-test to generate a corresponding power-on self-test code value to a specific output input, and the control chip 108 corresponds to the aforementioned self-test code value. , generate a power-on detection signal.

之後,訊號處理單元130透過接收單元120接收到開機檢測訊號BDS後,會將開機檢測訊號BDS的資訊碼擷取出來。接著,訊號處理單元130會等待連接埠140_1~140_N與顯示單元150_1~150_N之連接而產生的切換訊號以及輸出介面,將前述資訊碼轉換成至少一除錯訊號,再將除錯訊號透過連接埠140_1~140_N傳輸至顯示單元150_1~150_N,以進行對應的顯示。After receiving the power-on detection signal BDS through the receiving unit 120, the signal processing unit 130 will extract the information code of the power-on detection signal BDS. Then, the signal processing unit 130 waits for the switching signal generated by the connection between the ports 140_1~140_N and the display units 150_1~150_N and the output interface, converts the information code into at least one error signal, and then connects the debugging signal through the port. 140_1~140_N are transmitted to the display units 150_1~150_N for corresponding display.

舉例來說,假設基本輸入輸出系統所產生的開機自我測試碼例如為“00001101”,控制晶片108亦會對應提供“00001101”的開機檢測訊號BDS。接著,訊號處理單元130透過接收單元120接收“00001101”的開機檢測訊號BDS,並將開機檢測訊號BDS的資訊碼擷取出來,亦即此資訊碼例如為“00001101”。For example, if the boot self-test code generated by the basic input/output system is, for example, "00001101", the control chip 108 will also provide a "00001101" power-on detection signal BDS. Then, the signal processing unit 130 receives the power-on detection signal BDS of "00001101" through the receiving unit 120, and extracts the information code of the power-on detection signal BDS, that is, the information code is, for example, "00001101".

之後,訊號處理單元130會依據切換訊號以及輸出介面,將此“00001101”的資訊碼轉換成至少一除錯訊號。當切換訊號由連接埠140_1與顯示單元150_1連接而產生時,訊號處理單元130會將“00001101”的資訊碼轉換成具有連接埠140_1對應之串列埠介面的除錯訊號,並將此除錯訊號透過連接埠140_1傳送至顯示單元150_1,以進行相應的顯示。Thereafter, the signal processing unit 130 converts the information code of "00001101" into at least one debug signal according to the switching signal and the output interface. When the switching signal is generated by the connection 埠140_1 being connected to the display unit 150_1, the signal processing unit 130 converts the information code of "00001101" into a debugging signal having the serial port interface corresponding to 埠140_1, and debugs the error. The signal is transmitted to the display unit 150_1 through the port 140_1 for corresponding display.

當切換訊號由連接埠140_1、140_2與顯示單元150_1、150_2連接而產生時,訊號處理單元130會將“00001101”的資訊碼轉換成具有連接埠140_1對應之串列埠介面的除錯訊號以及具有連接埠140_2對應之並列埠介面的除錯訊號,並將這兩個除錯訊號分別透過連接埠140_1、140_2傳送至顯示單元150_1、150_2,以進行相應的顯示。如此一來,藉由取得並顯示出伺服器100的開機檢測訊號BDS的資訊碼,可有效減少伺服器100 的除錯時間、成本及執行困難度,並提升除錯效率。When the switching signal is generated by the connection of the ports 140_1, 140_2 and the display units 150_1, 150_2, the signal processing unit 130 converts the information code of "00001101" into a debugging signal having a serial port interface corresponding to the port 140_1 and has The error signal of the parallel interface corresponding to the 埠140_2 is connected, and the two debug signals are respectively transmitted to the display units 150_1 and 150_2 through the ports 140_1 and 140_2 for corresponding display. In this way, by obtaining and displaying the information code of the boot detection signal BDS of the server 100, the server 100 can be effectively reduced. The debugging time, cost and difficulty of execution, and improve the efficiency of debugging.

請參考「第2圖」,其為本揭露之伺服器的另一示意圖。其中,本揭露之除錯裝置110還包括儲存單元210、切換單元220與顯示單元230_1~230_N。而其餘元件及其耦接關係可參考「第2圖」所示,故在此不再贅述。Please refer to "Figure 2", which is another schematic diagram of the server of the present disclosure. The debug device 110 of the present disclosure further includes a storage unit 210, a switching unit 220, and display units 230_1~230_N. The remaining components and their coupling relationship can be referred to in "Fig. 2", and therefore will not be described here.

儲存單元210耦接訊號處理單元130,用以儲存開機檢測訊號BDS的資訊碼。也就是說,訊號處理單元130接收開機檢測訊號BDS,會將開機檢測訊號BDS的資訊碼擷取出來,並將此資訊碼儲存至儲存單元210。其中,儲存單元210例如為暫存器(Register)。The storage unit 210 is coupled to the signal processing unit 130 for storing the information code of the boot detection signal BDS. That is to say, the signal processing unit 130 receives the power-on detection signal BDS, extracts the information code of the power-on detection signal BDS, and stores the information code to the storage unit 210. The storage unit 210 is, for example, a register.

切換單元220耦接訊號處理單元130,用以產生至少一切換訊號。其中,切換單元220例如可為指撥開關。舉例來說,當切換單元220例如產生“0001”的切換訊號時,訊號處理單元130可具此“0001”的切換訊號而找到對應的輸出介面,例如串列埠介面,而將開機檢測訊號BDS的資訊碼轉換成具有串列埠介面的除錯訊號,並透過連接埠140_1傳送出去。The switching unit 220 is coupled to the signal processing unit 130 for generating at least one switching signal. The switching unit 220 can be, for example, a dip switch. For example, when the switching unit 220 generates a switching signal of “0001”, for example, the signal processing unit 130 may have the switching signal of “0001” to find a corresponding output interface, such as a serial port interface, and the power-on detection signal BDS. The information code is converted into a debug signal having a serial port interface and transmitted through the port 140_1.

當切換單元220例如產生“0010”的切換訊號時,訊號處理單元130可具此“0010”的切換訊號而找到對應的輸出介面,例如並列埠介面,而將開機檢測訊號BDS的資訊碼轉換成具有並列埠介面的除錯訊號,並透過連接埠140_2傳送出去。When the switching unit 220 generates the switching signal of "0010", for example, the signal processing unit 130 can have the switching signal of "0010" to find the corresponding output interface, for example, the parallel interface, and convert the information code of the power-on detection signal BDS into The debug signal with the parallel interface is transmitted through the connection 140_2.

當切換單元220例如產生“0100”的切換訊號時,訊號處理單元130可具此“0100”的切換訊號而找到對應的輸出介面,例如內部積體電路介面,而將開機檢測訊號BDS的資訊碼轉換成具有內部積體電路介面的除錯訊號,並透過連接埠140_3傳送出去。When the switching unit 220 generates a switching signal of “0100”, for example, the signal processing unit 130 may have the “0100” switching signal to find a corresponding output interface, such as an internal integrated circuit interface, and the information code of the power-on detection signal BDS. The conversion signal is converted into an error signal having an internal integrated circuit interface, and transmitted through the connection port 140_3.

當切換單元220例如產生“1000”的切換訊號時,訊號處理單元130可具此“1000”的切換訊號而找到對應的輸出介面,例如顯示訊號介面,而將開機檢測訊號BDS的資訊碼轉換成具有顯示訊號介面的除錯訊號,並透過連接埠140_4傳送出去。前述是以切換單元220對應4個連接埠140_1~140_4而產生對應之切換訊號為例,但本實施例不限於此。所屬領域 具通常知識者可藉由前述說明推得切換單元220對應其他數量之連接埠而產生對應之切換訊號的實施方式,故在此不再贅述。When the switching unit 220 generates, for example, a "1000" switching signal, the signal processing unit 130 can have the "1000" switching signal to find a corresponding output interface, such as a display signal interface, and convert the information code of the power-on detection signal BDS into The debugging signal with the display signal interface is transmitted through the connection 140_4. The foregoing is an example in which the switching unit 220 generates corresponding switching signals corresponding to the four ports 140_1~140_4, but the embodiment is not limited thereto. Field Those skilled in the art can use the foregoing description to derive an implementation manner in which the switching unit 220 generates corresponding switching signals corresponding to other numbers of ports, and therefore no further details are provided herein.

顯示單元230_1~230_N分別耦接連接埠140_1~140_N,用以接收至少一除錯訊號,並顯示對應的至少一除錯訊號。進一步來說,顯示單元230_1~230_N以一對一的方式耦接連接埠140_1~140_N。藉此,使用者便可透過切換單元220控制由哪一個顯示單元顯示出伺服器100的開機檢測訊號BDS的資訊碼,以得知伺服器的運作狀況。如此一來,可有效減少伺服器100的除錯時間、成本及執行困難度,並提升除錯效率。The display units 230_1~230_N are respectively coupled to the ports 140_1~140_N for receiving at least one debug signal and displaying corresponding at least one debug signal. Further, the display units 230_1~230_N are coupled to the ports 140_1~140_N in a one-to-one manner. Thereby, the user can control, by the switching unit 220, which display unit displays the information code of the power-on detection signal BDS of the server 100 to know the operation status of the server. In this way, the debugging time, cost, and difficulty of execution of the server 100 can be effectively reduced, and the debugging efficiency is improved.

藉由前述實施例的說明,可以歸納出一種除錯方法。請參考「第3圖」所示,其為本揭露之除錯方法的流程圖。本實施例之除錯方法適用於一伺服器上,且此伺服器包括控制晶片。在步驟S310中,接收控制晶片所產生的開機檢測訊號。在步驟S320中,依據至少一切換訊號以及多個輸出介面,將開機檢測訊號的資訊碼轉換成至少一除錯訊號,其中輸出介面彼此不同。在步驟S330中,傳送至少一除錯訊號。在本實施例中,前述輸出介面包括串列埠介面、並列埠介面、內部積體電路與顯示訊號介面或其他的訊號輸出介面。By the description of the foregoing embodiments, a method of debugging can be summarized. Please refer to "Figure 3" for a flowchart of the troubleshooting method for this disclosure. The debug method of this embodiment is applicable to a server, and the server includes a control chip. In step S310, a power-on detection signal generated by the control chip is received. In step S320, the information code of the power-on detection signal is converted into at least one debugging signal according to the at least one switching signal and the plurality of output interfaces, wherein the output interfaces are different from each other. In step S330, at least one debug signal is transmitted. In this embodiment, the output interface includes a serial port interface, a parallel port interface, an internal integrated circuit and a display signal interface, or other signal output interfaces.

本揭露之實施例的除錯裝置與除錯方法,其藉由訊號處理單元取得控制晶片所產生之開機檢測訊號,並依據切換訊號以及輸出介面,將開機檢測訊號的資訊碼轉換成對應的至少一除錯訊號,再由連接埠將前述除錯訊號傳送出去。另外,前述切換訊號可由連接埠至少其一與顯示單元連接而產生或是由切換單元來產生。如此一來,可減少伺服器的除錯時間、成本及執行困難度,並提升除錯效率。The debugging device and the debugging method of the embodiment of the present disclosure obtain the power-on detection signal generated by the control chip by the signal processing unit, and convert the information code of the power-on detection signal into corresponding corresponding signals according to the switching signal and the output interface. A debug signal is transmitted, and the aforementioned debug signal is transmitted by the port. In addition, the foregoing switching signal may be generated by connecting at least one of the ports to the display unit or by the switching unit. In this way, the debugging time, cost, and difficulty of execution of the server can be reduced, and the debugging efficiency can be improved.

雖然本揭露以前述之實施例揭露如上,然其並非用以限定本揭露,任何熟習相像技藝者,在不脫離本揭露之精神和範圍內,當可作些許之更動與潤飾,因此本揭露之專利保護範圍須視本說明書所附之申請專利範圍所界定者為準。The present disclosure is disclosed in the foregoing embodiments, and is not intended to limit the disclosure. Any subject matter of the present invention can be modified and retouched without departing from the spirit and scope of the disclosure. The scope of patent protection shall be subject to the definition of the scope of the patent application attached to this specification.

100‧‧‧伺服器100‧‧‧Server

102‧‧‧中央處理單元102‧‧‧Central Processing Unit

104‧‧‧記憶體104‧‧‧ memory

106‧‧‧基本輸入輸出系統記憶體106‧‧‧Basic input and output system memory

108‧‧‧控制晶片108‧‧‧Control wafer

110‧‧‧除錯裝置110‧‧‧Debugging device

120‧‧‧接收單元120‧‧‧ receiving unit

130‧‧‧訊號處理單元130‧‧‧Signal Processing Unit

140_1~140_N‧‧‧連接埠140_1~140_N‧‧‧Connector

150_1~150_N‧‧‧顯示單元150_1~150_N‧‧‧ display unit

BDS‧‧‧開機檢測訊號BDS‧‧‧Start detection signal

Claims (6)

一種除錯裝置,適用於一伺服器上,該伺服器包括一控制晶片,該除錯裝置包括:一接收單元,耦接該控制晶片,用以接收一開機檢測訊號;一訊號處理單元,耦接該接收單元,用以透過該接收單元接收該開機檢測訊號,並依據至少一切換訊號以及多個輸出介面的格式,將該開機檢測訊號的一資訊碼轉換成符合該些輸出介面其中至少一的格式之一除錯訊號,其中該些輸出介面格式彼此不同,且該些輸出介面包括串列埠介面、並列埠介面、內部積體電路與顯示訊號介面;一切換單元,耦接該訊號處理單元,用以產生該切換訊號;以及多個連接埠,耦接該訊號處理單元且分別對應該些輸出介面其中之一,用以傳送該資訊碼轉換後的該除錯訊號。 A debugging device is applicable to a server, the server includes a control chip, and the debugging device includes: a receiving unit coupled to the control chip for receiving a boot detection signal; a signal processing unit coupled The receiving unit is configured to receive the power-on detection signal through the receiving unit, and convert the information code of the power-on detection signal into at least one of the output interfaces according to the at least one switching signal and the format of the plurality of output interfaces. One of the formats of the error signal, wherein the output interface formats are different from each other, and the output interfaces include a serial port interface, a parallel port interface, an internal integrated circuit and a display signal interface; and a switching unit coupled to the signal processing The unit is configured to generate the switching signal; and the plurality of ports are coupled to the signal processing unit and respectively correspond to one of the output interfaces for transmitting the error code converted by the information code. 如請求項1所述之除錯裝置,更包括:一儲存單元,耦接該訊號處理單元,用以儲存該開機檢測訊號的該資訊碼。 The debugging device of claim 1, further comprising: a storage unit coupled to the signal processing unit for storing the information code of the power-on detection signal. 如請求項1所述之除錯裝置,更包括:多個顯示單元,分別耦接該些連接埠,用以接收該至少一除錯訊號,並顯示對應的該至少一除錯訊號。 The debug device of claim 1, further comprising: a plurality of display units respectively coupled to the plurality of connection ports for receiving the at least one debug signal and displaying the corresponding at least one debug signal. 如請求項1所述之除錯裝置,其中該接收單元包括一低腳位數介面。 The debug device of claim 1, wherein the receiving unit comprises a low-digit bit interface. 如請求項1所述之除錯裝置,其中該至少一切換訊號由該些連接埠至少其中之一與一顯示單元連接而產生。 The debugging device of claim 1, wherein the at least one switching signal is generated by connecting at least one of the ports to a display unit. 一種除錯方法,適用於一伺服器上,該伺服器包括一控制晶片,該除錯方法包括:接收該控制晶片所產生的一開機檢測訊號;依據至少一切換訊號以及多個輸出介面的格式,將該開機檢測訊號的一資訊碼轉換成符合該些輸出介面其中至少一的格式之一除錯訊 號,其中該些輸出介面格式彼此不同,且該些輸出介面包括串列埠介面、並列埠介面、內部積體電路與顯示訊號介面;以及傳送該資訊碼轉換後的該除錯訊號。 A debugging method is applicable to a server, the server includes a control chip, and the debugging method includes: receiving a boot detection signal generated by the control chip; according to at least one switching signal and a format of multiple output interfaces Converting a message code of the power-on detection signal into one of formats conforming to at least one of the output interfaces The output interfaces are different from each other, and the output interfaces include a serial port interface, a parallel port interface, an internal integrated circuit and a display signal interface, and the debug signal converted by the information code.
TW102123252A 2013-06-28 2013-06-28 Debug device and debug method TWI506416B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102123252A TWI506416B (en) 2013-06-28 2013-06-28 Debug device and debug method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102123252A TWI506416B (en) 2013-06-28 2013-06-28 Debug device and debug method

Publications (2)

Publication Number Publication Date
TW201500912A TW201500912A (en) 2015-01-01
TWI506416B true TWI506416B (en) 2015-11-01

Family

ID=52717931

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102123252A TWI506416B (en) 2013-06-28 2013-06-28 Debug device and debug method

Country Status (1)

Country Link
TW (1) TWI506416B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002373089A (en) * 2001-06-15 2002-12-26 Hitachi Ltd Computer system
US7312605B2 (en) * 2005-09-30 2007-12-25 Lite-On Technology Corp. AC power supply testing module and method for booting a main board
TW201118566A (en) * 2009-11-20 2011-06-01 Inventec Corp System debugging
TW201222240A (en) * 2010-11-22 2012-06-01 Elitegroup Computer Sys Co Ltd Testing method for automatically rebooting a motherboard and recording related debug information and rebooting device thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002373089A (en) * 2001-06-15 2002-12-26 Hitachi Ltd Computer system
US7312605B2 (en) * 2005-09-30 2007-12-25 Lite-On Technology Corp. AC power supply testing module and method for booting a main board
TW201118566A (en) * 2009-11-20 2011-06-01 Inventec Corp System debugging
TW201222240A (en) * 2010-11-22 2012-06-01 Elitegroup Computer Sys Co Ltd Testing method for automatically rebooting a motherboard and recording related debug information and rebooting device thereof

Also Published As

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

Similar Documents

Publication Publication Date Title
US7565579B2 (en) Post (power on self test) debug system and method
TWI502336B (en) Debug device for computer system and method thereof.
TWI620061B (en) Error detecting apparatus of server and error detecting method thereof
US8954629B2 (en) Adapter and debugging method using the same
US9583216B2 (en) MBIST device for use with ECC-protected memories
US7882395B2 (en) Debug device for embedded systems and method thereof
CN106547653B (en) Computer system fault state detection method, device and system
TWI453583B (en) Computer system and diagnostic method thereof
CN103309791A (en) Display device with fault diagnosis function
CN102375775B (en) Computer system unrecoverable error indication signal detection circuit
US20140143601A1 (en) Debug device and debug method
CN103793302A (en) Debugging device
CN109117299B (en) Error detecting device and method for server
US10467889B2 (en) Alarm handling circuitry and method of handling an alarm
US20160349326A1 (en) Debug trigger interface for non-debug domain system reset
TWI497279B (en) Debug device and debug method
CN110955566B (en) Error detecting method
TWI506416B (en) Debug device and debug method
CN104182290A (en) Debugging device and debugging method
CN113160875B (en) Chip test system and test method
CN102053888A (en) Self-checking method and system for arithmetic device
TWI675293B (en) A host boot detection method and its system
CN212809194U (en) Remote control debugging device
CN104182309A (en) Debugging device and debugging method
JP6217086B2 (en) Information processing apparatus, error detection function diagnosis method, and computer program

Legal Events

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