TWI518522B - Controlling and switching module capable of being applied in x86 systems for reading data - Google Patents

Controlling and switching module capable of being applied in x86 systems for reading data Download PDF

Info

Publication number
TWI518522B
TWI518522B TW103140420A TW103140420A TWI518522B TW I518522 B TWI518522 B TW I518522B TW 103140420 A TW103140420 A TW 103140420A TW 103140420 A TW103140420 A TW 103140420A TW I518522 B TWI518522 B TW I518522B
Authority
TW
Taiwan
Prior art keywords
pin
signal
unit
data
control unit
Prior art date
Application number
TW103140420A
Other languages
Chinese (zh)
Other versions
TW201619849A (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 TW103140420A priority Critical patent/TWI518522B/en
Application granted granted Critical
Publication of TWI518522B publication Critical patent/TWI518522B/en
Publication of TW201619849A publication Critical patent/TW201619849A/en

Links

Description

應用於X86系統之訊號讀取之控制與切換模組 Control and switching module for signal reading of X86 system

本發明係關於電子切換模組之相關領域,尤指一種應用於X86系統之訊號讀取之控制與切換模組。 The invention relates to the related field of the electronic switching module, in particular to a control and switching module for signal reading of the X86 system.

SPI(Serial Peripheral Interface,序列周邊介面)係由摩托羅拉公司(Motorola®)所開發用以設置於微控制器與周邊晶片之間的一種訊號傳輸介面。請參閱第一圖,係習用的一種序列周邊介面架構圖。如第一圖所示,一微控制器11’係透過其序列周邊介面而耦接一第一周邊晶片12’與一第二周邊晶片13’。其中,微控制器11’之序列周邊介面包括一主資料輸出腳位111’(MOSI:Master Output,Slave Input)、一主資料接收腳位112’(MISO:Master Input,Slave Output)、一主時序腳位113’(SCLK:Serial Clock)、以及至少一週邊晶片選擇腳位(SS:Slave Select)。 SPI (Serial Peripheral Interface) is a signal transmission interface developed by Motorola® to be placed between a microcontroller and a peripheral chip. Please refer to the first figure, which is a sequence of peripheral interface architecture. As shown in the first figure, a microcontroller 11' couples a first peripheral wafer 12' and a second peripheral wafer 13' through its sequence peripheral interface. The serial peripheral interface of the microcontroller 11' includes a main data output pin 111' (MOSI: Master Output, Slave Input), a main data receiving pin 112' (MISO: Master Input, Slave Output), and a main A timing pin 113' (SCLK: Serial Clock), and at least one peripheral chip selection pin (SS: Slave Select).

第一圖係繪示出一第一週邊晶片選擇腳位114’與一第二週邊晶片選擇腳位115’,其中,對應於該微控制器 11’,應用於序列周邊介面架構之第一周邊晶片12’係具有一第一從資料接收腳位121’、一第一從資料輸出腳位122’、一第一從時序腳位123’、以及一第一選擇訊號接收腳位124’。並且,與第一周邊晶片12’相同的是,第二周邊晶片13’係具有一第二從資料接收腳位131’、一第二從資料輸出腳位132’、一第二從時序腳位133’、以及一第二選擇訊號接收腳位134’。於序列周邊介面(SPI)的傳輸架構中,所有資料的輸入與輸出都和由微控制器11’所產生的一時脈訊號同步。 The first figure shows a first peripheral wafer selection pin 114' and a second peripheral wafer selection pin 115', wherein the microcontroller is corresponding to the microcontroller 11', the first peripheral chip 12' applied to the sequence peripheral interface structure has a first slave data receiving pin 121', a first slave data output pin 122', a first slave timing pin 123', And a first selection signal receiving pin 124'. Moreover, similar to the first peripheral wafer 12', the second peripheral wafer 13' has a second slave data receiving pin 131', a second slave data output pin 132', and a second slave timing pin. 133', and a second selection signal receiving pin 134'. In the transmission architecture of the Sequence Peripheral Interface (SPI), the input and output of all data are synchronized with a clock signal generated by the microcontroller 11'.

目前,X86系統為了實現乙太網路切換(Ethernet switch)之目的,通常透過軟體控制主處理器(CPU)之GPIO腳位(General Purpose I/O,通用型輸入/輸出),藉以模擬類似第一圖所示之序列周邊介面進而於乙太網路切換之間進行資料傳輸。請參閱第二圖,係X86系統之GPIO資料傳輸架構圖。如第二圖所示,母板20’之上的一主處理器21’之第一GPIO腳位GP0’、第二GPIO腳位GP1’、第三GPIO腳位GP2’、與第四GPIO腳位GP3’係分別耦接至一乙太網路切換晶片31’之一時序腳位311’、一選擇腳位312’、一從資料接收腳位313’、與一從資料輸出腳位314’。 另,主處理器21’之LAN腳位211’(Local Area Network,局域網)係耦接至乙太網路切換晶片31’之LAN腳位315’;並且,乙太網路切換晶片31’又電性連接至母板20’之上的 多個網路通訊埠40’。 Currently, the X86 system implements Ethernet switching (Ethernet). The purpose of the switch is to control the GPIO pin (General Purpose I/O, general-purpose input/output) of the main processor (CPU) through software to simulate the sequence peripheral interface similar to the one shown in the first figure. Data transfer between road switching. Please refer to the second figure, which is the GPIO data transmission architecture diagram of the X86 system. As shown in the second figure, the first GPIO pin GP0', the second GPIO pin GP1', the third GPIO pin GP2', and the fourth GPIO pin of a main processor 21' above the motherboard 20' The bit GP3' is respectively coupled to a timing pin 311' of an Ethernet switching chip 31', a selection pin 312', a slave data receiving pin 313', and a slave data output pin 314'. . In addition, the LAN pin 211' (Local Area Network) of the main processor 21' is coupled to the LAN pin 315' of the Ethernet switching chip 31'; and the Ethernet switching chip 31' Electrically connected to the motherboard 20' Multiple network communications 埠 40’.

於第二圖所示之GPIO資料傳輸架構之中,第一GPIO腳位GP0’與第二GPIO腳位GP1’係由軟體控制而分別輸出一時序訊號與一網通埠選擇訊號至乙太網路切換晶片31’;同時,經由軟體控制使得第三GPIO腳位GP2’與第四GPIO腳位GP3’係分別作為主資料輸出埠(MOSI:Master Output,Slave Input)及主資料接收腳位(MISO:Master Input,Slave Output)。如此設置,則X86系統之主處理器21’便能夠以類似SPI控制之方式,透過乙太網路切換晶片31’達到控制多個網路通訊埠40’之網路切換(Ethernet)之目的。 In the GPIO data transmission architecture shown in the second figure, the first GPIO pin GP0' and the second GPIO pin GP1' are controlled by the software to respectively output a timing signal and a Netcom selection signal to the Ethernet. Switching the chip 31'; at the same time, the third GPIO pin GP2' and the fourth GPIO pin GP3' are respectively used as the main data output (MOSI: Master Output, Slave Input) and the main data receiving pin (MISO) via the software control. :Master Input, Slave Output). With this arrangement, the main processor 21' of the X86 system can control the network switching of the plurality of network communication ports 40' via the Ethernet switching chip 31' in an SPI-like manner.

第二圖所示之技術架構目前已習用於X86系統之中,然而,本案之發明人係於實務操作中發現所述之GPIO資料傳輸架構仍具有以下之主要缺陷: The technical architecture shown in the second figure is currently used in X86 systems. However, the inventor of the present invention found in the practice that the GPIO data transmission architecture still has the following major defects:

(1)參考如第三圖所示之GPIO資料傳輸訊號圖。如第三圖之訊號圖(a)所示,當CPU處於一般(正常)負載的情況下,GPIO資料傳輸訊號不會產生訊號延遲(delay)的現象;然而,如第三圖之訊號圖(b)所示,一旦CPU處於負載過重之情況,則GPIO資料傳輸訊號便會產生訊號延遲(delay)現象,而訊號延遲勢必影響時序訊號的正確性。 (1) Refer to the GPIO data transmission signal diagram as shown in the third figure. As shown in the signal diagram (a) of the third figure, when the CPU is in a normal (normal) load, the GPIO data transmission signal will not cause signal delay; however, as shown in the signal diagram of the third figure ( b) As shown in the figure, once the CPU is under heavy load, the GPIO data transmission signal will generate a signal delay, and the signal delay will inevitably affect the correctness of the timing signal.

(2)承上述第(1)點,一旦發生CPU負載過重所導致時序訊號正確性疑慮,便無法保證主處理器21’傳輸至乙太 網路切換晶片31’之一寫入資料是否正確,這時必須重複判讀該寫入資料才能夠確認其正確性。 (2) In accordance with point (1) above, once the timing signal is considered to be correct due to excessive CPU load, the main processor 21' cannot be guaranteed to transmit to the Ethernet. Whether the data is written by one of the network switching chips 31' is correct, and it is necessary to repeatedly read the written data to confirm the correctness.

(3)此外,在不同的應用平台上所選用的GPIO電壓準位也必須隨之改變,例如:南橋晶片之GPIO電壓準位為5V,而硬體監控器(HWMON)之GPIO電壓準位則為3.3V。 (3) In addition, the GPIO voltage level selected on different application platforms must also change. For example, the GPIO voltage level of the south bridge chip is 5V, and the GPIO voltage level of the hardware monitor (HWMON) is It is 3.3V.

因此,有鑑於習知的基於SPI控制之GPIO資料傳輸架構於實務操作上顯現了諸多缺陷,本案之發明人極力加以研究發明,終於研發完成本發明之一種應用於X86系統之訊號讀取之控制與切換模組。 Therefore, in view of the fact that the conventional SPI-based GPIO data transmission architecture shows many defects in practical operation, the inventor of the present invention tried to research and invent, and finally developed a control of the signal reading applied to the X86 system of the present invention. With switching modules.

本發明之主要目的,在於提供一種不同於習知GPIO控制技術之訊號讀取之控制與切換模組,係應用於X86系統之中。本發明係於主處理單元與交換矩陣單元之間加設一微控制單元;其中,其中,由於該微控制單元係經由I2C bus溝通於該主處理單元,因此主處理單元可將一讀取控制訊號先通過I2C bus儲存於微控制單元之暫存器之中,之後再由微控制單元透過序列周邊介面將所述之讀取控制訊號傳送至該複數個周邊單元之至少一個。如此方式,主處理單元便能夠在確保無發生資料錯誤的狀態下,自該複數個周邊單元之中讀出傳輸資料。再者,由於本發明不使用 任何SPI寫入介面模擬軟體,因此本發明之訊號讀取之控制與切換模組易於導入任何平台,並具有高度擴充性。 The main object of the present invention is to provide a control and switching module for signal reading different from the conventional GPIO control technology, which is applied to an X86 system. The invention is to add a micro control unit between the main processing unit and the switching matrix unit; wherein, since the micro control unit communicates with the main processing unit via the I2C bus, the main processing unit can perform a read control The signal is first stored in the register of the micro control unit through the I2C bus, and then the micro control unit transmits the read control signal to at least one of the plurality of peripheral units through the sequence peripheral interface. In this manner, the main processing unit can read the transmission data from the plurality of peripheral units while ensuring that no data errors have occurred. Furthermore, since the invention is not used Any SPI write interface simulation software, so the control and switching module of the signal reading of the present invention is easy to import into any platform and has high scalability.

因此,為了達成本發明之主要目的,本案之發明人提出一種應用於X86系統之訊號讀取之控制與切換模組,係包括:一主處理單元,係設於一X86系統之一母板之上;一微控制單元,係設於該母板之上,並藉由一交互整合電路匯流排(Inter-Integrated Circuit Bus,I2C bus)而溝通於該主處理單元;以及一交換矩陣單元(switch fabric),係設於該母板之上,並電性連接至該微控制單元之一序列周邊介面(Serial Peripheral Interface,SPI);其中,該交換矩陣單元係進一步電性連接有複數個周邊單元;其中,該主處理單元係使用一場編輯邏輯閘陣列技術(Field Programmable Gate Array,FPGA)並通過該交互整合電路匯流排對該微控制單元傳送一資料讀取控制訊號;進一步地,該微控制單元係根據該資料讀取控制訊號進而通過該序列周邊介面而進一步地將該複數個周邊單元之中的至少一個周邊單元所傳輸之一特定資料讀出,進而透過該交互整合電路匯流排將該特定資料傳送至主處理單元。 Therefore, in order to achieve the main object of the present invention, the inventor of the present invention proposes a control and switching module for signal reading applied to an X86 system, comprising: a main processing unit, which is disposed on a motherboard of an X86 system. a micro control unit is disposed on the motherboard and communicated to the main processing unit by an Inter-Integrated Circuit Bus (I2C bus); and a switching matrix unit (switch The fabric is disposed on the motherboard and electrically connected to a serial peripheral interface (SPI) of the micro control unit; wherein the switch matrix unit is further electrically connected to the plurality of peripheral units Wherein, the main processing unit uses a Field Programmable Gate Array (FPGA) and transmits a data read control signal to the micro control unit through the interactive integrated circuit bus; further, the micro control The unit reads the control signal according to the data and further further the at least one peripheral unit of the plurality of peripheral units through the sequence peripheral interface One reads out specific data transmission, and then transmits the particular data to the main processing unit through the interaction integrated circuit bus.

<本發明> <present invention>

11‧‧‧主處理單元 11‧‧‧Main processing unit

12‧‧‧微控制單元 12‧‧‧Micro Control Unit

13‧‧‧交換矩陣單元 13‧‧‧Exchange matrix unit

10‧‧‧母板 10‧‧‧ Motherboard

120‧‧‧交互整合電路匯流排 120‧‧‧Interactive integrated circuit bus

16‧‧‧周邊單元 16‧‧‧ peripheral units

130、110‧‧‧LAN腳位 130, 110‧‧‧ LAN feet

121‧‧‧主時序腳位 121‧‧‧Main timing pin

122‧‧‧週邊晶片選擇腳位 122‧‧‧ peripheral chip selection pin

123‧‧‧主資料輸出腳位 123‧‧‧Master data output pin

124‧‧‧主資料接收腳位 124‧‧‧Master data receiving pin

131‧‧‧從時序腳位 131‧‧‧From timing feet

132‧‧‧選擇訊號接收腳位 132‧‧‧Select signal receiving pin

133‧‧‧從資料接收腳位 133‧‧‧Receipt from data

134‧‧‧從資料輸出腳位 134‧‧‧From the data output pin

<習知> <知知>

11’‧‧‧微控制器 11’‧‧‧Microcontroller

12’‧‧‧第一周邊晶片 12’‧‧‧First peripheral wafer

13’‧‧‧第二周邊晶片 13’‧‧‧Second peripheral wafer

111’‧‧‧主資料輸出腳位 111’‧‧‧Master data output pin

112’‧‧‧主資料接收腳位 112’‧‧‧Master data receiving pin

113’‧‧‧主時序腳位 113’‧‧‧Main timing pin

114’‧‧‧第一週邊晶片選擇腳位 114’‧‧‧First peripheral wafer selection pin

115’‧‧‧第二週邊晶片選擇腳位 115'‧‧‧Second peripheral wafer selection pin

121’‧‧‧第一從資料接收腳位 121’‧‧‧First receiving data from the pin

122’‧‧‧第一從資料輸出腳位 122’‧‧‧First data output pin

123’‧‧‧第一從時序腳位 123’‧‧‧First slave timing pin

124’‧‧‧第一選擇訊號接收腳位 124’‧‧‧First choice signal receiving pin

131’‧‧‧第二從資料接收腳位 131’‧‧‧Second data receiving pin

132’‧‧‧第二從資料輸出腳位 132’‧‧‧Second data output pin

133’‧‧‧第二從時序腳位 133’‧‧‧Second slave timing pin

134’‧‧‧第二選擇訊號接收腳位 134’‧‧‧Second selection signal receiving position

20’‧‧‧母板 20’‧‧‧ Motherboard

21’‧‧‧主處理器 21’‧‧‧Main processor

GP0’‧‧‧第一GPIO腳位 GP0’‧‧‧First GPIO pin

GP1’‧‧‧第二GPIO腳位 GP1’‧‧‧second GPIO pin

GP2’‧‧‧第三GPIO腳位 GP2’‧‧‧ third GPIO pin

GP3’‧‧‧第四GPIO腳位 GP3’‧‧‧Fourth GPIO pin

31’‧‧‧乙太網路切換晶片 31’‧‧‧Ethernet Switching Chip

311’‧‧‧時序腳位 311’‧‧‧Timed feet

312’‧‧‧選擇腳位 312’‧‧‧Selected feet

313’‧‧‧從資料接收腳位 313’‧‧‧ Receiving feet from data

314’‧‧‧從資料輸出腳位 314’‧‧‧From the data output pin

211’‧‧‧LAN腳位 211’‧‧‧LAN feet

315’‧‧‧LAN腳位 315’‧‧‧LAN feet

40’‧‧‧網路通訊埠 40’‧‧‧Network Communication埠

第一圖係習用的一種序列周邊介面架構圖;第二圖係X86系統之GPIO資料傳輸架構圖;第三圖係GPIO資料傳輸訊號圖;以及第四圖係本發明之一種應用於X86系統之訊號讀取之控制與切換模組的架構圖。 The first figure is a sequence peripheral interface architecture diagram; the second diagram is the GPIO data transmission architecture diagram of the X86 system; the third diagram is the GPIO data transmission signal diagram; and the fourth diagram is one of the inventions applied to the X86 system. The architecture diagram of the control and switching module for signal reading.

為了能夠更清楚地描述本發明所提出之一種應用於X86系統之訊號讀取之控制與切換模組,以下將配合圖式,詳盡說明本發明之較佳實施例。 In order to more clearly describe a control and switching module for signal reading of the X86 system proposed by the present invention, a preferred embodiment of the present invention will be described in detail below with reference to the drawings.

請參閱第四圖,係本發明之一種應用於X86系統之訊號讀取之控制與切換模組(以下簡稱訊號讀取之控制與切換模組)的架構圖。本發明之訊號讀取之控制與切換模組可應用於各種X86系統之中,例如工業電腦與工業伺服器,進而提供X86系統之主處理器能夠在一般(正常)負載的狀態下對X86系統之多個周邊模組進行資料(訊號)讀取之控制與切換。 Please refer to the fourth figure, which is an architectural diagram of a control and switching module (hereinafter referred to as a control and switching module for signal reading) applied to the signal reading of the X86 system. The signal reading control and switching module of the present invention can be applied to various X86 systems, such as industrial computers and industrial servers, thereby providing the main processor of the X86 system capable of operating the X86 system under normal (normal) load conditions. A plurality of peripheral modules perform control and switching of data (signal) reading.

如第四圖所示,此訊號讀取之控制與切換模組係主要包括:一主處理單元11、一微控制單元12與一交換矩陣單元(switch fabric)13;其中,該主處理單元11係設於 X86系統之一母板10之上,且該微控制單元12,係設於該母板10之上,並藉由一交互整合電路匯流排120(Inter-Integrated Circuit Bus,I2C bus)而溝通於該主處理單元11。另,該交換矩陣單元(switch fabric)13係設於該母板10之上,並電性連接至該微控制單元12之一序列周邊介面(Serial Peripheral Interface,SPI);並且,交換矩陣單元(switch fabric)13係進一步電性連接有複數個周邊單元16。 As shown in the fourth figure, the control and switching module of the signal reading system mainly includes: a main processing unit 11, a micro control unit 12 and a switch fabric 13; wherein the main processing unit 11 Based on The X86 system is connected to one of the motherboards 10, and the micro control unit 12 is disposed on the motherboard 10 and communicated by an Inter-Integrated Circuit Bus (I2C bus) 120. The main processing unit 11. In addition, the switch fabric 13 is disposed on the motherboard 10 and electrically connected to a Serial Peripheral Interface (SPI) of the micro control unit 12; and, the switch fabric unit ( The switch fabric 13 is further electrically connected to a plurality of peripheral units 16.

於本發明之中,所述的周邊單元16可以是視訊驅動處理器、音訊驅動處理器、感測器、記憶體讀/寫處理器、或網路通訊元件。並且,對應上述各種周邊單元16,該交換矩陣單元13可以是下列任一者:視訊交換矩陣單元、音訊交換矩陣單元、感測器交換矩陣單元、記憶體交換矩陣單元、或網路交換矩陣單元。 In the present invention, the peripheral unit 16 may be a video drive processor, an audio drive processor, a sensor, a memory read/write processor, or a network communication component. And, corresponding to the foregoing various peripheral units 16, the switching matrix unit 13 may be any one of the following: a video switching matrix unit, an audio switching matrix unit, a sensor switching matrix unit, a memory switching matrix unit, or a network switching matrix unit. .

於第四圖所繪示之訊號傳輸之控制與切換模組之中,交換矩陣單元13為該網路交換矩陣單元(Ethernet Switch Matrix),故交換矩陣單元13之一LAN腳位130係耦接至主處理單元11之一LAN腳位110。此外,該微控制單元12之該序列周邊介面係具有:一主時序腳位121(SCLK:Serial Clock)、至少一週邊晶片選擇腳位122(SS:Slave Select)、一主資料輸出腳位123(MOSI:Master Output,Slave Input)、以及一主資料接收腳位124(MISO:Master Input, Slave Output)。 In the control and switching module of the signal transmission shown in FIG. 4, the switching matrix unit 13 is the Ethernet Switch Matrix, so that the LAN pin 130 of the switching matrix unit 13 is coupled. Up to one of the main processing units 11 LAN pin 110. In addition, the sequence peripheral interface of the micro control unit 12 has: a main timing pin 121 (SCLK: Serial Clock), at least one peripheral chip selection pin 122 (SS: Slave Select), and a main data output pin 123. (MOSI: Master Output, Slave Input), and a master data receiving pin 124 (MISO: Master Input, Slave Output).

承上所述,該交換矩陣單元13亦具有:電性連接至該主時序腳位121之一從時序腳位131、電性連接至該週邊晶片選擇腳位122之一選擇訊號接收腳位132、電性連接至該主資料輸出腳位123之一從資料接收腳位133、以及電性連接至該主資料接收腳位124之一從資料輸出腳位134。如此,藉由上述主處理單元11、微控制單元12與交換矩陣單元13之設置連接,該主處理單元11係能夠使用一場編輯邏輯閘陣列技術(Field Programmable Gate Array,FPGA)並通過該交互整合電路匯流排120可將一讀取控制訊號先通過I2C bus儲存於微控制單元12之暫存器之中;進一步地,該微控制單元12透過序列周邊介面將所述之讀取控制訊號傳送至該複數個周邊單元16之至少一個,如此方式,主處理單元11便能夠在確保無發生資料錯誤的狀態下,自該複數個周邊單元16之中讀出傳輸資料。 As described above, the switch matrix unit 13 also has one of the slave terminal pins 131 electrically connected to the master sequence pin 121 and electrically connected to the peripheral chip select pin 122. One of the main data output pins 123 is electrically connected to the data receiving pin 133 and electrically connected to one of the main data receiving pins 124 from the data output pin 134. Thus, by the above-mentioned main processing unit 11, the micro control unit 12 and the switching matrix unit 13 are connected, the main processing unit 11 can use a field editable gate gate array (FPGA) and integrate through the interaction. The circuit bus 120 can store a read control signal in the register of the micro control unit 12 through the I2C bus. Further, the micro control unit 12 transmits the read control signal to the serial control interface through the sequence peripheral interface. At least one of the plurality of peripheral units 16 can, in such a manner, the main processing unit 11 can read the transmission data from the plurality of peripheral units 16 while ensuring that no data errors have occurred.

必須進一步說明的是,上述該資料(訊號)讀取控制係藉由以下步驟而實現:步驟(1):該主處理單元11向該微控制單元12發出一讀取要求訊號(通常為一低準位電壓訊號);步驟(2):該微控制單元12對其該暫存器進行一讀取位址設定;步驟(3):該微控制單元12對其該暫存器進行一資料儲存 空間設定;步驟(4):該微控制單元12將其該暫存器之一狀態標誌(flag)變更至一讀取狀態位元,例如:讀取狀態位元為位元0;步驟(5):確認該暫存器之該狀態標誌是否已變更至該讀取狀態位元,若是則繼續執行步驟(6);若否則重複執行前述步驟(4);以及步驟(6):該微控制單元12向該主處理單元11發出一完成設定訊號(通常為一低準位電壓訊號)。 It should be further noted that the data (signal) reading control is implemented by the following steps: Step (1): The main processing unit 11 sends a read request signal (usually a low) to the micro control unit 12. Positioning voltage signal); step (2): the micro control unit 12 performs a read address setting on the register; step (3): the micro control unit 12 performs a data storage on the register Space setting; step (4): the micro control unit 12 changes its state flag of the register to a read status bit, for example, the read status bit is bit 0; step (5) ): confirm whether the status flag of the register has been changed to the read status bit, if yes, proceed to step (6); if otherwise, repeat the foregoing step (4); and step (6): the micro control The unit 12 sends a completion setting signal (usually a low level voltage signal) to the main processing unit 11.

如此,上述說明係已清楚、詳細地介紹本發明之應用於X86系統之訊號讀取之控制與切換模組;並且,經由上述可以得知本發明具有以下之優點: Thus, the above description has clearly and in detail introduced the control and switching module of the present invention for signal reading of the X86 system; and, as described above, the present invention has the following advantages:

(1)不同於習知技術以軟體控制主處理器之GPIO腳位以實現主處理器對於多個周邊晶片(模組)之訊號傳輸之控制與切換,本發明係於主處理單元11與交換矩陣單元(switch fabric)13之間加設一微控制單元12;其中,由於該微控制單元12係經由I2C bus溝通於該主處理單元11,因此主處理單元11可將一讀取控制訊號先通過I2C bus儲存於微控制單元12之暫存器之中,之後再由微控制單元12透過序列周邊介面將所述之讀取控制訊號傳送至該複數個周邊單元16之至少一個。如此方式,主處理單元11便能夠在確保無發生資料錯誤的狀態下,自該複數個周邊單元16之中讀出傳輸資料。 (1) Unlike the prior art, the GPIO pin of the main processor is controlled by the software to realize the control and switching of the signal transmission of the plurality of peripheral chips (modules) by the main processor, and the present invention is applied to the main processing unit 11 and the exchange. A micro control unit 12 is added between the switch fabrics 13; wherein, since the micro control unit 12 communicates with the main processing unit 11 via the I2C bus, the main processing unit 11 can first read a control signal. The I2C bus is stored in the register of the micro control unit 12, and then the micro control unit 12 transmits the read control signal to at least one of the plurality of peripheral units 16 through the sequence peripheral interface. In this manner, the main processing unit 11 can read the transmission data from the plurality of peripheral units 16 while ensuring that no data error has occurred.

(2)此外,由於本發明之訊號讀取之控制與切換模組係為全硬體架構,不包含任何SPI寫入介面模擬軟體,是以本發明之訊號讀取之控制與切換模組易於導入任何平台,並具有高度擴充性。舉例而言,只要根據不同的周邊單元16(例如:視訊驅動處理器、音訊驅動處理器、感測器、記憶體讀/寫處理器、或網路通訊元件)於X86之母板上配置合適的交換矩陣單元13(例如:視訊交換矩陣單元、音訊交換矩陣單元、感測器交換矩陣單元、記憶體交換矩陣單元、或網路交換矩陣單元),便能夠搭配主處理單元11與一微控制單元12對任何的周邊單元16進行資料(訊號)讀取之控制與切換。 (2) In addition, since the control and switching module of the signal reading of the present invention is a full hardware architecture and does not include any SPI write interface simulation software, it is easy to control and switch the signal reading of the present invention. Imported to any platform and highly scalable. For example, it can be configured on the motherboard of the X86 according to different peripheral units 16 (for example, a video driving processor, an audio driving processor, a sensor, a memory read/write processor, or a network communication component). The switching matrix unit 13 (for example, a video switching matrix unit, an audio switching matrix unit, a sensor switching matrix unit, a memory switching matrix unit, or a network switching matrix unit) can be matched with the main processing unit 11 and a micro control Unit 12 performs control and switching of data (signal) readings on any of peripheral units 16.

必須加以強調的是,上述之詳細說明係針對本發明可行實施例之具體說明,惟該實施例並非用以限制本發明之專利範圍,凡未脫離本發明技藝精神所為之等效實施或變更,均應包含於本案之專利範圍中。 It is to be understood that the foregoing detailed description of the embodiments of the present invention is not intended to Both should be included in the scope of the patent in this case.

11‧‧‧主處理單元 11‧‧‧Main processing unit

12‧‧‧微控制單元 12‧‧‧Micro Control Unit

13‧‧‧交換矩陣單元 13‧‧‧Exchange matrix unit

10‧‧‧母板 10‧‧‧ Motherboard

120‧‧‧交互整合電路匯流排 120‧‧‧Interactive integrated circuit bus

16‧‧‧周邊單元 16‧‧‧ peripheral units

130、110‧‧‧LAN腳位 130, 110‧‧‧ LAN feet

121‧‧‧主時序腳位 121‧‧‧Main timing pin

122‧‧‧週邊晶片選擇腳位 122‧‧‧ peripheral chip selection pin

123‧‧‧主資料輸出腳位 123‧‧‧Master data output pin

124‧‧‧主資料接收腳位 124‧‧‧Master data receiving pin

131‧‧‧從時序腳位 131‧‧‧From timing feet

132‧‧‧選擇訊號接收腳位 132‧‧‧Select signal receiving pin

133‧‧‧從資料接收腳位 133‧‧‧Receipt from data

134‧‧‧從資料輸出腳位 134‧‧‧From the data output pin

Claims (9)

一種應用於X86系統之訊號讀取之控制與切換模組,係包括:一主處理單元,係設於一X86系統之一母板之上;一微控制單元,係設於該母板之上,並藉由一交互整合電路匯流排(Inter-Integrated Circuit Bus,I2C bus)而溝通於該主處理單元;以及一交換矩陣單元(switch fabric),係設於該母板之上,並電性連接至該微控制單元之一序列周邊介面(Serial Peripheral Interface,SPI);其中,該交換矩陣單元(switch fabric)係進一步電性連接有複數個周邊單元;其中,該主處理單元係使用一場編輯邏輯閘陣列技術(Field Programmable Gate Array,FPGA)並通過該交互整合電路匯流排對該微控制單元傳送一資料讀取控制訊號;進一步地,該微控制單元係根據該資料讀取控制訊號進而通過該序列周邊介面而進一步地將該複數個周邊單元之中的至少一個周邊單元所傳輸之一特定資料讀出,進而透過該交互整合電路匯流排將該特定資料傳送至主處理單元。 A control and switching module for signal reading of an X86 system includes: a main processing unit, which is disposed on a motherboard of an X86 system; a micro control unit is disposed on the motherboard And communicating with the main processing unit by an Inter-Integrated Circuit Bus (I2C bus); and a switch fabric, which is disposed on the motherboard and electrically Connecting to a serial peripheral interface (SPI) of the micro control unit; wherein the switch fabric is further electrically connected to a plurality of peripheral units; wherein the main processing unit uses one edit a Field Programmable Gate Array (FPGA) and transmit a data read control signal to the micro control unit through the interactive integrated circuit bus; further, the micro control unit reads the control signal according to the data The sequence peripheral interface further reads out a specific data transmitted by at least one of the plurality of peripheral units, and further transmits the interaction Coincidence circuit transmits the bus-specific data to the main processing unit. 如申請專利範圍第1項所述之應用於X86系統之訊號讀 取之控制與切換模組,其中,該微控制單元之該序列周邊介面係具有:一主時序腳位(SCLK:Serial Clock)、至少一週邊晶片選擇腳位(SS:Slave Select)、一主資料輸出腳位(MOSI:Master Output,Slave Input)、以及一主資料接收腳位(MISO:Master Input,Slave Output)。 Signal reading for X86 system as described in item 1 of the patent application scope The control and switching module is configured, wherein the serial peripheral interface of the micro control unit has: a main timing pin (SCLK: Serial Clock), at least one peripheral chip selection pin (SS: Slave Select), and a main Data output pin (MOSI: Master Output, Slave Input), and a master data receiving pin (MISO: Master Input, Slave Output). 如申請專利範圍第1項所述之應用於X86系統之訊號讀取之控制與切換模組,其中,該交換矩陣單元可以是下列任一者:視訊交換矩陣單元、音訊交換矩陣單元、感測器交換矩陣單元、記憶體交換矩陣單元、或網路交換矩陣單元。 The control and switching module applied to the signal reading of the X86 system, as described in claim 1, wherein the switching matrix unit may be any one of the following: a video switching matrix unit, an audio switching matrix unit, and a sensing Switch fabric unit, memory switch matrix unit, or network switch matrix unit. 如申請專利範圍第1項所述之應用於X86系統之訊號讀取之控制與切換模組,其中,該資料讀取控制係藉由以下步驟而實現:(1)該主處理單元向該微控制單元發出一讀取要求訊號;(2)該微控制單元對該微控制單元內的一暫存器進行一讀取位址設定;(3)該微控制單元對其該暫存器進行一資料儲存空間設定;(4)該微控制單元將其該暫存器之一狀態標誌(flag)變 更至一讀取狀態位元;(5)確認該暫存器之該狀態標誌是否已變更至該讀取狀態位元,若是則繼續執行步驟(6);若否則重複執行前述步驟(4);以及(6)該微控制單元向該主處理單元發出一完成設定訊號。 The control and switching module for signal reading of the X86 system, as described in claim 1, wherein the data reading control is implemented by the following steps: (1) the main processing unit is to the micro The control unit sends a read request signal; (2) the micro control unit performs a read address setting on a register in the micro control unit; (3) the micro control unit performs a read address on the register Data storage space setting; (4) the micro control unit changes its state flag of the register Further reading the status bit; (5) confirming whether the status flag of the register has been changed to the read status bit, and if yes, proceeding to step (6); otherwise, repeating the foregoing step (4) And (6) the micro control unit sends a completion setting signal to the main processing unit. 如申請專利範圍第2項所述之應用於X86系統之訊號讀取之控制與切換模組,其中,該交換矩陣單元更具有:一從時序腳位,係電性連接至該主時序腳位;一選擇訊號接收腳位,係電性連接至該週邊晶片選擇腳位;一從資料接收腳位,係電性連接至該主資料輸出腳位;以及一從資料輸出腳位,係電性連接至該主資料接收腳位。 The control and switching module applied to the signal reading of the X86 system, as described in claim 2, wherein the switching matrix unit further has: a slave timing pin, electrically connected to the master timing pin a selection signal receiving pin is electrically connected to the peripheral chip selection pin; a data receiving pin is electrically connected to the main data output pin; and a data output pin is electrically connected. Connect to the main data receiving pin. 如申請專利範圍第3項所述之應用於X86系統之訊號讀取之控制與切換模組,其中,該周邊單元可以是下列任一者:視訊驅動處理器、音訊驅動處理器、感測器、記憶體讀/寫處理器、或網路通訊元件。 The control and switching module for signal reading of the X86 system, as described in claim 3, wherein the peripheral unit can be any of the following: a video driving processor, an audio driving processor, and a sensor. , memory read/write processor, or network communication component. 如申請專利範圍第4項所述之應用於X86系統之訊號讀 取之控制與切換模組,其中,該讀取要求訊號為一低準位電壓訊號。 Signal reading applied to X86 system as described in item 4 of the patent application scope The control and switching module is selected, wherein the read request signal is a low level voltage signal. 如申請專利範圍第4項所述之應用於X86系統之訊號讀取之控制與切換模組,其中,該讀取狀態位元為位元0。 The control and switching module for signal reading of the X86 system, as described in claim 4, wherein the read status bit is bit 0. 如申請專利範圍第4項所述之應用於X86系統之訊號讀取之控制與切換模組,其中,該完成設定訊號為一低準位電壓訊號。 The control and switching module for signal reading of the X86 system, as described in claim 4, wherein the completion setting signal is a low level voltage signal.
TW103140420A 2014-11-21 2014-11-21 Controlling and switching module capable of being applied in x86 systems for reading data TWI518522B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW103140420A TWI518522B (en) 2014-11-21 2014-11-21 Controlling and switching module capable of being applied in x86 systems for reading data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103140420A TWI518522B (en) 2014-11-21 2014-11-21 Controlling and switching module capable of being applied in x86 systems for reading data

Publications (2)

Publication Number Publication Date
TWI518522B true TWI518522B (en) 2016-01-21
TW201619849A TW201619849A (en) 2016-06-01

Family

ID=55640437

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103140420A TWI518522B (en) 2014-11-21 2014-11-21 Controlling and switching module capable of being applied in x86 systems for reading data

Country Status (1)

Country Link
TW (1) TWI518522B (en)

Also Published As

Publication number Publication date
TW201619849A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
US10437498B2 (en) Electronic device configured to reset storage device non-directly connected to application processor among storage devices serially connected to one another and method of operating the same
US8898358B2 (en) Multi-protocol communication on an I2C bus
US10216669B2 (en) Bus bridge for translating requests between a module bus and an axi bus
DE102017121465A1 (en) DATA PROTOCOL FOR MANAGING PERIPHERAL DEVICES
CN105095139A (en) Inter-integrated circuit system and data operation and transmission method thereof
US20150143018A1 (en) Flexible server system
CN104571294A (en) Server system
US20140229649A1 (en) Implementing io expansion cards
TW201214126A (en) Embedded programmable module for host controller configurability
CN109690511B (en) Bus control circuit, semiconductor integrated circuit, circuit board, information processing device, and bus control method
US9158609B2 (en) Universal serial bus testing device
TWI518522B (en) Controlling and switching module capable of being applied in x86 systems for reading data
CN105068962A (en) I2C controller access method and I2C controller access system
US11544129B2 (en) Cross-component health monitoring and improved repair for self-healing platforms
TWI526842B (en) Controlling and switching module capable of being applied in x86 systems for writing data
EP3848807A1 (en) Data processing system and method for configuring and operating a data processing system
WO2012124431A1 (en) Semiconductor device
JP5763519B2 (en) USB hub controller, USB host controller, and system
CN100541468C (en) The subordinate address scan devices and methods therefor of System Management Bus slave unit
TW201510731A (en) Interface transmission device
CN110955629B (en) Computing device
US8847651B1 (en) Apparatus, method and system for implementing a hardware interface pinout
KR101468572B1 (en) I/O Circuit for data separation
TW201506609A (en) Signal testing card and method
KR20130012628A (en) Production and testing the initial storage host bus adapter

Legal Events

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