[go: up one dir, main page]

TWI461921B - Electronic device and method for switching mode of thunderbolt connector thereof - Google Patents

Electronic device and method for switching mode of thunderbolt connector thereof Download PDF

Info

Publication number
TWI461921B
TWI461921B TW101124809A TW101124809A TWI461921B TW I461921 B TWI461921 B TW I461921B TW 101124809 A TW101124809 A TW 101124809A TW 101124809 A TW101124809 A TW 101124809A TW I461921 B TWI461921 B TW I461921B
Authority
TW
Taiwan
Prior art keywords
switching circuit
coupled
controller unit
lightning
mode
Prior art date
Application number
TW101124809A
Other languages
Chinese (zh)
Other versions
TW201324162A (en
Inventor
Chen Yi Chu
Chih Pang Hsu
Ching Hang Chen
Original Assignee
Asustek Comp Inc
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 Asustek Comp Inc filed Critical Asustek Comp Inc
Priority to EP12193446.7A priority Critical patent/EP2600255B1/en
Priority to US13/684,141 priority patent/US9081909B2/en
Publication of TW201324162A publication Critical patent/TW201324162A/en
Application granted granted Critical
Publication of TWI461921B publication Critical patent/TWI461921B/en

Links

Landscapes

  • Semiconductor Integrated Circuits (AREA)

Description

電子裝置及其雷電連接器之模式切換方法Mode switching method for electronic device and lightning connector thereof

本發明是有關於一種電子裝置,且特別是有關於電子裝置中的的雷電連接器之模式切換方法。The present invention relates to an electronic device, and more particularly to a mode switching method for a lightning connector in an electronic device.

具有雷電連接器(Thunderbolt connecter)的單一傳統電子裝置只能固定地執行主機(Host)模式與端點設備(end-point device)模式其中一種。傳統技術在同一個電子裝置上沒辦法動態地切換執行主機模式與端點設備模式。A single conventional electronic device with a Thunderbolt connecter can only perform one of the Host mode and the end-point device mode in a fixed manner. Conventional technology has no way to dynamically switch between performing host mode and endpoint device mode on the same electronic device.

本發明提供一種電子裝置及其雷電連接器之模式切換方法,利用此雷電連接器之模式切換方法可使此電子裝置既可作為主機,亦可作為端點設備。The invention provides a mode switching method for an electronic device and a lightning connector thereof. The mode switching method of the lightning connector can make the electronic device serve as a host or an endpoint device.

本發明提供一種電子裝置。此電子裝置包括核心單元、週邊裝置、雷電(以下稱Thunderbolt)連接器、Thunderbolt控制器單元、第一切換電路以及第二切換電路。核心單元具有第一高速週邊裝置元件互連(Peripheral Component Interconnect Express,以下稱PCIE)連接端與第二PCIE連接端。週邊裝置具有一個PCIE連接端。Thunderbolt連接器與Thunderbolt控制器單元耦接,其中Thunderbolt控制器單元具有主機模式與端點設備模式。第一切換電路的第一共同端耦接至週邊裝置的PCIE連接 端,第一切換電路的第一選擇端耦接至核心單元的第一PCIE連接端。第二切換電路的第一共同端耦接至Thunderbolt控制器單元的第一PCIE連接端,第二切換電路的第一選擇端耦接至核心單元的第二PCIE連接端,以及第二切換電路的第二選擇端耦接至第一切換電路的第二選擇端。The present invention provides an electronic device. The electronic device includes a core unit, a peripheral device, a lightning (hereinafter referred to as Thunderbolt) connector, a Thunderbolt controller unit, a first switching circuit, and a second switching circuit. The core unit has a first high-speed Peripheral Component Interconnect Express (PCIE) connection end and a second PCIE connection end. The peripheral device has a PCIE connection. The Thunderbolt connector is coupled to the Thunderbolt controller unit, wherein the Thunderbolt controller unit has a host mode and an endpoint device mode. The first common end of the first switching circuit is coupled to the PCIE connection of the peripheral device The first selection end of the first switching circuit is coupled to the first PCIE connection end of the core unit. The first common end of the second switching circuit is coupled to the first PCIE connection end of the Thunderbolt controller unit, the first selection end of the second switching circuit is coupled to the second PCIE connection end of the core unit, and the second switching circuit is The second selection end is coupled to the second selection end of the first switching circuit.

本發明提供一種電子裝置的雷電(Thunderbolt)連接器之模式切換方法。此Thunderbolt切換方法包括提供Thunderbolt控制器單元,此Thunderbolt控制器單元具有主機模式與端點設備模式;當Thunderbolt控制器單元操作於主機模式時,將Thunderbolt控制器單元耦接至電子裝置的核心單元,且將電子裝置的週邊裝置耦接至核心單元;當Thunderbolt控制器單元操作於端點設備模式時,將週邊裝置耦接至Thunderbolt控制器單元。The invention provides a mode switching method of a Thunderbolt connector of an electronic device. The Thunderbolt switching method includes providing a Thunderbolt controller unit having a host mode and an endpoint device mode; when the Thunderbolt controller unit is operating in the host mode, coupling the Thunderbolt controller unit to the core unit of the electronic device, And coupling the peripheral device of the electronic device to the core unit; when the Thunderbolt controller unit operates in the endpoint device mode, coupling the peripheral device to the Thunderbolt controller unit.

基於上述,本發明所提供的電子裝置可利用第一切換單元與第二切換單元變換核心單元、週邊裝置以及Thunderbolt控制器單元三者之間的耦接關係,以使本發明所提供的電子裝置不只可作為主機,亦可作為端點設備。Based on the above, the electronic device provided by the present invention can utilize the coupling relationship between the first switching unit and the second switching unit to transform the core unit, the peripheral device, and the Thunderbolt controller unit, so that the electronic device provided by the present invention is provided. Not only as a host, but also as an endpoint device.

為讓本發明之上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。The above described features and advantages of the present invention will be more apparent from the following description.

圖1為依據本發明一實施例之電子裝置100的功能方塊示意圖。電子裝置100包括核心單元110、高速週邊裝 置元件互連(Peripheral Component Interconnect Express,以下稱PCIE)設備120、雷電(以下稱Thunderbolt)連接器130、Thunderbolt控制器單元140、第一切換電路150、第二切換電路160。核心單元110具有PCIE連接端111與PCIE連接端112。週邊裝置120具有PCIE連接端121。週邊裝置120可以是連接於PCIE匯流排(bus)上的任何設備,例如為通用序列匯排流(Universal Serial Bus,以下稱USB)晶片、無線區域網路(wireless local area network,以下稱WLAN)晶片或是外部串列進階技術附接(External Serial Advanced Technology Attachment,以下稱ESATA)晶片等。電子裝置100可以經由不同的週邊裝置連接至不同的週邊設備(peripheral devices)。FIG. 1 is a functional block diagram of an electronic device 100 according to an embodiment of the invention. The electronic device 100 includes a core unit 110 and a high speed peripheral device. A Peripheral Component Interconnect Express (hereinafter referred to as PCIE) device 120, a Thunderbolt (hereinafter referred to as Thunderbolt) connector 130, a Thunderbolt controller unit 140, a first switching circuit 150, and a second switching circuit 160 are provided. The core unit 110 has a PCIE connection 111 and a PCIE connection 112. The peripheral device 120 has a PCIE connection end 121. The peripheral device 120 can be any device connected to the PCIE bus, such as a Universal Serial Bus (USB) chip, and a wireless local area network (hereinafter referred to as WLAN). The chip is either an external serial Advanced Technology Attachment (hereinafter referred to as ESATA) chip or the like. The electronic device 100 can be connected to different peripheral devices via different peripheral devices.

Thunderbolt連接器130與Thunderbolt控制器單元140的Thunderbolt連接端耦接。Thunderbolt控制器單元140可以透過Thunderbolt連接器130與外部Thunderbolt裝置連接。其中,Thunderbolt控制器單元140可以動態地被設定為主機(host)模式與端點設備模式(end-point device)。主機模式可例如為路由器(router)模式,但本發明實施例中的主機模式並不限於為路由器模式。當在主機模式時,電子裝置100實行為Thunderbolt主機。當在端點設備模式時,電子裝置100實行為端點設備。The Thunderbolt connector 130 is coupled to the Thunderbolt connector of the Thunderbolt controller unit 140. The Thunderbolt controller unit 140 can be coupled to an external Thunderbolt device via a Thunderbolt connector 130. Among them, the Thunderbolt controller unit 140 can be dynamically set to a host mode and an end-point device. The host mode may be, for example, a router mode, but the host mode in the embodiment of the present invention is not limited to the router mode. When in the host mode, the electronic device 100 is implemented as a Thunderbolt host. When in the endpoint device mode, the electronic device 100 is implemented as an endpoint device.

第一切換電路150與第二切換電路160可以是任何具有信號路徑接換功能的電路,例如Q-switch、多工器(multiplexer)、開關等。第一切換電路150可以選擇性地將 共同端151電性連接至選擇端152與153其中一者,而第二切換電路160可以選擇性地將共同端161電性連接至選擇端162與163其中一者。第一切換電路150的共同端151耦接至週邊裝置120的PCIE連接端121。第一切換電路150的選擇端152耦接至核心單元110的PCIE連接端111。第二切換電路160的共同端161耦接至Thunderbolt控制器單元140的PCIE連接端141。第二切換電路160的選擇端162耦接至核心單元110的PCIE連接端112。第二切換電路160的選擇端163耦接至第一切換電路150的選擇端153。The first switching circuit 150 and the second switching circuit 160 may be any circuit having a signal path switching function, such as a Q-switch, a multiplexer, a switch, and the like. The first switching circuit 150 can selectively The common terminal 151 is electrically connected to one of the selection terminals 152 and 153, and the second switching circuit 160 can selectively electrically connect the common terminal 161 to one of the selection terminals 162 and 163. The common end 151 of the first switching circuit 150 is coupled to the PCIE connection end 121 of the peripheral device 120. The selection end 152 of the first switching circuit 150 is coupled to the PCIE connection end 111 of the core unit 110. The common terminal 161 of the second switching circuit 160 is coupled to the PCIE connection end 141 of the Thunderbolt controller unit 140. The selection terminal 162 of the second switching circuit 160 is coupled to the PCIE connection terminal 112 of the core unit 110. The selection terminal 163 of the second switching circuit 160 is coupled to the selection terminal 153 of the first switching circuit 150.

在一些實施例中,Thunderbolt控制器單元140可以依據使用者的指令而選擇性地操作於主機模式或端點設備模式。在另一些實施例中,Thunderbolt控制器單元140可以依據核心單元110是否致能(enable)而選擇性地操作於主機模式或端點設備模式。依照實際產品的設計需求,核心單元110被致能或禁能(disable)的手段可以是任何方式。例如,當核心單元110處於睡眠模式(sleep mode,例如S3模式)、休眠模式(hibernation mode,例如S4模式)或關機(例如S5模式)時,或核心單元110處於其他禁能狀態的模式時,Thunderbolt控制器單元140可以操作於端點設備模式。除了上述的三個模式之外,本發明的其他實施例並不受限於上述的模式中,也可在其他模式中完成。例如,在核心單元110處於正常操作模式情況下,核心單元110的PCIE連接端111與112被禁能(或turn off)。此時,雖然核 心單元110處於正常操作模式,然而對於Thunderbolt控制器單元140而言,核心單元110是禁能的。當PCIE連接端111與112被禁能時,Thunderbolt控制器單元140可以操作於端點設備模式。In some embodiments, Thunderbolt controller unit 140 can selectively operate in a host mode or an endpoint device mode depending on the user's instructions. In other embodiments, the Thunderbolt controller unit 140 can selectively operate in a host mode or an endpoint device mode depending on whether the core unit 110 is enabled. The means by which the core unit 110 is enabled or disabled may be in any manner, depending on the design requirements of the actual product. For example, when the core unit 110 is in a sleep mode (for example, S3 mode), a hibernation mode (for example, S4 mode), or a shutdown (for example, S5 mode), or when the core unit 110 is in another disabled state mode, The Thunderbolt controller unit 140 can operate in an endpoint device mode. Other embodiments of the present invention are not limited to the above modes except for the above three modes, and may be completed in other modes. For example, in the case where the core unit 110 is in the normal operating mode, the PCIE terminals 111 and 112 of the core unit 110 are disabled (or turned off). At this time, although the core The heart unit 110 is in a normal mode of operation, however for the Thunderbolt controller unit 140, the core unit 110 is disabled. When the PCIE connectors 111 and 112 are disabled, the Thunderbolt controller unit 140 can operate in an endpoint device mode.

當核心單元110處於正常操作模式(例如S0模式或處於其他致能狀態的模式)時,Thunderbolt控制器單元140可以操作於主機模式。除了上述的模式之外,本發明的其他實施例並不受限於上述的模式中,也可在其他模式中完成。The Thunderbolt controller unit 140 may operate in a host mode when the core unit 110 is in a normal mode of operation (eg, S0 mode or a mode in other enabled states). Other embodiments of the present invention are not limited to the above modes except for the above modes, and may be implemented in other modes.

當Thunderbolt控制器單元140操作於主機模式時,第一切換電路150的共同端151耦接至第一切換電路150的選擇端152。第二切換電路160的共同端161耦接至第二切換電路160的選擇端162。如此一來,會形成週邊裝置120以及Thunderbolt控制器單元140會分別與核心單元110的PCIE連接端111與112耦接,且週邊裝置120以及Thunderbolt控制器單元140彼此不耦接的情形。因此,電子裝置100可以作為Thunderbolt主機,核心單元110可以透過PCIE連接端111與第一切換電路150使用週邊裝置120,以及核心單元110可以透過PCIE連接端112、第二切換電路160與Thunderbolt控制器單元140使用Thunderbolt連接器130所連接的外部端點設備(例如外部硬碟、顯示器、通信網路等)。When the Thunderbolt controller unit 140 operates in the host mode, the common terminal 151 of the first switching circuit 150 is coupled to the selection terminal 152 of the first switching circuit 150. The common terminal 161 of the second switching circuit 160 is coupled to the selection terminal 162 of the second switching circuit 160. As a result, the peripheral device 120 and the Thunderbolt controller unit 140 are respectively coupled to the PCIE terminals 111 and 112 of the core unit 110, and the peripheral device 120 and the Thunderbolt controller unit 140 are not coupled to each other. Therefore, the electronic device 100 can function as a Thunderbolt host, the core unit 110 can use the peripheral device 120 through the PCIE connection 111 and the first switching circuit 150, and the core unit 110 can pass through the PCIE connection 112, the second switching circuit 160, and the Thunderbolt controller. Unit 140 uses external endpoint devices (e.g., external hard drives, displays, communication networks, etc.) to which Thunderbolt connector 130 is connected.

當Thunderbolt控制器單元140操作於端點設備模式時,核心單元110可被禁能(例如進入S3、S4或S5模式或 核心單元110處於其他禁能狀態的模式),核心單元110亦可依然處於致能(或正常操作模式)情況下。在其他實施例中,核心單元110在致能(或正常操作模式)情況下,Thunderbolt控制器單元140亦可以被動態設定操作於端點設備模式或主機模式。When the Thunderbolt controller unit 140 is operating in the endpoint device mode, the core unit 110 may be disabled (eg, entering S3, S4, or S5 mode or The core unit 110 is in a mode of other disabled states, and the core unit 110 may still be in an enabled (or normal operating mode) condition. In other embodiments, the core unit 110, in the case of enabling (or normal operating mode), the Thunderbolt controller unit 140 can also be dynamically set to operate in an endpoint device mode or a host mode.

第一切換電路150的共同端151耦接至第一切換電路150的選擇端153,第二切換電路160的共同端161耦接至第二切換電路160的選擇端163。如此一來,會形成核心單元110未與週邊裝置120、Thunderbolt控制器單元140耦接,且週邊裝置120與Thunderbolt控制器單元140相互耦接的情形。因此,電子裝置100可以作為Thunderbolt端點設備。也就是說,外部Thunderbolt主機可以透過Thunderbolt連接器130、Thunderbolt控制器單元140、第二切換電路160與第一切換電路150使用電子裝置100內部的週邊裝置120。因此,使用者可利用如筆記型電腦(Note Book)或是其他操作於Thunderbolt主機模式的電子裝置,透過Thunderbolt連接器130、Thunderbolt控制器單元140使用週邊裝置120所連接的介面/資源。The common terminal 151 of the first switching circuit 150 is coupled to the selection terminal 153 of the first switching circuit 150 , and the common terminal 161 of the second switching circuit 160 is coupled to the selection terminal 163 of the second switching circuit 160 . As a result, the core unit 110 is not coupled to the peripheral device 120 and the Thunderbolt controller unit 140, and the peripheral device 120 and the Thunderbolt controller unit 140 are coupled to each other. Therefore, the electronic device 100 can function as a Thunderbolt endpoint device. That is, the external Thunderbolt host can use the peripheral device 120 inside the electronic device 100 through the Thunderbolt connector 130, the Thunderbolt controller unit 140, the second switching circuit 160, and the first switching circuit 150. Therefore, the user can use the interface/resource connected by the peripheral device 120 through the Thunderbolt connector 130 and the Thunderbolt controller unit 140, such as a Note Book or other electronic device operating in the Thunderbolt host mode.

圖2為依據本發明一實施例之電子裝置200的功能方塊示意圖。圖2所示實施例可以參照圖1的相關說明而類推之。請參照圖2,電子裝置200包括核心單元210、週邊裝置221、週邊裝置222、週邊裝置223、週邊裝置224、Thunderbolt連接器230、Thunderbolt控制器單元240、第一切換電路250、第二切換電路260。週邊裝置221~224 可以是任何連接至PCIE匯流排的設備,例如週邊裝置221可為USB主控制器(host controller)晶片,週邊裝置222可為WLAN晶片,週邊裝置223可為ESATA晶片,而週邊裝置224還可為其他的電腦週邊裝置。FIG. 2 is a functional block diagram of an electronic device 200 according to an embodiment of the invention. The embodiment shown in FIG. 2 can be analogized with reference to the related description of FIG. 1. 2, the electronic device 200 includes a core unit 210, a peripheral device 221, a peripheral device 222, a peripheral device 223, a peripheral device 224, a Thunderbolt connector 230, a Thunderbolt controller unit 240, a first switching circuit 250, and a second switching circuit. 260. Peripheral devices 221~224 It can be any device connected to the PCIE bus, for example, the peripheral device 221 can be a USB host controller chip, the peripheral device 222 can be a WLAN chip, the peripheral device 223 can be an ESATA chip, and the peripheral device 224 can also be Other computer peripherals.

於本實施例中,核心單元210包括中央處理單元211以及南橋晶片212。中央處理單元211耦接至南橋晶片212。南橋晶片212具有8個PCIE連接端(P1 ~P8 )。第一切換電路250共有8個選擇端(C1 ~C8 )以及4個共同端(X1 ~X4 )。第二切換電路260共有8個選擇端(A1 ~A8 )以及4個共同端(Y1 ~Y4 )。南橋晶片212的PCIE連接端P1 ~P4 分別耦接至第一切換電路250的選擇端C1 ~C4 。南橋晶片212的PCIE連接端P5 ~P8 分別耦接至第二切換電路260的選擇端A5 ~A8 。第一切換電路250的選擇端C5 ~C8 分別耦接至第二切換電路260的選擇端A1 ~A4 。第一切換電路250的共同端X1 耦接至週邊裝置221的PCIE連接端U1 。第一切換電路250的共同端X2 耦接至週邊裝置222的PCIE連接端U2 。第一切換電路250的共同端X3 耦接至週邊裝置223的PCIE連接端U3 。第一切換電路250的共同端X4 耦接至週邊裝置224的PCIE連接端U4 。第二切換電路250的共同端Y1 ~Y4 耦接至Thunderbolt控制器單元220的PCIE連接端E1 ~E4In the embodiment, the core unit 210 includes a central processing unit 211 and a south bridge wafer 212. The central processing unit 211 is coupled to the south bridge wafer 212. The south bridge wafer 212 has eight PCIE terminals (P 1 ~ P 8 ). The first switching circuit 250 has a total of eight selection terminals (C 1 to C 8 ) and four common terminals (X 1 to X 4 ). The second switching circuit 260 has a total of eight selection terminals (A 1 to A 8 ) and four common terminals (Y 1 to Y 4 ). The PCIE terminals P 1 -P 4 of the south bridge chip 212 are respectively coupled to the selection terminals C 1 -C 4 of the first switching circuit 250. The PCIE terminals P 5 -P 8 of the south bridge chip 212 are respectively coupled to the selection terminals A 5 -A 8 of the second switching circuit 260. The selection terminals C 5 -C 8 of the first switching circuit 250 are respectively coupled to the selection terminals A 1 -A 4 of the second switching circuit 260. The common terminal X 1 of the first switching circuit 250 is coupled to the PCIE connection terminal U 1 of the peripheral device 221. The common terminal X 2 of the first switching circuit 250 is coupled to the PCIE connection terminal U 2 of the peripheral device 222. The common terminal X 3 of the first switching circuit 250 is coupled to the PCIE connection terminal U 3 of the peripheral device 223. The common terminal X 4 of the first switching circuit 250 is coupled to the PCIE connection terminal U 4 of the peripheral device 224. The common terminals Y 1 ~Y 4 of the second switching circuit 250 are coupled to the PCIE terminals E 1 -E 4 of the Thunderbolt controller unit 220.

當Thunderbolt控制器單元240操作於主機模式時,第一切換電路250的共同端X1 ~X4 分別耦接至第一切換電路250的選擇端C1 ~C4 ,而第二切換電路260的共同端Y1 ~Y4 分別耦接至第二切換電路260的選擇端A5 ~A8 。如此一來,核心單元210的中央處理單元211可透過南橋晶片212與第一切換電路250使用週邊裝置221~224。同時,核心單元210的中央處理單元211亦可透過南橋晶片212與第二切換電路260耦接至Thunderbolt控制器單元240,因此中央處理單元211可透過操作於主機模式的Thunderbolt控制器單元240使用Thunderbolt連接器230所耦接的外部Thunderbolt設備(例如外部硬碟、顯示器、通信網路等)。When the Thunderbolt controller unit 240 is operated in the host mode, the common terminals X 1 -X 4 of the first switching circuit 250 are respectively coupled to the selection terminals C 1 -C 4 of the first switching circuit 250, and the second switching circuit 260 The common terminals Y 1 ~Y 4 are respectively coupled to the selection terminals A 5 -A 8 of the second switching circuit 260. In this way, the central processing unit 211 of the core unit 210 can use the peripheral devices 221 to 224 through the south bridge chip 212 and the first switching circuit 250. At the same time, the central processing unit 211 of the core unit 210 can also be coupled to the Thunderbolt controller unit 240 through the south bridge chip 212 and the second switching circuit 260. Therefore, the central processing unit 211 can use the Thunderbolt through the Thunderbolt controller unit 240 operating in the host mode. An external Thunderbolt device (eg, an external hard drive, display, communication network, etc.) to which the connector 230 is coupled.

當Thunderbolt控制器單元240操作於端點設備模式時,核心單元210可被禁能。在另一實施例中當Thunderbolt控制器單元240操作於端點設備模式時,核心單元210亦可在致能(或正常操作模式)情況下。在Thunderbolt控制器單元240操作於端點設備模式的狀態下,第一切換電路250的共同端X1 ~X4 分別耦接至第一切換電路250的選擇端C5 ~C8 ,且第二切換電路260的共同端Y1 ~Y4 耦接至第二切換電路260的選擇端A1 ~A4 。如此一來,核心單元210未耦接於週邊裝置221~224與Thunderbolt控制器單元240,且週邊裝置221~224與Thunderbolt控制器單元240耦接。因此,外部的Thunderbolt主機(例如筆記型電腦)可透過Thunderbolt連接器230、Thunderbolt控制器單元240、第二切換電路260與第一切換電路250使用週邊裝置221~224。When the Thunderbolt controller unit 240 is operating in the endpoint device mode, the core unit 210 can be disabled. In another embodiment, when the Thunderbolt controller unit 240 is operating in the endpoint device mode, the core unit 210 may also be in the case of enabling (or normal operating mode). In a state in which the Thunderbolt controller unit 240 operates in the endpoint device mode, the common terminals X 1 -X 4 of the first switching circuit 250 are respectively coupled to the selection terminals C 5 -C 8 of the first switching circuit 250, and the second The common terminals Y 1 -Y 4 of the switching circuit 260 are coupled to the selection terminals A 1 -A 4 of the second switching circuit 260. As such, the core unit 210 is not coupled to the peripheral devices 221 - 224 and the Thunderbolt controller unit 240 , and the peripheral devices 221 - 224 are coupled to the Thunderbolt controller unit 240 . Therefore, an external Thunderbolt host (for example, a notebook computer) can use the peripheral devices 221 to 224 through the Thunderbolt connector 230, the Thunderbolt controller unit 240, the second switching circuit 260, and the first switching circuit 250.

圖3為依據本發明一實施例之電子裝置300的功能方塊示意圖。圖3所示實施例可以參照圖1與圖2的相關說 明而類推之。電子裝置300與電子裝置100大致上相似,差異在於電子裝置300的核心單元310包括中央處理單元(Central Processing Unit)313,以及PCIE裝置320包括繪圖處理單元(Graphics Processing Unit)322。中央處理單元313透過PCIE連接端311與第一切換單元150的選擇端152耦接。中央處理單元313透過PCIE連接端312與第二切換單元160的選擇端162耦接。繪圖處理單元322則透過PCIE連接端321與第一切換單元150的共同端151耦接。第一切換單元150的選擇端153與第二切換單元160的選擇端163耦接。FIG. 3 is a functional block diagram of an electronic device 300 according to an embodiment of the invention. The embodiment shown in FIG. 3 can refer to the related description of FIG. 1 and FIG. 2. And so on. The electronic device 300 is substantially similar to the electronic device 100, with the difference that the core unit 310 of the electronic device 300 includes a central processing unit (313), and the PCIE device 320 includes a graphics processing unit (Graphics Processing Unit) 322. The central processing unit 313 is coupled to the selection terminal 152 of the first switching unit 150 through the PCIE connection end 311. The central processing unit 313 is coupled to the selection terminal 162 of the second switching unit 160 through the PCIE connection terminal 312. The graphics processing unit 322 is coupled to the common terminal 151 of the first switching unit 150 through the PCIE connection end 321 . The selection terminal 153 of the first switching unit 150 is coupled to the selection terminal 163 of the second switching unit 160.

當Thunderbolt控制器單元140操作於主機模式時,繪圖處理單元322以及Thunderbolt控制器單元140會分別經由第一切換電路150與第二切換單元160耦接至中央處理單元313。中央處理單元313可透過第一切換單元150使用繪圖處理單元322,以加速影像處理的能力以及減少中央處理單元313的負擔。同時,中央處理單元313亦可透過第二切換單元160與Thunderbolt控制器單元140使用連接於Thunderbolt連接器130的外部端點設備(例如外部硬碟、顯示器、通信網路等)。When the Thunderbolt controller unit 140 is operating in the host mode, the graphics processing unit 322 and the Thunderbolt controller unit 140 are coupled to the central processing unit 313 via the first switching circuit 150 and the second switching unit 160, respectively. The central processing unit 313 can use the mapping processing unit 322 through the first switching unit 150 to accelerate the image processing capability and reduce the burden on the central processing unit 313. At the same time, the central processing unit 313 can also use an external endpoint device (eg, an external hard drive, a display, a communication network, etc.) connected to the Thunderbolt connector 130 through the second switching unit 160 and the Thunderbolt controller unit 140.

當Thunderbolt控制器單元140操作於端點設備模式時,中央處理單元313會被禁能(例如進入S3、S4或S5模式或處於其他禁能狀態的模式)。在另一實施例中,當Thunderbolt控制器單元140操作於端點設備模式時,中央處理單元313亦可維持在致能(或正常操作模式)情況下。 在Thunderbolt控制器單元140操作於端點設備模式的情況下,繪圖處理單元322經由第一切換電路150與第二切換電路160耦接至雷電控制器單元140,以及中央處理單元313未耦接至繪圖處理單元322與Thunderbolt控制器單元140。如此一來,外部的Thunderbolt主機(例如筆記型電腦)可透過Thunderbolt連接器130與Thunderbolt控制器單元140使用繪圖處理單元322以進行影像處理。When the Thunderbolt controller unit 140 is operating in the endpoint device mode, the central processing unit 313 is disabled (eg, entering the S3, S4, or S5 mode or in a mode that is disabled). In another embodiment, when the Thunderbolt controller unit 140 is operating in the endpoint device mode, the central processing unit 313 can also be maintained in the enabled (or normal mode of operation) condition. In the case where the Thunderbolt controller unit 140 operates in the endpoint device mode, the graphics processing unit 322 is coupled to the lightning controller unit 140 via the first switching circuit 150 and the second switching circuit 160, and the central processing unit 313 is not coupled to The graphics processing unit 322 and the Thunderbolt controller unit 140. As such, an external Thunderbolt host (eg, a notebook computer) can use the graphics processing unit 322 for image processing via the Thunderbolt connector 130 and the Thunderbolt controller unit 140.

圖4為依據本發明一實施例之電子裝置400的功能方塊示意圖。圖4所示實施例可以參照圖1、圖2與圖3的相關說明而類推之。電子裝置400與電子裝置300大致上相似,差異在於電子裝置400的核心單元410除了包括中央處理單元413,更包括北橋晶片414。北橋晶片414與中央處理單元413耦接。北橋晶片414透過PCIE連接端411與第一切換單元150的選擇端152耦接。北橋晶片414透過PCIE連接端412與第二切換單元160的選擇端162耦接。繪圖處理單元322則透過PCIE連接端321與第一切換單元150的共同端151耦接。第一切換單元150的選擇端153與第二切換單元160的選擇端163耦接。FIG. 4 is a functional block diagram of an electronic device 400 according to an embodiment of the invention. The embodiment shown in FIG. 4 can be analogized with reference to the related descriptions of FIGS. 1, 2, and 3. The electronic device 400 is substantially similar to the electronic device 300, with the difference that the core unit 410 of the electronic device 400 includes a central processing unit 413 and a north bridge wafer 414. The north bridge wafer 414 is coupled to the central processing unit 413. The north bridge chip 414 is coupled to the selection terminal 152 of the first switching unit 150 through the PCIE connection terminal 411. The north bridge chip 414 is coupled to the select terminal 162 of the second switching unit 160 through the PCIE terminal 412. The graphics processing unit 322 is coupled to the common terminal 151 of the first switching unit 150 through the PCIE connection end 321 . The selection terminal 153 of the first switching unit 150 is coupled to the selection terminal 163 of the second switching unit 160.

當Thunderbolt控制器單元140操作於主機模式時,繪圖處理單元322以及Thunderbolt控制器單元140會分別與北橋晶片414的PCIE連接端411與412耦接。此時,中央處理單元413可透過北橋晶片414及第一切換單元150使用繪圖處理單元322,以加速影像處理的能力以及減少中央處理單元413的負擔。同時,中央處理單元413亦可 透過北橋晶片414、第二切換單元160與Thunderbolt控制器單元140使用連接於Thunderbolt連接器130的外部端點設備(例如外部硬碟、顯示器、通信網路等)。When the Thunderbolt controller unit 140 is operating in the host mode, the graphics processing unit 322 and the Thunderbolt controller unit 140 are coupled to the PCIE connections 411 and 412 of the north bridge wafer 414, respectively. At this time, the central processing unit 413 can use the drawing processing unit 322 through the north bridge wafer 414 and the first switching unit 150 to accelerate the image processing capability and reduce the burden on the central processing unit 413. At the same time, the central processing unit 413 can also An external endpoint device (e.g., an external hard drive, display, communication network, etc.) coupled to the Thunderbolt connector 130 is used through the Northbridge die 414, the second switching unit 160, and the Thunderbolt controller unit 140.

當Thunderbolt控制器單元140操作於端點設備模式時,北橋晶片414會被禁能。在另一實施例中,當Thunderbolt控制器單元140操作於端點設備模式時,北橋晶片414亦可維持在致能(或正常操作模式)情況下。在Thunderbolt控制器單元140操作於端點設備模式的情況下,北橋晶片414未與繪圖處理單元322及Thunderbolt控制器單元140耦接,且繪圖處理單元322與Thunderbolt控制器單元140互相耦接。如此一來,外部的Thunderbolt主機(例如筆記型電腦)可透過Thunderbolt連接器130與Thunderbolt控制器單元140使用繪圖處理單元322以進行影像處理。When the Thunderbolt controller unit 140 is operating in the endpoint device mode, the north bridge wafer 414 is disabled. In another embodiment, when the Thunderbolt controller unit 140 is operating in the endpoint device mode, the north bridge wafer 414 can also be maintained in an enabled (or normal mode of operation) condition. In the case where the Thunderbolt controller unit 140 operates in the endpoint device mode, the north bridge wafer 414 is not coupled to the graphics processing unit 322 and the Thunderbolt controller unit 140, and the graphics processing unit 322 and the Thunderbolt controller unit 140 are coupled to each other. As such, an external Thunderbolt host (eg, a notebook computer) can use the graphics processing unit 322 for image processing via the Thunderbolt connector 130 and the Thunderbolt controller unit 140.

圖5為依據本發明一實施例之電子裝置500的功能方塊示意圖。圖5所示實施例可以參照圖1至圖4的相關說明而類推之。請參照圖5,電子裝置500包括核心單元510、週邊裝置120、Thunderbolt連接器130、Thunderbolt控制器單元140、第一切換單元150、第二切換單元160、第三切換單元520以及繪圖處理單元530。核心單元510包括南橋晶片514與中央處理單元515,且南橋晶片514與中央處理單元515耦接。南橋晶片514的PCIE連接端511耦接至第一切換單元150的選擇端152。南橋晶片514的PCIE連接端512耦接至第二切換單元160的選擇端162。 南橋晶片514的PCIE連接端512耦接至第二切換單元160的選擇端166。中央處理單元515的PCIE連接端516耦接至第三切換單元520的選擇端522。第二切換單元160的共同端161與Thunderbolt控制器單元140的PCIE連接端141耦接。第二切換單元160的共同端165與Thunderbolt控制器單元140的PCIE連接端142耦接。第三切換單元520的選擇端523耦接第二切換單元160的選擇端164。第三切換單元520的共同端521耦接繪圖處理單元530的PCIE連接端531。FIG. 5 is a functional block diagram of an electronic device 500 according to an embodiment of the invention. The embodiment shown in FIG. 5 can be analogized with reference to the related description of FIGS. 1 to 4. Referring to FIG. 5 , the electronic device 500 includes a core unit 510 , a peripheral device 120 , a Thunderbolt connector 130 , a Thunderbolt controller unit 140 , a first switching unit 150 , a second switching unit 160 , a third switching unit 520 , and a drawing processing unit 530 . . The core unit 510 includes a south bridge wafer 514 and a central processing unit 515, and the south bridge wafer 514 is coupled to the central processing unit 515. The PCIE connection 511 of the south bridge chip 514 is coupled to the selection terminal 152 of the first switching unit 150. The PCIE connection 512 of the south bridge chip 514 is coupled to the selection terminal 162 of the second switching unit 160. The PCIE connection 512 of the south bridge chip 514 is coupled to the selection terminal 166 of the second switching unit 160. The PCIE connection 516 of the central processing unit 515 is coupled to the selection terminal 522 of the third switching unit 520. The common end 161 of the second switching unit 160 is coupled to the PCIE connection 141 of the Thunderbolt controller unit 140. The common end 165 of the second switching unit 160 is coupled to the PCIE connection 142 of the Thunderbolt controller unit 140. The selection terminal 523 of the third switching unit 520 is coupled to the selection terminal 164 of the second switching unit 160. The common terminal 521 of the third switching unit 520 is coupled to the PCIE connection end 531 of the graphics processing unit 530.

當Thunderbolt控制器單元140操作於主機模式時,第一切換電路150的共同端151耦接至第一切換電路150的第一選擇端152。第二切換電路160的共同端161耦接至第二切換電路160的選擇端162。第二切換電路160的共同端165耦接至第二切換電路160的選擇端166。第三切換電路520的共同端521耦接至第三切換電路520的選擇端522。因此,中央處理器515會透過南橋晶片514與週邊裝置120耦接,在此,週邊裝置120可例如為USB主控制器晶片、WLAN晶片、ESATA晶片或其他低速週邊裝置。中央處理器515會透過PCIE連接端516耦接至繪圖處理單元530等高速週邊裝置。如此一來,中央處理器515可透過南橋晶片514使用週邊裝置120,亦可使用繪圖處理單元530以加強影像處理之能力以及減少中央處理器515的負擔。除此之外,中央處理器515還可透過南橋晶片514、第二切換電路160與Thunderbolt控制器單元140 使用連接於Thunderbolt連接器130的外部Thunderbolt端點設備。When the Thunderbolt controller unit 140 operates in the host mode, the common terminal 151 of the first switching circuit 150 is coupled to the first selection terminal 152 of the first switching circuit 150. The common terminal 161 of the second switching circuit 160 is coupled to the selection terminal 162 of the second switching circuit 160. The common terminal 165 of the second switching circuit 160 is coupled to the selection terminal 166 of the second switching circuit 160. The common terminal 521 of the third switching circuit 520 is coupled to the selection terminal 522 of the third switching circuit 520. Therefore, the central processing unit 515 is coupled to the peripheral device 120 via the south bridge chip 514. The peripheral device 120 can be, for example, a USB host controller chip, a WLAN chip, an ESATA chip, or other low speed peripheral devices. The central processing unit 515 is coupled to the high speed peripheral device such as the graphics processing unit 530 through the PCIE connection terminal 516. In this way, the central processing unit 515 can use the peripheral device 120 through the south bridge chip 514, and can also use the graphics processing unit 530 to enhance the image processing capability and reduce the burden on the central processing unit 515. In addition, the central processing unit 515 can also pass through the south bridge chip 514, the second switching circuit 160, and the Thunderbolt controller unit 140. An external Thunderbolt endpoint device connected to the Thunderbolt connector 130 is used.

當Thunderbolt控制器單元140操作於端點設備模式時,中央處理單元513與南橋晶片514會被禁能。在另一實施例中,當Thunderbolt控制器單元140操作於端點設備模式時,中央處理單元513與南橋晶片514亦可維持在致能(或正常操作模式)情況下。在Thunderbolt控制器單元140操作於端點設備模式的情況下,第一切換電路150的共同端151耦接至第一切換電路150的選擇端153。第二切換電路160的共同端161耦接至第二切換電路160的選擇端163。第二切換電路160的共同端165耦接至第二切換電路160的選擇端164。第三切換電路520的共同端521耦接至第三切換電路520的選擇端523。因此,Thunderbolt控制器單元140透過第二切換電路160與第一切換單元150耦接至週邊裝置120,以及Thunderbolt控制器單元140透過第二切換電路160與第三切換單元520耦接至繪圖處理單元530。外部的Thunderbolt主機(例如筆記型電腦)可透過Thunderbolt連接器130與Thunderbolt控制器單元140使用例如為USB等低速傳輸的週邊裝置120以及繪圖處理單元530這種高速傳輸的裝置。When the Thunderbolt controller unit 140 is operating in the endpoint device mode, the central processing unit 513 and the south bridge wafer 514 are disabled. In another embodiment, when the Thunderbolt controller unit 140 is operating in the endpoint device mode, the central processing unit 513 and the south bridge wafer 514 may also be maintained in an enabled (or normal mode of operation) condition. In the case where the Thunderbolt controller unit 140 operates in the endpoint device mode, the common terminal 151 of the first switching circuit 150 is coupled to the selection terminal 153 of the first switching circuit 150. The common terminal 161 of the second switching circuit 160 is coupled to the selection terminal 163 of the second switching circuit 160. The common terminal 165 of the second switching circuit 160 is coupled to the selection terminal 164 of the second switching circuit 160. The common terminal 521 of the third switching circuit 520 is coupled to the selection terminal 523 of the third switching circuit 520. Therefore, the Thunderbolt controller unit 140 is coupled to the peripheral device 120 through the second switching circuit 160 and the first switching unit 150, and the Thunderbolt controller unit 140 is coupled to the mapping processing unit through the second switching circuit 160 and the third switching unit 520. 530. An external Thunderbolt host (e.g., a notebook computer) can use the Thunderbolt connector 130 and the Thunderbolt controller unit 140 to use a high-speed transmission device such as a peripheral device 120 for low-speed transmission such as USB and a graphics processing unit 530.

圖6A為依照本發明一實施例說明圖1所繪示的Thunderbolt控制器單元140的功能方塊示意圖。圖2的Thunderbolt控制器單元240與圖3至圖5的Thunderbolt控制器單元140亦可參照圖6A的說明而類推之。請參照 圖6A,Thunderbolt控制器單元140包括記憶體143以及Thunderbolt控制晶片144。記憶體143可為任何類型的記憶體,例如可為非揮發性記憶體(Non-volatile Memory,NVM)。舉例來說,記憶體143可以是唯讀記憶體(ROM)、快閃記憶體(FLASH memory)、電子抹除式可複寫唯讀記憶體(EEPROM)、可程式化記憶體(PROM)或是可抹除可程式化記憶體(EPROM)等等。在其他實施例中,記憶體143亦可為揮發性記憶體,像是隨機存取記憶體(RAM)。其中,所述揮發性記憶體可以由電池供應電源,以保持所述揮發性記憶體所儲存的資料。FIG. 6A is a functional block diagram of the Thunderbolt controller unit 140 illustrated in FIG. 1 according to an embodiment of the invention. The Thunderbolt controller unit 240 of FIG. 2 and the Thunderbolt controller unit 140 of FIGS. 3 through 5 can also be analogized with reference to the description of FIG. 6A. Please refer to 6A, the Thunderbolt controller unit 140 includes a memory 143 and a Thunderbolt control wafer 144. The memory 143 can be any type of memory, such as a non-volatile memory (NVM). For example, the memory 143 can be a read only memory (ROM), a flash memory, an electronic erase rewritable read only memory (EEPROM), a programmable memory (PROM), or Erasable programmable memory (EPROM) and so on. In other embodiments, the memory 143 can also be a volatile memory such as a random access memory (RAM). The volatile memory may be powered by a battery to maintain data stored by the volatile memory.

記憶體143包括主機模式韌體143a與端點設備模式韌體143b。Thunderbolt控制晶片144透過PCIE連接端141耦接至第二切換電路160的共同端161。Thunderbolt控制晶片144亦耦接至記憶體143以及Thunderbolt連接器130。The memory 143 includes a host mode firmware 143a and an endpoint device mode firmware 143b. The Thunderbolt control chip 144 is coupled to the common terminal 161 of the second switching circuit 160 through the PCIE connection 141. The Thunderbolt control wafer 144 is also coupled to the memory 143 and the Thunderbolt connector 130.

當Thunderbolt控制晶片144執行主機模式韌體143a時,Thunderbolt控制器單元140操作於主機模式。當Thunderbolt控制晶片144執行端點設備模式韌體143b時,Thunderbolt控制器單元140操作於端點設備模式。若要將Thunderbolt控制器單元140從主機模式切換至端點設備模式,則須先重置(reset)Thunderbolt控制晶片144,再讓Thunderbolt控制晶片144執行其中的端點設備模式韌體143b。同樣地,若要將Thunderbolt控制器單元140從端點設備模式切換至主機模式,則須先重置Thunderbolt控制晶 片144,再讓Thunderbolt控制晶片144執行其中的主機模式韌體143a。When Thunderbolt control wafer 144 executes host mode firmware 143a, Thunderbolt controller unit 140 operates in host mode. When Thunderbolt control wafer 144 executes endpoint device mode firmware 143b, Thunderbolt controller unit 140 operates in an endpoint device mode. To switch the Thunderbolt controller unit 140 from the host mode to the endpoint device mode, the Thunderbolt control chip 144 must be reset first, and then the Thunderbolt control chip 144 executes the endpoint device mode firmware 143b therein. Similarly, to switch the Thunderbolt controller unit 140 from the endpoint device mode to the host mode, the Thunderbolt control crystal must be reset first. The slice 144, and then the Thunderbolt control wafer 144 executes the host mode firmware 143a therein.

圖6B為依照本發明另一實施例說明圖1所繪示的Thunderbolt控制器單元140的功能方塊圖。圖2的Thunderbolt控制器單元240與圖3至圖5的Thunderbolt控制器單元140亦可參照圖6B的說明而類推之。請參照圖6B,Thunderbolt控制器單元140包括Thunderbolt控制晶片144、第一記憶體145、第二記憶體146以及開關147。第一記憶體145與第二記憶體146亦可為任何類型的記憶體,例如可為非揮發性記憶體或是揮發性記憶體。舉例來說,第一記憶體145與第二記憶體146可以是ROM)、FLASH memory、EEPROM、PROM或是EPROM等等。第一記憶體145與第二記憶體146若為揮發性記憶體,則所述揮發性記憶體可以由電池持續供應電源,以保持第一記憶體145與第二記憶體146所儲存的資料。FIG. 6B is a functional block diagram of the Thunderbolt controller unit 140 illustrated in FIG. 1 according to another embodiment of the invention. The Thunderbolt controller unit 240 of FIG. 2 and the Thunderbolt controller unit 140 of FIGS. 3 through 5 can also be analogized with reference to the description of FIG. 6B. Referring to FIG. 6B, the Thunderbolt controller unit 140 includes a Thunderbolt control chip 144, a first memory 145, a second memory 146, and a switch 147. The first memory 145 and the second memory 146 can also be any type of memory, such as non-volatile memory or volatile memory. For example, the first memory 145 and the second memory 146 may be ROM), FLASH memory, EEPROM, PROM, or EPROM, and the like. If the first memory 145 and the second memory 146 are volatile memories, the volatile memory can be continuously powered by the battery to maintain the data stored by the first memory 145 and the second memory 146.

Thunderbolt控制晶片144透過PCIE連接端141耦接至第二切換電路160的共同端161。Thunderbolt控制晶片144亦與Thunderbolt連接器130耦接。第一記憶體145的內容包含主機模式韌體145a。第二記憶體146的內容包含端點設備模式韌體146a。開關147的選擇端147a耦接至第一記憶體145,開關147的選擇端147b耦接至第二記憶體146,開關147的共同端147c耦接至Thunderbolt控制晶片144。The Thunderbolt control chip 144 is coupled to the common terminal 161 of the second switching circuit 160 through the PCIE connection 141. Thunderbolt control wafer 144 is also coupled to Thunderbolt connector 130. The content of the first memory 145 includes host mode firmware 145a. The content of the second memory 146 includes the endpoint device mode firmware 146a. The selection end 147a of the switch 147 is coupled to the first memory 145, the selection end 147b of the switch 147 is coupled to the second memory 146, and the common end 147c of the switch 147 is coupled to the Thunderbolt control wafer 144.

當開關147的共同端147c與選擇端147a耦接時,Thunderbolt控制晶片144與第一記憶體145耦接,因此Thunderbolt控制晶片144經由開關147讀取並執行主機模式韌體145a,此時Thunderbolt控制器單元140操作於主機模式。When the common terminal 147c of the switch 147 is coupled to the selection terminal 147a, the Thunderbolt control wafer 144 is coupled to the first memory 145, so the Thunderbolt control wafer 144 reads and executes the host mode firmware 145a via the switch 147, at which time Thunderbolt control The unit 140 operates in a host mode.

當開關147的共同端147c與選擇端147b耦接時,Thunderbolt控制晶片144與第二記憶體146耦接。在重置Thunderbolt控制晶片144後,Thunderbolt控制晶片144經由開關147讀取並執行第二記憶體146內的端點設備模式韌體146a,此時Thunderbolt控制器單元140操作於端點設備模式。When the common terminal 147c of the switch 147 is coupled to the selection terminal 147b, the Thunderbolt control wafer 144 is coupled to the second memory 146. After resetting the Thunderbolt control wafer 144, the Thunderbolt control wafer 144 reads and executes the endpoint device mode firmware 146a in the second memory 146 via the switch 147, at which time the Thunderbolt controller unit 140 operates in the endpoint device mode.

本發明另一實施例的電子裝置可有兩個Thunderbolt控制器單元。An electronic device according to another embodiment of the present invention may have two Thunderbolt controller units.

圖7為依據本發明一實施例之電子裝置700的功能方塊示意圖。圖7所示實施例可以參照圖1至圖5、圖6A、圖6B的相關說明而類推之。圖7所示電子裝置700與圖2所示電子裝置200大致上相似,差別在於增加了繪圖處理單元530以及第三切換電路710及第四電路單元720,而且Thunderbolt控制器單元240替換為兩個Thunderbolt控制器單元740與770以及記憶體790,Thunderbolt連接器230更換為兩個Thunderbolt連接器730、780。其中,中央處理單元211具有4個PCIE連接端T1 ~T4 ,南橋晶片212具有12個PCIE連接端(P1 ~P12 )。Thunderbolt控制器單元740具有PCIE連接端R1 ~R8 ,Thunderbolt控制器單元770 具有PCIE連接端Q1 ~Q8 。第三切換電路710具有選擇端D1 ~D8 以及共同端V1 ~V4 ,第四切換電路720具有選擇端N1 ~N8 以及共同端Z1 ~Z4 ,繪圖處理單元530具有4個PCIE連接端G1 ~G4FIG. 7 is a functional block diagram of an electronic device 700 according to an embodiment of the invention. The embodiment shown in FIG. 7 can be analogized with reference to the related descriptions of FIGS. 1 to 5, 6A, and 6B. The electronic device 700 shown in FIG. 7 is substantially similar to the electronic device 200 shown in FIG. 2, except that the drawing processing unit 530 and the third switching circuit 710 and the fourth circuit unit 720 are added, and the Thunderbolt controller unit 240 is replaced by two. Thunderbolt controller units 740 and 770 and memory 790, Thunderbolt connector 230 are replaced with two Thunderbolt connectors 730, 780. The central processing unit 211 has four PCIE terminals T 1 -T 4 , and the south bridge wafer 212 has twelve PCIE terminals (P 1 -P 12 ). The Thunderbolt controller unit 740 has PCIE terminals R 1 -R 8 and the Thunderbolt controller unit 770 has PCIE terminals Q 1 -Q 8 . The third switching circuit 710 has a selection terminal D 1 -D 8 and a common terminal V 1 -V 4 , the fourth switching circuit 720 has a selection terminal N 1 -N 8 and a common terminal Z 1 -Z 4 , and the mapping processing unit 530 has 4 PCIE connectors G 1 ~ G 4 .

第三切換電路710的選擇端D1 ~D4 耦接至中央處理單元211的PCIE連接端T1 ~T4 。第三切換電路710的選擇端D5 ~D8 耦接至第四切換電路720的選擇端N5 ~N8 。第三切換電路710的共同端V1 ~V4 耦接至繪圖處理單元530的PCIE連接端G1 ~G4 。第四切換電路720的選擇端N1~N4耦接至南橋晶片212的PCIE連接端P9 ~P12 。第四切換電路720的共同端Z1 ~Z4 耦接至Thunderbolt控制器單元770的PCIE連接端Q1 ~Q4 。Thunderbolt控制器單元740的PCIE連接端R1 ~R4 耦接至第二切換電路260的共同端Y1 ~Y4 。Thunderbolt控制器單元740耦接至Thunderbolt控制器單元770。Thunderbolt控制器單元740耦接至Thunderbolt連接器730。Thunderbolt控制器單元770耦接至Thunderbolt連接器780。The selection terminals D 1 -D 4 of the third switching circuit 710 are coupled to the PCIE connection terminals T 1 -T 4 of the central processing unit 211. The selection terminals D 5 -D 8 of the third switching circuit 710 are coupled to the selection terminals N 5 -N 8 of the fourth switching circuit 720. The common terminals V 1 V V 4 of the third switching circuit 710 are coupled to the PCIE terminals G 1 G G 4 of the graphics processing unit 530. The selection terminals N1 N N4 of the fourth switching circuit 720 are coupled to the PCIE connection terminals P 9 -P 12 of the south bridge chip 212. The common terminals Z 1 -Z 4 of the fourth switching circuit 720 are coupled to the PCIE terminals Q 1 -Q 4 of the Thunderbolt controller unit 770. The PCIE terminals R 1 -R 4 of the Thunderbolt controller unit 740 are coupled to the common terminals Y 1 -Y 4 of the second switching circuit 260. The Thunderbolt controller unit 740 is coupled to the Thunderbolt controller unit 770. The Thunderbolt controller unit 740 is coupled to the Thunderbolt connector 730. The Thunderbolt controller unit 770 is coupled to the Thunderbolt connector 780.

記憶體790亦可為任何類型的記憶體,例如可為非揮發性記憶體或是揮發性記憶體。舉例來說,記憶體143可以是ROM、FLASH記憶體、EEPROM、PROM或是EPROM等等。在其他實施例中,記憶體790若為揮發性記憶體,則所述揮發性記憶體可以由電池持續供應電源,以保持所述揮發性記憶體所儲存的資料。在另一實施例中,記憶體 790可以參照圖6B中關於記憶體145、記憶體146與開關147的相關說明而類推之。Memory 790 can also be any type of memory, such as non-volatile memory or volatile memory. For example, the memory 143 can be a ROM, a FLASH memory, an EEPROM, a PROM, an EPROM, or the like. In other embodiments, if the memory 790 is a volatile memory, the volatile memory can be continuously powered by the battery to maintain the data stored by the volatile memory. In another embodiment, the memory 790 can be analogized with reference to the description of memory 145, memory 146, and switch 147 in FIG. 6B.

圖7所示實施例可參照圖2的相關說明而類推之。Thunderbolt控制器單元740耦接至記憶體790。記憶體790包括主機模式軔體791以及端點設備模式軔體792。當Thunderbolt控制器單元740讀取並執行記憶體790內的主機模式軔體791時,Thunderbolt控制器單元740操作於主機模式。當Thunderbolt控制器單元740讀取並執行記憶體790內的端點設備模式軔體792時,Thunderbolt控制器單元740操作於端點設備模式。Thunderbolt控制器單元770耦接至記憶體760。記憶體760包括主機模式軔體761以及端點設備模式軔體762。類似於Thunderbolt控制器單元740切換操作模式的實施方式,Thunderbolt控制器單元770亦可以動態地改變操作模式為主機模式或端點設備模式。Thunderbolt控制器單元770與記憶體760的實現方式可以參照Thunderbolt控制器單元740與記憶體790的相關說明,因此不在此贅述。The embodiment shown in FIG. 7 can be analogized with reference to the related description of FIG. 2. The Thunderbolt controller unit 740 is coupled to the memory 790. The memory 790 includes a host mode body 791 and an endpoint device mode body 792. When Thunderbolt controller unit 740 reads and executes host mode body 791 within memory 790, Thunderbolt controller unit 740 operates in host mode. When the Thunderbolt controller unit 740 reads and executes the endpoint device mode body 792 within the memory 790, the Thunderbolt controller unit 740 operates in the endpoint device mode. The Thunderbolt controller unit 770 is coupled to the memory 760. The memory 760 includes a host mode body 761 and an endpoint device mode body 762. Similar to the implementation of the Thunderbolt controller unit 740 switching mode of operation, the Thunderbolt controller unit 770 can also dynamically change the mode of operation to host mode or endpoint device mode. The implementation of the Thunderbolt controller unit 770 and the memory 760 can be referred to the relevant description of the Thunderbolt controller unit 740 and the memory 790, and thus will not be described herein.

當Thunderbolt控制器單元740與770操作於主機模式時,第一切換電路250的共同端X1 ~X4 分別耦接至第一切換電路250的選擇端C1 ~C4 。第二切換電路260的共同端Y1 ~Y4 分別耦接至第二切換電路260的選擇端A5 ~A8 。第三切換電路710的選擇端D1 ~D4 分別耦接至第三切換電路710的共同端V1 ~V4 。第四切換電路720的選擇端N1 ~N4 分別耦接至第四切換電路720的共同端Z1 ~Z4 。如此一來, 核心單元210中的中央處理單元211可透過南橋晶片212與第一切換電路250使用週邊裝置221~224。中央處理單元211可透過第三切換電路710使用繪圖處理單元530。中央處理單元211可透過南橋晶片212、第二切換電路260與Thunderbolt控制器單元740使用Thunderbolt連接器730所耦接的外部Thunderbolt設備。中央處理單元211還可透過南橋晶片212、第四切換電路720與Thunderbolt控制器單元770使用Thunderbolt連接器780所耦接的外部Thunderbolt設備。因此,在主機模式下電子裝置700能提高資訊傳輸的速度。另外,由於Thunderbolt控制器單元740與Thunderbolt控制器單元770相互耦接,因此連接於Thunderbolt連接器730的外部Thunderbolt設備及連接於Thunderbolt連接器780的外部Thunderbolt設備可透過Thunderbolt控制器單元740與770互相傳輸資訊,以提高資訊傳輸的速度。When the Thunderbolt controller units 740 and 770 operate in the host mode, the common terminals X 1 -X 4 of the first switching circuit 250 are coupled to the selection terminals C 1 -C 4 of the first switching circuit 250, respectively. The common terminals Y 1 -Y 4 of the second switching circuit 260 are respectively coupled to the selection terminals A 5 -A 8 of the second switching circuit 260. The selection terminals D 1 -D 4 of the third switching circuit 710 are respectively coupled to the common terminals V 1 -V 4 of the third switching circuit 710. The selection terminals N 1 -N 4 of the fourth switching circuit 720 are respectively coupled to the common terminals Z 1 -Z 4 of the fourth switching circuit 720. In this way, the central processing unit 211 in the core unit 210 can use the peripheral devices 221 to 224 through the south bridge chip 212 and the first switching circuit 250. The central processing unit 211 can use the mapping processing unit 530 through the third switching circuit 710. The central processing unit 211 can pass through the south bridge wafer 212, the second switching circuit 260, and the Thunderbolt controller unit 740 using an external Thunderbolt device coupled to the Thunderbolt connector 730. The central processing unit 211 can also use an external Thunderbolt device coupled to the Thunderbolt connector unit 780 via the south bridge wafer 212, the fourth switching circuit 720, and the Thunderbolt controller unit 770. Therefore, the electronic device 700 can increase the speed of information transmission in the host mode. In addition, since the Thunderbolt controller unit 740 and the Thunderbolt controller unit 770 are coupled to each other, the external Thunderbolt device connected to the Thunderbolt connector 730 and the external Thunderbolt device connected to the Thunderbolt connector 780 can communicate with each other through the Thunderbolt controller unit 740 and 770. Transfer information to increase the speed of information transfer.

當Thunderbolt控制器單元740與770操作於端點設備模式時,中央處理單元211及/或南橋晶片212會被禁能。在另一實施例中,當Thunderbolt控制器單元740與770操作於端點設備模式時,中央處理單元211與南橋晶片212亦可在致能(或正常操作模式)情況下。在Thunderbolt控制器單元740與770操作於端點設備模式的情況下,第一切換電路250的共同端X1 ~X4 分別耦接至第一切換電路250的選擇端C5 ~C8 。第二切換電路260的共同端Y1 ~Y4 分別耦接至第二切換電路260的選擇端A1 ~A4 。第三切換電路 710的共同端V1 ~V4 分別耦接至第三切換電路710的選擇端D5 ~D8 。第四切換電路720的共同端Z1 ~Z4 分別耦接至第四切換電路720的選擇端N5 ~N8 。因此,外部的Thunderbolt主機(例如筆記型電腦)可透過Thunderbolt連接器730、Thunderbolt控制器單元740、第二切換電路260與第一切換電路250使用週邊裝置221~224。同理,外部的Thunderbolt主機可透過Thunderbolt連接器780、Thunderbolt控制器單元770、第四切換電路720與第三切換電路710使用繪圖處理單元530。因此,在端點設備模式下外部的Thunderbolt主機能與更多的週邊裝置相連。而且Thunderbolt連接器730及780所耦接的外部設備依然可直接互相傳輸資訊。When Thunderbolt controller units 740 and 770 operate in the endpoint device mode, central processing unit 211 and/or south bridge wafer 212 may be disabled. In another embodiment, when Thunderbolt controller units 740 and 770 are operating in an endpoint device mode, central processing unit 211 and south bridge wafer 212 may also be in an enabled (or normal mode of operation) condition. In the case where the Thunderbolt controller units 740 and 770 operate in the endpoint device mode, the common terminals X 1 -X 4 of the first switching circuit 250 are coupled to the selection terminals C 5 -C 8 of the first switching circuit 250, respectively. The common terminals Y 1 -Y 4 of the second switching circuit 260 are respectively coupled to the selection terminals A 1 -A 4 of the second switching circuit 260. The common terminals V 1 V V 4 of the third switching circuit 710 are respectively coupled to the selection terminals D 5 -D 8 of the third switching circuit 710. The common terminals Z 1 -Z 4 of the fourth switching circuit 720 are respectively coupled to the selection terminals N 5 -N 8 of the fourth switching circuit 720. Therefore, an external Thunderbolt host (for example, a notebook computer) can use the peripheral devices 221 to 224 through the Thunderbolt connector 730, the Thunderbolt controller unit 740, the second switching circuit 260, and the first switching circuit 250. Similarly, the external Thunderbolt host can use the graphics processing unit 530 through the Thunderbolt connector 780, the Thunderbolt controller unit 770, the fourth switching circuit 720, and the third switching circuit 710. Therefore, the external Thunderbolt host can be connected to more peripheral devices in the endpoint device mode. Moreover, the external devices coupled to the Thunderbolt connectors 730 and 780 can still directly transmit information to each other.

圖8為依據本發明一實施例的電子裝置800的功能方塊圖。電子裝置800與電子裝置100大致上相似,但電子裝置800更包括了微控制器(Micro-Controller)801。圖1至圖8所示實施例可以相互參照其相關說明而類推之。請參照圖8,微控制器801與第一切換電路150、第二切換電路160、核心單元110以及Thunderbolt控制器單元140耦接。FIG. 8 is a functional block diagram of an electronic device 800 in accordance with an embodiment of the present invention. The electronic device 800 is substantially similar to the electronic device 100, but the electronic device 800 further includes a microcontroller (Micro-Controller) 801. The embodiments shown in Figures 1 through 8 can be referred to each other with reference to their related descriptions. Referring to FIG. 8, the microcontroller 801 is coupled to the first switching circuit 150, the second switching circuit 160, the core unit 110, and the Thunderbolt controller unit 140.

當使用者要將電子裝置800操作在主機模式時,使用者可以透過操作介面下達模式切換指令給微控制器801。微控制器801依據所述模式切換指令而對應控制Thunderbolt控制器單元140、第一切換電路150與第二切換電路160。依據微控制器801的控制,第一切換電路150 使選擇端152與共同端151相互耦接,第二切換電路160使選擇端162與共同端161耦接。還有,微控制器801還會控制Thunderbolt控制器單元140的操作模式切換為主機模式。When the user wants to operate the electronic device 800 in the host mode, the user can issue a mode switching command to the microcontroller 801 through the operation interface. The microcontroller 801 correspondingly controls the Thunderbolt controller unit 140, the first switching circuit 150, and the second switching circuit 160 according to the mode switching instruction. According to the control of the microcontroller 801, the first switching circuit 150 The selection terminal 152 and the common terminal 151 are coupled to each other, and the second switching circuit 160 couples the selection terminal 162 to the common terminal 161. Also, the microcontroller 801 also controls the operation mode of the Thunderbolt controller unit 140 to switch to the host mode.

當使用者要將電子裝置800操作在端點設備模式時,使用者可以透過操作介面下達模式切換指令給微控制器801。微控制器801會依據所述模式切換指令而對應控制Thunderbolt控制器單元140、第一切換電路150與第二切換電路160。依據微控制器801的控制,第一切換電路150的選擇端153與共同端151耦接,第二切換電路160的選擇端163與共同端161耦接。還有,微控制器801還會控制Thunderbolt控制器單元140的操作模式切換為端點設備模式。另外,微控制器801會禁能核心單元110(例如控制核心單元110進入S3、S4或S5模式或處於其他禁能狀態的模式)。在另一實施例中,當Thunderbolt控制器單元140操作於端點設備模式時,微控制器801會控制核心單元110保持在致能(或正常操作模式)情況下。When the user wants to operate the electronic device 800 in the endpoint device mode, the user can issue a mode switching command to the microcontroller 801 through the operation interface. The microcontroller 801 correspondingly controls the Thunderbolt controller unit 140, the first switching circuit 150, and the second switching circuit 160 according to the mode switching instruction. According to the control of the microcontroller 801, the selection terminal 153 of the first switching circuit 150 is coupled to the common terminal 151, and the selection terminal 163 of the second switching circuit 160 is coupled to the common terminal 161. Also, the microcontroller 801 also controls the operation mode of the Thunderbolt controller unit 140 to switch to the endpoint device mode. In addition, the microcontroller 801 disables the core unit 110 (e.g., controls the core unit 110 to enter the S3, S4, or S5 mode or a mode that is in other disabled states). In another embodiment, when the Thunderbolt controller unit 140 is operating in the endpoint device mode, the microcontroller 801 controls the core unit 110 to remain in the enabled (or normal mode of operation) condition.

本領域之技術人員可以依照本實施例的教示,將本實施例之內容類推應用於前述圖1至圖7所示實施例中。例如,微控制器801還可應用於圖2、圖3、圖4、圖5、圖7所繪示的實施例中。A person skilled in the art can apply the content of the embodiment to the foregoing embodiment shown in FIG. 1 to FIG. 7 according to the teachings of the embodiment. For example, the microcontroller 801 can also be applied to the embodiments illustrated in FIGS. 2, 3, 4, 5, and 7.

圖9為依據本發明一實施例的電子裝置100的Thunderbolt模式切換方法的程序900的流程圖。請參照圖1與圖9,在步驟S901中,提供具有主機模式與端點設備模 式的Thunderbolt控制器單元140。在步驟S902中,判斷是否將Thunderbolt控制器單元140操作於主機模式。若步驟S902判斷要操作於主機模式,則進行步驟S903,否則進行步驟S904(亦即將Thunderbolt控制器單元140操作於端點設備模式)。9 is a flow chart of a routine 900 of a Thunderbolt mode switching method of an electronic device 100 in accordance with an embodiment of the present invention. Referring to FIG. 1 and FIG. 9, in step S901, a host mode and an endpoint device mode are provided. Thunderbolt controller unit 140. In step S902, it is determined whether the Thunderbolt controller unit 140 is operated in the host mode. If it is determined in step S902 that it is to operate in the host mode, then step S903 is performed, otherwise step S904 is performed (ie, the Thunderbolt controller unit 140 is operated in the endpoint device mode).

在步驟S903中,當Thunderbolt控制器單元140操作於主機模式時,將Thunderbolt控制器單元140耦接至電子裝置100的核心單元110,且將電子裝置100的週邊裝置120耦接至核心單元110。如此一來,核心單元110便可使用週邊裝置120以及Thunderbolt連接器130所連接的外部端點設備。In step S903, when the Thunderbolt controller unit 140 is operated in the host mode, the Thunderbolt controller unit 140 is coupled to the core unit 110 of the electronic device 100, and the peripheral device 120 of the electronic device 100 is coupled to the core unit 110. As such, the core unit 110 can use the peripheral device 120 and the external endpoint device to which the Thunderbolt connector 130 is connected.

在步驟S904中,當Thunderbolt控制器單元140操作於端點設備模式時,將Thunderbolt控制器單元140不耦接至核心單元110,將週邊裝置120不耦接至核心單元110,且將週邊裝置120耦接至Thunderbolt控制器單元140。如此一來,外部的Thunderbolt主機(例如筆記型電腦)可透過Thunderbolt連接器130與Thunderbolt控制器單元140使用週邊裝置120。In step S904, when the Thunderbolt controller unit 140 operates in the endpoint device mode, the Thunderbolt controller unit 140 is not coupled to the core unit 110, the peripheral device 120 is not coupled to the core unit 110, and the peripheral device 120 is It is coupled to the Thunderbolt controller unit 140. As such, an external Thunderbolt host (eg, a notebook computer) can use the peripheral device 120 with the Thunderbolt controller unit 140 via the Thunderbolt connector 130.

圖10為依據本發明另一實施例的電子裝置的Thunderbolt模式切換方法的程序1000的流程圖。程序1000的步驟大致上與程序900的步驟相同,差異在於步驟S904替換為步驟S1004。在步驟S1004比起步驟S904更包括了當Thunderbolt控制器單元140操作於端點設備模式時,禁能核心單元110。FIG. 10 is a flowchart of a procedure 1000 of a Thunderbolt mode switching method of an electronic device according to another embodiment of the present invention. The steps of the program 1000 are substantially the same as the steps of the program 900, with the difference that the step S904 is replaced with the step S1004. More than step S904, step S100 includes disabling the core unit 110 when the Thunderbolt controller unit 140 is operating in the endpoint device mode.

圖11為依據本發明另一實施例的電子裝置的 Thunderbolt模式切換方法的程序1100的流程圖。程序1100的步驟大致上與程序900的步驟相同,差異在於執行完成步驟S903後,會再執行步驟S1105,以及執行完成步驟S904後,會再執行步驟S1106。在步驟S1105中,Thunderbolt控制器單元140將會執行包括於Thunderbolt控制器單元140的記憶體中的主機模式韌體。在步驟S1106中,Thunderbolt控制器單元140將會執行包括於Thunderbolt控制器單元140的記憶體中的端點設備模式韌體。值得一提的是,在另一未繪示實施例中,步驟S904還可替換為步驟S1004。11 is an electronic device according to another embodiment of the present invention. Flowchart of the program 1100 of the Thunderbolt mode switching method. The steps of the program 1100 are substantially the same as the steps of the program 900. The difference is that after the step S903 is completed, the step S1105 is executed again, and after the step S904 is completed, the step S1106 is executed. In step S1105, the Thunderbolt controller unit 140 will execute the host mode firmware included in the memory of the Thunderbolt controller unit 140. In step S1106, the Thunderbolt controller unit 140 will execute the endpoint device mode firmware included in the memory of the Thunderbolt controller unit 140. It is worth mentioning that, in another embodiment not shown, step S904 can also be replaced with step S1004.

圖12為依據本發明另一實施例的電子裝置的Thunderbolt模式切換方法的程序1200的流程圖。程序1200中的步驟S901~S904皆與圖9相同。而在程序1200中,執行完成步驟S903後,會執行步驟S1205判斷原本Thunderbolt控制器單元140是否操作於主機模式,也就是判斷原本Thunderbolt控制器單元140是否執行主機模式韌體。若步驟S1205的判斷結果為是,則進入步驟S1206,保持原狀繼續由Thunderbolt控制器單元140執行主機模式軔體。若步驟S1205的判斷結果為否,則進入步驟S1207,重置Thunderbolt控制器單元140並使Thunderbolt控制器單元140執行主機模式軔體。FIG. 12 is a flow chart showing a procedure 1200 of a Thunderbolt mode switching method of an electronic device according to another embodiment of the present invention. Steps S901 to S904 in the program 1200 are the same as those in FIG. In the process 1200, after the step S903 is completed, step S1205 is executed to determine whether the original Thunderbolt controller unit 140 is operating in the host mode, that is, whether the original Thunderbolt controller unit 140 executes the host mode firmware. If the result of the determination in the step S1205 is YES, the flow proceeds to a step S1206, and the host mode continues to be executed by the Thunderbolt controller unit 140. If the decision result in the step S1205 is NO, the flow proceeds to a step S1207 to reset the Thunderbolt controller unit 140 and cause the Thunderbolt controller unit 140 to execute the host mode body.

而在執行完步驟S904後,還會再執行步驟S1205以判斷原本Thunderbolt控制器單元140是否執行主機模式韌體。若步驟S1205的判斷結果為是,則進入步驟S1208, 重置Thunderbolt控制器單元140並使Thunderbolt控制器單元140執行端點設備模式軔體。若步驟S1205的判斷結果為否,則進入步驟S1206,保持原狀繼續由Thunderbolt控制器單元140執行端點設備模式軔體。After step S904 is executed, step S1205 is further executed to determine whether the original Thunderbolt controller unit 140 executes the host mode firmware. If the result of the determination in step S1205 is YES, the process proceeds to step S1208. The Thunderbolt controller unit 140 is reset and the Thunderbolt controller unit 140 executes the endpoint device mode body. If the result of the determination in the step S1205 is NO, the process proceeds to a step S1206, and the endpoint device mode body is executed by the Thunderbolt controller unit 140 as it is.

綜上所述,本發明所提供的電子裝置及其Thunderbolt切換方法可利用切換第一切換電路與第二切換電路的選擇端與共同端之間的耦接關係以使Thunderbolt控制器單元操作於主機模式或端點設備模式。因此,不同於傳統的Thunderbolt控制器,本發明所提供的電子裝置其中的Thunderbolt控制器單元既可作為主機使用外部的端點設備,亦可作為端點設備由外界的使用者使用與Thunderbolt控制器單元耦接的週邊裝置。In summary, the electronic device and the Thunderbolt switching method provided by the present invention can utilize the coupling relationship between the selection end and the common end of the first switching circuit and the second switching circuit to operate the Thunderbolt controller unit on the host. Mode or endpoint device mode. Therefore, unlike the conventional Thunderbolt controller, the Thunderbolt controller unit of the electronic device provided by the present invention can be used as an external terminal device as a host, or as an endpoint device used by an external user and a Thunderbolt controller. A peripheral device to which the unit is coupled.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,故本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the invention, and any one of ordinary skill in the art can make some modifications and refinements without departing from the spirit and scope of the invention. The scope of the invention is defined by the scope of the appended claims.

100、200、300、400、500、700、800‧‧‧電子裝置100, 200, 300, 400, 500, 700, 800‧‧‧ electronic devices

110、210、310、410、510‧‧‧核心單元110, 210, 310, 410, 510‧‧‧ core units

111、112、121、141、142、311、312、321、411、412、511~513、516、531、E1 ~E4 、G1 ~G4 、P1 ~P12 、Q1 ~Q4 、R1 ~R4 、U1 ~U4 ‧‧‧PCIE連接端111, 112, 121, 141, 142, 311, 312, 321, 411, 412, 511 to 513, 516, 531, E 1 to E 4 , G 1 to G 4 , P 1 to P 12 , Q 1 to Q 4 , R 1 ~ R 4 , U 1 ~ U 4 ‧‧‧ PCIE connector

120、221~224、320‧‧‧週邊裝置120, 221~224, 320‧‧‧ peripheral devices

130、230、730、780‧‧‧Thunderbolt連接器130, 230, 730, 780‧‧‧Thunderbolt connectors

140、240、740、770‧‧‧Thunderbolt控制器單元140, 240, 740, 770‧‧‧Thunderbolt controller unit

143、760、790‧‧‧記憶體143, 760, 790‧‧‧ memory

143a、145a、761、791‧‧‧主機模式韌體143a, 145a, 761, 791‧‧‧ host mode firmware

143b、145b、762、792‧‧‧端點設備模式韌體143b, 145b, 762, 792‧‧‧ Endpoint device mode firmware

144‧‧‧Thunderbolt晶片144‧‧‧Thunderbolt chip

145‧‧‧第一記憶體145‧‧‧First memory

146‧‧‧第二記憶體146‧‧‧Second memory

147‧‧‧開關147‧‧‧ switch

147a、147b、152、153、162~164、166、522、523、A1 ~A8 、C1 ~C8 、D1 ~D8 、N1 ~N8 ‧‧‧選擇端147a, 147b, 152, 153, 162~164, 166, 522, 523, A 1 ~ A 8 , C 1 ~ C 8 , D 1 ~ D 8 , N 1 ~ N 8 ‧ ‧

147c、151、161、165、521、V1 ~V4 、X1 ~X4 、Y1 ~Y4 、Z1 ~Z4 ‧‧‧共同端147c, 151, 161, 165, 521, V 1 ~ V 4 , X 1 ~ X 4 , Y 1 ~ Y 4 , Z 1 ~ Z 4 ‧ ‧ common

150、250‧‧‧第一切換電路150, 250‧‧‧ first switching circuit

160、260‧‧‧第二切換電路160, 260‧‧‧ second switching circuit

211、313、413、515‧‧‧中央處理單元211, 313, 413, 515‧‧‧ central processing unit

212、514‧‧‧南橋晶片212, 514‧‧‧ South Bridge Wafer

322、414、530‧‧‧繪圖處理單元322, 414, 530‧‧‧Drawing Processing Unit

520、710‧‧‧第三切換電路520, 710‧‧‧ third switching circuit

720‧‧‧第四切換電路720‧‧‧fourth switching circuit

801‧‧‧微控制器801‧‧‧Microcontroller

900、1000、1100、1200‧‧‧程序900, 1000, 1100, 1200‧‧‧ procedures

S901~S904、S1004、S1105、S1106、S1205~S1208‧‧‧步驟S901~S904, S1004, S1105, S1106, S1205~S1208‧‧‧ steps

圖1為依據本發明一實施例之電子裝置的功能方塊示意圖。FIG. 1 is a functional block diagram of an electronic device according to an embodiment of the invention.

圖2為依照本發明一實施例之電子裝置的功能方塊示意圖。2 is a functional block diagram of an electronic device in accordance with an embodiment of the invention.

圖3為依照本發明一實施例之電子裝置的功能方塊示意圖。FIG. 3 is a functional block diagram of an electronic device according to an embodiment of the invention.

圖4為依照本發明一實施例之電子裝置的功能方塊示意圖。4 is a functional block diagram of an electronic device in accordance with an embodiment of the invention.

圖5為依照本發明一實施例之電子裝置的功能方塊示意圖。FIG. 5 is a functional block diagram of an electronic device according to an embodiment of the invention.

圖6A、6B為依照本發明實施例說明圖1所繪示之Thunderbolt控制器單元的功能方塊示意圖。6A and 6B are block diagrams showing the function of the Thunderbolt controller unit shown in FIG. 1 according to an embodiment of the invention.

圖7為依照本發明一實施例之電子裝置的功能方塊示意圖。FIG. 7 is a functional block diagram of an electronic device according to an embodiment of the invention.

圖8為依照本發明一實施例之電子裝置的功能方塊示意圖。FIG. 8 is a functional block diagram of an electronic device according to an embodiment of the invention.

圖9為依據本發明一實施例的電子裝置的Thunderbolt模式切換方法的流程圖。FIG. 9 is a flowchart of a Thunderbolt mode switching method of an electronic device according to an embodiment of the invention.

圖10為依據本發明一實施例的電子裝置的Thunderbolt模式切換方法的流程圖。FIG. 10 is a flowchart of a Thunderbolt mode switching method of an electronic device according to an embodiment of the invention.

圖11為依據本發明一實施例的電子裝置的Thunderbolt模式切換方法的流程圖。FIG. 11 is a flowchart of a Thunderbolt mode switching method of an electronic device according to an embodiment of the invention.

圖12為依據本發明一實施例的電子裝置的Thunderbolt模式切換方法的流程圖。FIG. 12 is a flowchart of a Thunderbolt mode switching method of an electronic device according to an embodiment of the invention.

100‧‧‧電子裝置100‧‧‧Electronic devices

110‧‧‧核心單元110‧‧‧ core unit

111、112、121、141‧‧‧PCIE連接端111, 112, 121, 141‧‧‧ PCIE connectors

120‧‧‧週邊裝置120‧‧‧ peripheral devices

130‧‧‧雷電連接器130‧‧‧Lightning connector

140‧‧‧雷電控制器單元140‧‧‧Lightning controller unit

152、153、162、163‧‧‧選擇端152, 153, 162, 163‧‧‧Selection

151、161‧‧‧共同端151, 161‧‧Common

150‧‧‧第一切換電路150‧‧‧First switching circuit

160‧‧‧第二切換電路160‧‧‧Second switching circuit

Claims (15)

一種電子裝置,包括:一核心單元,具有一第一高速週邊裝置元件互連(Peripheral Component Interconnection Express,PCIE)連接端與一第二PCIE連接端;一週邊裝置,具有一PCIE連接端;一雷電連接器;一雷電控制器單元,耦接至該雷電連接器,其中該雷電控制器單元具有一主機模式與一端點設備模式;一第一切換電路,其一第一共同端耦接至該週邊裝置的該PCIE連接端,該第一切換電路的一第一選擇端耦接至該核心單元的該第一PCIE連接端;以及一第二切換電路,其一第一共同端耦接至該雷電控制器單元的一第一PCIE連接端,該第二切換電路的一第一選擇端耦接至該核心單元的該第二PCIE連接端,以及該第二切換電路的一第二選擇端耦接至該第一切換電路的一第二選擇端。An electronic device comprising: a core unit having a first high-speed Peripheral Component Interconnection Express (PCIE) connection end and a second PCIE connection end; a peripheral device having a PCIE connection end; a lightning a lightning controller unit coupled to the lightning connector, wherein the lightning controller unit has a host mode and an endpoint device mode; a first switching circuit having a first common terminal coupled to the periphery a first selection end of the first switching circuit is coupled to the first PCIE connection end of the core unit; and a second switching circuit, a first common end of the device is coupled to the lightning a first PCIE connection end of the controller unit, a first selection end of the second switching circuit is coupled to the second PCIE connection end of the core unit, and a second selection end of the second switching circuit is coupled And a second selection end of the first switching circuit. 如申請專利範圍第1項所述之電子裝置,其中當該雷電控制器單元操作於該主機模式時,該第一切換電路的該第一共同端耦接至該第一切換電路的該第一選擇端,該第二切換電路的該第一共同端耦接至該第二切換電路的該第一選擇端;以及當該雷電控制器單元操作於該端點設備模式時,該第一切換電路的該第一共同端耦接至該第一切換電路的該第 二選擇端,該第二切換電路的該第一共同端耦接至該第二切換電路的該第二選擇端。The electronic device of claim 1, wherein the first common end of the first switching circuit is coupled to the first one of the first switching circuit when the lightning controller unit is operated in the host mode a first common end of the second switching circuit coupled to the first selection end of the second switching circuit; and the first switching circuit when the lightning controller unit operates in the terminal device mode The first common end is coupled to the first portion of the first switching circuit The second common end of the second switching circuit is coupled to the second selection end of the second switching circuit. 如申請專利範圍第1項所述之電子裝置,其中該核心單元包括一中央處理單元,該週邊裝置包括一繪圖處理單元;當該雷電控制器單元操作於該主機模式時,該繪圖處理單元經由該第一切換電路耦接至該中央處理單元,而該雷電控制器單元經由該第二切換電路耦接至該中央處理單元;以及當該雷電控制器單元操作於該端點設備模式時,該繪圖處理單元經由該第一切換電路與該第二切換電路耦接至該雷電控制器單元。The electronic device of claim 1, wherein the core unit comprises a central processing unit, the peripheral device comprises a graphics processing unit; and when the lightning controller unit is operated in the host mode, the graphics processing unit is The first switching circuit is coupled to the central processing unit, and the lightning controller unit is coupled to the central processing unit via the second switching circuit; and when the lightning controller unit is operating in the endpoint device mode, The graphics processing unit is coupled to the lightning controller unit via the first switching circuit and the second switching circuit. 如申請專利範圍第1項所述之電子裝置,其中該核心單元包括一北橋晶片,該週邊裝置包括一繪圖處理單元;當該雷電控制器單元操作於該主機模式時,該繪圖處理單元經由該第一切換電路耦接至該北橋晶片,而該雷電控制器單元經由該第二切換電路耦接至該北橋晶片;以及當該雷電控制器單元操作於該端點設備模式時,該繪圖處理單元經由該第一切換電路與該第二切換電路耦接至該雷電控制器單元。The electronic device of claim 1, wherein the core unit comprises a north bridge chip, the peripheral device comprises a graphics processing unit; and when the lightning controller unit is operated in the host mode, the graphics processing unit a first switching circuit coupled to the north bridge chip, the lightning controller unit coupled to the north bridge wafer via the second switching circuit; and the graphics processing unit when the lightning controller unit is operating in the endpoint device mode The first switching circuit and the second switching circuit are coupled to the lightning controller unit. 如申請專利範圍第1項所述之電子裝置,其中該核心單元包括一南橋晶片,而該第一切換電路的該第一選擇端耦接至該南橋晶片;當該雷電控制器單元操作於該主機模式時,該週邊裝置經由該第一切換電路耦接至該南橋晶片,而該雷電控制器單元經由該第二切換電路耦接至該南橋晶片;以及當該雷電控制器單元操作於該端點設備模式 時,該週邊裝置經由該第一切換電路與該第二切換電路耦接至該雷電控制器單元。The electronic device of claim 1, wherein the core unit comprises a south bridge chip, and the first selection end of the first switching circuit is coupled to the south bridge wafer; when the lightning controller unit is operated In the host mode, the peripheral device is coupled to the south bridge chip via the first switching circuit, and the lightning controller unit is coupled to the south bridge wafer via the second switching circuit; and when the lightning controller unit is operated at the end Point device mode The peripheral device is coupled to the lightning controller unit via the first switching circuit and the second switching circuit. 如申請專利範圍第5項所述之電子裝置,其中該核心單元還包括一中央處理單元,而該電子裝置更包括:一繪圖處理單元,具有一PCIE連接端;以及一第三切換電路,其一第一共同端耦接至該繪圖處理單元的PCIE連接端,該第三切換電路的一第一選擇端耦接至該中央處理單元,而該第三切換電路的一第二選擇端耦接至該第二切換電路的一第三選擇端;其中該第二切換電路的一第二共同端耦接至該雷電控制器單元的一第二PCIE連接端;當該雷電控制器單元操作於該主機模式時,該繪圖處理單元經由該第三切換電路耦接至該中央處理單元;以及當該雷電控制器單元操作於該端點設備模式時,該繪圖處理單元經由該第三切換電路與該第二切換電路耦接至該雷電控制器單元。The electronic device of claim 5, wherein the core unit further comprises a central processing unit, and the electronic device further comprises: a graphics processing unit having a PCIE connection; and a third switching circuit A first common end is coupled to the PCIE connection end of the graphics processing unit, a first selection end of the third switching circuit is coupled to the central processing unit, and a second selection end of the third switching circuit is coupled a second selection end of the second switching circuit; wherein a second common end of the second switching circuit is coupled to a second PCIE connection end of the lightning controller unit; when the lightning controller unit is operated In the host mode, the graphics processing unit is coupled to the central processing unit via the third switching circuit; and when the lightning controller unit is operating in the endpoint device mode, the graphics processing unit is coupled to the third switching circuit The second switching circuit is coupled to the lightning controller unit. 如申請專利範圍第1項所述之電子裝置,其中該雷電控制器單元包括:一記憶體,其內容包含一主機模式韌體以及一端點設備模式韌體;以及一雷電控制晶片,耦接至該第二切換電路的該第一共同端與該記憶體;其中當該雷電控制晶片執行該主機模式韌體時,該雷電控制器單元操作於該主機模式;以及當該雷電控制晶片 執行該端點設備模式韌體時,該雷電控制器單元操作於該端點設備模式。The electronic device of claim 1, wherein the lightning controller unit comprises: a memory including a host mode firmware and an end device mode firmware; and a lightning control chip coupled to the The first common end of the second switching circuit and the memory; wherein when the lightning control chip executes the host mode firmware, the lightning controller unit operates in the host mode; and when the lightning control chip When the endpoint device mode firmware is executed, the lightning controller unit operates in the endpoint device mode. 如申請專利範圍第7項所述之電子裝置,其中該雷電控制晶片被重置後執行該主機模式韌體,以從該端點設備模式切換至該主機模式;以及該雷電控制晶片被重置後執行該端點設備模式韌體,以從該主機模式切換至該端點設備模式。The electronic device of claim 7, wherein the lightning control chip is reset to execute the host mode firmware to switch from the endpoint device mode to the host mode; and the lightning control chip is reset The endpoint device mode firmware is then executed to switch from the host mode to the endpoint device mode. 如申請專利範圍第1項所述之電子裝置,其中該雷電控制器單元包括:一雷電控制晶片,耦接至該第二切換電路的該第一共同端;一第一記憶體,其內容包含一主機模式韌體;一第二記憶體,其內容包含一端點設備模式韌體;以及一開關,該開關的一第一選擇端耦接至該第一記憶體,該開關的一第二選擇端耦接至該第二記憶體,該開關的一共同端耦接至該雷電控制晶片;其中當該雷電控制晶片經由該開關讀取並執行該主機模式韌體時,該雷電控制器單元操作於該主機模式;以及當該雷電控制晶片經由該開關讀取並執行該端點設備模式韌體時,該雷電控制器單元操作於該端點設備模式。The electronic device of claim 1, wherein the lightning controller unit comprises: a lightning control chip coupled to the first common end of the second switching circuit; a first memory, the content of which comprises a host mode firmware; a second memory, the content of which includes an endpoint device mode firmware; and a switch, a first selection end of the switch coupled to the first memory, a second selection of the switch The end is coupled to the second memory, a common end of the switch is coupled to the lightning control chip; wherein the lightning controller unit operates when the lightning control chip reads and executes the host mode firmware via the switch In the host mode; and when the lightning control chip reads and executes the endpoint device mode firmware via the switch, the lightning controller unit operates in the endpoint device mode. 如申請專利範圍第1項所述之電子裝置,其中該週邊裝置包括一通用序列匯排流晶片、一無線區域網路晶片或一外部串列進階技術附接晶片。The electronic device of claim 1, wherein the peripheral device comprises a universal serial bus, a wireless area network chip or an external serial advanced technology attached wafer. 一種電子裝置的雷電連接器之模式切換方法,包括:提供一雷電控制器單元,其中該雷電控制器單元具有一主機模式與一端點設備模式;當該雷電控制器單元操作於該主機模式時,將該雷電控制器單元耦接至該電子裝置的一核心單元,且將該電子裝置的一週邊裝置耦接至該核心單元;以及當該雷電控制器單元操作於該端點設備模式時,將該週邊裝置耦接至該雷電控制器單元。A mode switching method for a lightning connector of an electronic device, comprising: providing a lightning controller unit, wherein the lightning controller unit has a host mode and an endpoint device mode; when the lightning controller unit operates in the host mode, Coupling the lightning controller unit to a core unit of the electronic device, and coupling a peripheral device of the electronic device to the core unit; and when the lightning controller unit operates in the endpoint device mode, The peripheral device is coupled to the lightning controller unit. 如申請專利範圍第11項所述電子裝置的雷電連接器之模式切換方法,其中當該雷電控制器單元操作於該端點設備模式時,該核心單元被禁能。The method for switching a lightning connector of an electronic device according to claim 11, wherein the core unit is disabled when the lightning controller unit operates in the endpoint device mode. 如申請專利範圍第11項所述電子裝置的雷電連接器之模式切換方法,更包括:當該雷電控制器單元執行一主機模式韌體時,該雷電控制器單元操作於該主機模式;以及當該雷電控制器單元執行該端點設備模式韌體時,該雷電控制器單元操作於該端點設備模式。The method for switching a lightning connector of an electronic device according to claim 11, further comprising: when the lightning controller unit executes a host mode firmware, the lightning controller unit operates in the host mode; When the lightning controller unit executes the endpoint device mode firmware, the lightning controller unit operates in the endpoint device mode. 如申請專利範圍第13項所述電子裝置的雷電連接器之模式切換方法,更包括:重置該雷電控制器單元以及由該雷電控制器單元執行該主機模式韌體,以從該端點設備模式切換至該主機模式;以及 重置該雷電控制器單元以及由該雷電控制器單元執行該端點設備模式韌體,以從該主機模式切換至該端點設備模式。The method for switching a lightning connector of an electronic device according to claim 13 , further comprising: resetting the lightning controller unit and executing the host mode firmware by the lightning controller unit to obtain the terminal device Switching mode to this host mode; The lightning controller unit is reset and the endpoint device mode firmware is executed by the lightning controller unit to switch from the host mode to the endpoint device mode. 如申請專利範圍第11項所述電子裝置的雷電連接器之模式切換方法,其中該週邊裝置包括一繪圖處理單元、一通用序列匯排流晶片、一無線區域網路晶片或一外部串列進階技術附接晶片或任一PCIE裝置。The method for switching a lightning connector of an electronic device according to claim 11, wherein the peripheral device comprises a drawing processing unit, a universal serial bus, a wireless area network chip or an external serial The stage technology attaches a wafer or any PCIE device.
TW101124809A 2011-12-02 2012-07-10 Electronic device and method for switching mode of thunderbolt connector thereof TWI461921B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP12193446.7A EP2600255B1 (en) 2011-12-02 2012-11-20 Electronic device and method for switching modes of thunderbolt connector thereof
US13/684,141 US9081909B2 (en) 2011-12-02 2012-11-21 Electronic device and method for switching modes of thunderbolt connector thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US201161566006P 2011-12-02 2011-12-02

Publications (2)

Publication Number Publication Date
TW201324162A TW201324162A (en) 2013-06-16
TWI461921B true TWI461921B (en) 2014-11-21

Family

ID=49032954

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101124809A TWI461921B (en) 2011-12-02 2012-07-10 Electronic device and method for switching mode of thunderbolt connector thereof

Country Status (1)

Country Link
TW (1) TWI461921B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9952998B2 (en) 2015-08-10 2018-04-24 Aten International Co., Ltd. Thunderbolt sharing console and switching method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040230735A1 (en) * 2003-05-15 2004-11-18 Moll Laurent R. Peripheral bus switch having virtual peripheral bus and configurable host bridge
CN1624674A (en) * 2003-11-06 2005-06-08 戴尔产品公司 Dynamic Reconfiguration of PCI Express Links
US20060168377A1 (en) * 2005-01-21 2006-07-27 Dell Products L.P. Reallocation of PCI express links using hot plug event
EP1691271A1 (en) * 2005-02-14 2006-08-16 ASUSTeK Computer Inc. Mother-board for two PCI Express graphics cards
TW200945054A (en) * 2008-04-30 2009-11-01 Asustek Comp Inc A computer system with data accessing bridge circuit
CN201859435U (en) * 2010-11-23 2011-06-08 英业达股份有限公司 Adapter for PCI Express interface

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040230735A1 (en) * 2003-05-15 2004-11-18 Moll Laurent R. Peripheral bus switch having virtual peripheral bus and configurable host bridge
CN1624674A (en) * 2003-11-06 2005-06-08 戴尔产品公司 Dynamic Reconfiguration of PCI Express Links
US20060168377A1 (en) * 2005-01-21 2006-07-27 Dell Products L.P. Reallocation of PCI express links using hot plug event
EP1691271A1 (en) * 2005-02-14 2006-08-16 ASUSTeK Computer Inc. Mother-board for two PCI Express graphics cards
TW200945054A (en) * 2008-04-30 2009-11-01 Asustek Comp Inc A computer system with data accessing bridge circuit
CN201859435U (en) * 2010-11-23 2011-06-08 英业达股份有限公司 Adapter for PCI Express interface

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9952998B2 (en) 2015-08-10 2018-04-24 Aten International Co., Ltd. Thunderbolt sharing console and switching method thereof

Also Published As

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

Similar Documents

Publication Publication Date Title
US9081909B2 (en) Electronic device and method for switching modes of thunderbolt connector thereof
US20060056401A1 (en) Peripheral sharing USB hub
US20060227759A1 (en) Peripheral Sharing USB Hub
KR102147629B1 (en) Flexible server system
US20060059293A1 (en) Universal serial bus switching hub
CN103870429B (en) Based on the igh-speed wire-rod production line plate of embedded gpu
US20070180181A1 (en) USB interface provided with host/device function and its control method
US8683085B1 (en) USB interface configurable for host or device mode
US11232060B2 (en) Method, apparatus and system for power supply policy exchange on a bus
TW201901455A (en) Host-to-host automatic switching of universal serial bus
WO2024082671A1 (en) Method and apparatus for using pcie interface compatibly with yinshan card, non-volatile readable storage medium, and device
TWI461921B (en) Electronic device and method for switching mode of thunderbolt connector thereof
CN112882759A (en) Control method and device and electronic equipment
CN104699647A (en) Method and system for operating a dual chipset network interface controller
TW201608367A (en) Chip device and electronic system thereof
CN101727329B (en) Motherboard system, storage devices and connectors to activate this motherboard system
CN114328329A (en) Communication module design method and device compatible with master and slave devices
US20180143928A1 (en) Switch system and operation method thereof
CN119127094A (en) Data access method, heterogeneous system, electronic device, medium and program product
US20060095626A1 (en) Multifunction adapter
JP5492844B2 (en) Interface connection method and computer
CN107436852B (en) Interface switching device and terminal equipment
JP2008065364A (en) Extension system, add-in card, and external device
JP5840586B2 (en) Power saving system and image forming apparatus
WO2023155363A1 (en) Server dynamic hot backup method, apparatus and device, and storage medium