TWI405127B - Methods for managing id information of a chip - Google Patents

Methods for managing id information of a chip Download PDF

Info

Publication number
TWI405127B
TWI405127B TW98146411A TW98146411A TWI405127B TW I405127 B TWI405127 B TW I405127B TW 98146411 A TW98146411 A TW 98146411A TW 98146411 A TW98146411 A TW 98146411A TW I405127 B TWI405127 B TW I405127B
Authority
TW
Taiwan
Prior art keywords
chip
wafer
storage space
readable
information storage
Prior art date
Application number
TW98146411A
Other languages
Chinese (zh)
Other versions
TW201123014A (en
Inventor
Chung Ching Huang
Hao Lin Lin
Jia Hung Wang
I Hsin Chen
Original Assignee
Via Tech 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 Via Tech Inc filed Critical Via Tech Inc
Priority to TW98146411A priority Critical patent/TWI405127B/en
Publication of TW201123014A publication Critical patent/TW201123014A/en
Application granted granted Critical
Publication of TWI405127B publication Critical patent/TWI405127B/en

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

A method for managing ID information of a chip. The method provides a readable/writable buffer in the chip, and provides an idle space as a chip information space in a basic I/O system (BIOS) memory. The method further stores ID information of the chip in the readable/writable buffer and, in the meantime, calls a first software system management interrupt (SMI). Triggered by the first software SMI, the BIOS firmware copies the content stored in the readable/writable buffer and reproduces it in the chip information space of the BIOS memory. Thus, before using the chip, the ID information of the chip can be restored based on the data stored in the chip information space of the BIOS memory.

Description

晶片之身分資訊的管理方法Management method of wafer identity information

本發明係有關於一種儲存與載入晶片身分(ID)資訊的方法。The present invention relates to a method of storing and loading wafer identity (ID) information.

一般網路晶片(如區域網路(LAN)晶片)、或傳輸介面晶片(如1394晶片)會有其專屬的身分(ID)資訊。以LAN晶片為例,其身分資訊可能為:物理位址(PHY ID)、實體位址(MAC address)、製造商資訊(vendor ID)…等。傳統技術通常得針對每一個晶片配置一個非揮發性記憶體,例如,可抹除可編程唯讀記憶體(EEPROM),以儲存各晶片的該些身分資訊。於系統掉電時,該些身分資訊會儲存在對應的非揮發性記憶體中。待系統上電後,該些身分資訊則會從該些非揮發性記憶體載入各晶片內的特徵暫存器,使該些晶片在運作的期間得以提供本身的身分資訊。A typical network chip (such as a local area network (LAN) chip) or a transport interface chip (such as a 1394 chip) has its own unique identity (ID) information. Taking a LAN chip as an example, the identity information may be: physical address (PHY ID), physical address (MAC address), manufacturer information (vendor ID), and the like. Conventional techniques typically have a non-volatile memory configured for each wafer, for example, a programmable read-only memory (EEPROM) can be erased to store the identity information for each wafer. When the system is powered down, the identity information is stored in the corresponding non-volatile memory. After the system is powered on, the identity information is loaded from the non-volatile memory into the feature registers in each chip, so that the chips can provide their own identity information during operation.

第1圖以一主機板100為例,顯示傳統技術儲存與載入各晶片身分資訊的方法。主機板100上具有多個非揮發性記憶體,例如包括:針對一LAN晶片106所配置的一EEPROM 108、針對一1394晶片110所配置的一EEPROM 112。甚至,若主機板100上更安裝有其他需要身分資訊的晶片,主機板100上所安裝的EEPROM數量會更多。FIG. 1 shows a method of storing and loading information about each wafer identity by a conventional motherboard 100 as an example. The motherboard 100 has a plurality of non-volatile memories, including, for example, an EEPROM 108 disposed for a LAN wafer 106 and an EEPROM 112 configured for a 1394 wafer 110. Even if there are other chips on the motherboard 100 that require identity information, the number of EEPROMs installed on the motherboard 100 will be more.

以LAN晶片106為例,LAN晶片106包括一特徵暫存器114,且提供一EEPROM存取介面116。對應該LAN晶片106之LAN驅動程式/工具模組118會於主機板100出廠時將LAN晶片106的身分資訊經該EEPROM存取介面116儲存到專屬於該LAN晶片106的EEPROM 108中(如箭頭120與122所示)。待主機板100上電後,EEPROM存取介面116會讀取EEPROM 108以獲得LAN晶片106的身分資訊(箭頭124所示),且接著將讀取到的內容載入特徵暫存器114中(如箭頭126所示)。根據特徵暫存器114內的值,工作中的LAN晶片106可隨時提供其自身的身分資訊。Taking LAN chip 106 as an example, LAN chip 106 includes a feature register 114 and provides an EEPROM access interface 116. The LAN driver/tool module 118 corresponding to the LAN chip 106 stores the identity information of the LAN chip 106 through the EEPROM access interface 116 to the EEPROM 108 dedicated to the LAN chip 106 when the motherboard 100 is shipped (such as an arrow). 120 and 122). After the motherboard 100 is powered up, the EEPROM access interface 116 reads the EEPROM 108 to obtain the identity information of the LAN wafer 106 (shown by arrow 124), and then loads the read content into the feature register 114 ( As indicated by arrow 126). Based on the values in the feature register 114, the active LAN chip 106 can provide its own identity information at any time.

同樣地,1394晶片110身分資訊的儲存與載入也是以類似技術實現。如圖中該部分箭頭所示,1394晶片的身分資訊會由1394驅動程式/工具模組128經EEPROM存取介面130儲存至專屬1394晶片110之EEPROM 112。當主機板100上電,EEPROM存取介面130會讀取EEPROM 112以取得1394晶片之身分資訊,且將之載入1394晶片110的特徵暫存器132,使工作中的1394晶片110得以隨時提供其本身的身分資訊。Similarly, the storage and loading of 1394 wafer 110 identity information is also implemented in a similar technique. As indicated by the portion of the arrow in the figure, the identity information of the 1394 chip is stored by the 1394 driver/tool module 128 via the EEPROM access interface 130 to the EEPROM 112 of the dedicated 1394 chip 110. When the motherboard 100 is powered on, the EEPROM access interface 130 reads the EEPROM 112 to obtain the identity information of the 1394 chip, and loads it into the feature register 132 of the 1394 chip 110, so that the working 1394 chip 110 can be provided at any time. Its own identity information.

觀察第1圖之技術,可發現傳統主機板100不僅得為其上晶片(如106、110)配置專屬的EEPROM(如108、112),該些晶片(106、110)也必須設計有EEPROM存取介面(如116、130),不僅結構複雜,也相當地耗費成本。Observing the technique of FIG. 1, it can be found that the conventional motherboard 100 not only has to configure its own EEPROM (such as 108, 112) for its upper chips (such as 106, 110), and these chips (106, 110) must also be designed with EEPROM storage. The interface (such as 116, 130) is not only complicated in structure, but also costly.

本發明揭露晶片身分資訊的管理方法。The invention discloses a method for managing wafer identity information.

在一種實施方式中,該方法包括:令一晶片提供一可讀寫緩衝器;令一BIOS記憶體提供一晶片資訊儲存空間;將該晶片之身分資訊輸入該晶片之上述可讀寫緩衝器;且呼叫一第一系統管理中斷,以驅動一BIOS韌體將該晶片的上述可讀寫緩衝器之內容複製至該BIOS記憶體的上述晶片資訊儲存空間,以供後續使用該晶片前將該晶片之身分資訊載入該晶片內部。In one embodiment, the method includes: providing a readable and writable buffer for a chip; causing a BIOS memory to provide a wafer information storage space; and inputting the identity information of the chip to the readable and writable buffer of the chip; And calling a first system management interrupt to drive a BIOS firmware to copy the contents of the readable and writable buffer of the chip to the chip information storage space of the BIOS memory for subsequent use of the wafer The identity information is loaded inside the wafer.

在另一種實施方式中,本案揭露的晶片身分資訊的管理方法包括:令一晶片提供一可讀寫緩衝器;令一BIOS記憶體提供一晶片資訊儲存空間儲存該晶片的身分資訊;於開機時,以一BIOS韌體將該BIOS記憶體的上述晶片資訊儲存空間的內容複製至該晶片的上述可讀寫緩衝器中,以經該可讀寫緩衝器填入該晶片內部。In another embodiment, the method for managing the wafer identity information disclosed in the present disclosure includes: providing a readable and writable buffer for a chip; and causing a BIOS memory to provide a wafer information storage space for storing identity information of the wafer; And copying, by a BIOS firmware, the content of the chip information storage space of the BIOS memory to the readable and writable buffer of the chip, and filling the inside of the chip via the readable and writable buffer.

以下列舉多個實施方式與相關圖示以幫助了解本發明。A number of embodiments and related illustrations are listed below to aid in understanding the invention.

以下內容包括本發明多種實施方式,其內容並非用來限定本發明範圍。本發明實際之範圍仍應當以申請專利範圍之敘述為主。The following content includes various embodiments of the invention, and is not intended to limit the scope of the invention. The actual scope of the invention should still be based on the description of the scope of the patent application.

本案揭露一種儲存與載入晶片身分資訊的技術,第2圖以一主機板200為例,圖解該技術的實行架構。主機板200上包括有一基本輸入輸出系統(BIOS)記憶體204(如BIOS ROM)以及多個晶片(圖中所示之LAN晶片206、1394晶片210)。BIOS記憶體204上除了紀錄有BIOS韌體的影像檔202外,其餘閒置空間更規劃為「晶片資訊儲存空間」-例如,針對LAN晶片206所規劃的LAN資訊儲存空間240,或針對1394晶片210所規劃的1394資訊儲存空間242,無論是LAN資訊儲存空間240還是1394資訊儲存空間242,都是被保護的特定位址空間,其不會被BIOS韌體的影像檔202等資料所覆蓋。此外,LAN晶片206除了具有傳統技術揭露的特徵暫存器214外,更包括一可讀寫緩衝器244;而1394晶片210除了具有傳統技術揭露的特徵暫存器232外,更包括一可讀寫緩衝器246。圖2更顯示主機板上各晶片所對應的晶片驅動程式/工具模組-對應LAN晶片206的一LAN驅動程式/工具模組218、與對應1394晶片210的一1394驅動程式/工具模組228。此外,圖2顯示本案架構更應用到BIOS韌體248。BIOS韌體248的影像檔即儲存在BIOS記憶體204中的影像檔202。The present invention discloses a technique for storing and loading wafer identity information. FIG. 2 illustrates a implementation architecture of the technology by taking a motherboard 200 as an example. The motherboard 200 includes a basic input/output system (BIOS) memory 204 (such as a BIOS ROM) and a plurality of wafers (LAN chip 206, 1394 wafer 210 shown). In addition to the image file 202 in which the BIOS firmware is recorded on the BIOS memory 204, the remaining free space is more planned as a "wafer information storage space" - for example, the LAN information storage space 240 planned for the LAN chip 206, or for the 1394 wafer 210 The planned 1394 information storage space 242, whether it is the LAN information storage space 240 or the 1394 information storage space 242, is a protected specific address space, which is not covered by the image file 202 of the BIOS firmware. In addition, the LAN chip 206 includes a readable and writable buffer 244 in addition to the feature register 214 disclosed in the prior art; and the 1394 chip 210 includes a readable register 232 disclosed in the prior art, and includes a readable Write buffer 246. 2 further shows a chip driver/tool module corresponding to each chip on the motherboard - a LAN driver/tool module 218 corresponding to the LAN chip 206, and a 1394 driver/tool module 228 corresponding to the 1394 chip 210. . In addition, Figure 2 shows that the architecture of the present application is more applicable to the BIOS firmware 248. The image file of BIOS firmware 248 is the image file 202 stored in BIOS memory 204.

圖2以實線箭頭顯示各晶片之身分資訊之儲存與載入流向,並以虛線箭頭顯示本案揭露的一第一系統管理中斷(system management interrupt,SMI)呼叫,該第一SMI為本發明之一特定系統管理中斷,其功能詳述如後。此外,圖2以粗細體箭頭區別LAN晶片206與1394晶片210之相關技術。FIG. 2 shows the storage and loading flow of the identity information of each chip by solid arrows, and shows a first system management interrupt (SMI) call disclosed in the present invention by a dashed arrow. The first SMI is the present invention. A specific system management interrupt, its function is detailed as follows. Further, FIG. 2 distinguishes the related art of the LAN wafer 206 from the 1394 wafer 210 by the thick and thin arrows.

此段參閱粗體箭頭部分,討論LAN晶片206之例子。在主機板200出廠之際或之後需更新LAN晶片206之身分資訊時,藉由LAN驅動程式/工具模組218將LAN晶片206之身分資訊填入LAN晶片206的可讀寫緩衝器244,且令該LAN驅動程式/工具模組218呼叫一第一SMI以觸發BIOS韌體248動作(如虛線箭頭250)。經該第一SMI觸發,BIOS韌體248將LAN晶片206可讀寫緩衝器244暫存的LAN晶片身分資訊讀出、複製至BIOS記憶體204的LAN資訊儲存空間240,以藉由BIOS記憶體204的非揮發性儲存LAN晶片206之身分資訊。當主機板200正常上電,BIOS韌體248會在其開機程式中將BIOS記憶體204內LAN資料儲存空間240所儲存的LAN晶片身分資訊讀出且複製到LAN晶片206的可讀寫緩衝器244,再自該可讀寫緩衝器244填入LAN晶片206內,舉例而言可填入LAN晶片206內之特徵暫存器214,使LAN晶片206在工作期間可隨時提供本身之身分資訊。This section refers to the bold arrow section and discusses an example of a LAN wafer 206. When the identity information of the LAN chip 206 needs to be updated at or after the motherboard 200 is shipped from the factory, the LAN driver/tool module 218 fills the identity information of the LAN chip 206 into the readable and writable buffer 244 of the LAN chip 206, and The LAN driver/tool module 218 is caused to call a first SMI to trigger a BIOS firmware 248 action (e.g., dashed arrow 250). After the first SMI is triggered, the BIOS firmware 248 reads and copies the LAN chip identity information temporarily stored in the LAN chip 206 readable and writable buffer 244 to the LAN information storage space 240 of the BIOS memory 204 to be used by the BIOS memory. The identity information of the non-volatile storage LAN wafer 206 of 204. When the motherboard 200 is powered on normally, the BIOS firmware 248 reads and copies the LAN wafer identity information stored in the LAN data storage space 240 in the BIOS memory 204 to the readable and writable buffer of the LAN chip 206 in its booting program. The 244 is further filled into the LAN chip 206 from the readable and writable buffer 244. For example, the feature register 214 in the LAN chip 206 can be filled in, so that the LAN chip 206 can provide its own identity information at any time during operation.

類似的技術也可應用於1394晶片210上。如圖2細體箭頭所示,在主機板200出廠前或之後需更新1394晶片210之身分資訊時,藉由1394驅動程式/工具模組228可將1394晶片210的身分資訊輸入且暫存在1394晶片210可讀寫緩衝器246中,且如虛線箭頭所示以1394驅動程式/工具模組228發出另一第一SMI驅動BIOS韌體248將可讀寫緩衝器246暫存的1394晶片身分資訊讀出且複製至BIOS記憶體204內的1394資訊儲存空間242,使主機板200即使掉電也能夠保有1394晶片210的身分資訊。主機板200正常上電時,BIOS韌體248會在其所實行的開機程式中將1394晶片的身分資訊自BIOS記憶體204內該1394資訊儲存空間242讀出且複製到1394晶片210的可讀寫緩衝器246,以由該可讀寫緩衝器246填入1394晶片210內,舉例而言可填入1394晶片210內之特徵暫存器232,使1394晶片210有能力提供本身的身分資訊。A similar technique can also be applied to the 1394 wafer 210. As shown by the thin arrow in FIG. 2, when the identity information of the 1394 chip 210 needs to be updated before or after the motherboard 200 is shipped, the identity information of the 1394 chip 210 can be input and temporarily stored in the 1394 by the 1394 driver/tool module 228. The wafer 210 can be read and written in the buffer 246, and the 1394 driver/tool module 228 issues another 1394 chip identity information temporarily stored in the readable and writable buffer 246 by the 1394 driver/tool module 228 as indicated by the dashed arrow. The 1394 information storage space 242 in the BIOS memory 204 is read and copied, so that the motherboard 200 can retain the identity information of the 1394 wafer 210 even if the power is turned off. When the motherboard 200 is powered on normally, the BIOS firmware 248 reads the identity information of the 1394 chip from the 1394 information storage space 242 in the BIOS memory 204 and copies it to the 1394 chip 210 in the boot program that is implemented. The buffer 246 is written to fill the 1394 wafer 210 by the readable and writable buffer 246. For example, the feature register 232 in the 1394 chip 210 can be filled to enable the 1394 chip 210 to provide its own identity information.

此外,除了上述LAN晶片206與1394晶片210之應用,其他需要配有身分資訊的晶片也可採用上述技術。In addition, in addition to the applications of the above-described LAN wafer 206 and 1394 wafer 210, other wafers requiring identity information may also employ the above techniques.

與圖1之傳統技術相較,圖2技術不再為各晶片配置專屬的EEPROM,而是改用BIOS記憶體204的閒置空間(如空間240、242)儲存晶片的身分資訊。此外,存取BIOS記憶體204該些閒置空間(240、242)的動作是由BIOS韌體248實現。由於BIOS韌體248通常具有完整的函式可與主機板200上的各裝置溝通,因此,相較於圖1傳統技術,圖2技術無需在各晶片內另行設計EEPROM存取介面(如圖1各晶片中的EEPROM存取介面116與130)。圖2技術僅需在晶片中設置可讀取緩衝器(如244、246)、令晶片驅動程式/工具模組(218、228)得以呼叫第一SMI(如圖2虛線250、252示意)、令BIOS韌體248得以實行上述第一SMI、以及設計BIOS韌體248的開機程式即可完成圖2之技術內容。圖2之技術中,在進行晶片身分資訊之更新動作時,晶片驅動程式/工具模組(218、228)只需將身分資訊輸入可讀取緩衝器(如244、246)之後觸發第一SMI,剩下的更新動作均由BIOS韌體248完成,晶片驅動程式/工具模組(218、228)無需直接對BIOS記憶體204進行資料存取的動作。相較於圖1傳統技術,圖2技術令主機板架構更為簡潔,且可省去EEPROM的成本,且實現方式簡單易行。Compared with the conventional technique of FIG. 1, the technique of FIG. 2 no longer configures a dedicated EEPROM for each wafer, but instead uses the free space of the BIOS memory 204 (eg, spaces 240, 242) to store the identity information of the wafer. Moreover, the act of accessing the free space (240, 242) of the BIOS memory 204 is implemented by the BIOS firmware 248. Since the BIOS firmware 248 usually has a complete function to communicate with the devices on the motherboard 200, the FIG. 2 technology does not need to separately design an EEPROM access interface in each chip compared to the conventional technique of FIG. 1 (FIG. 1). The EEPROM access interfaces 116 and 130) in each wafer. The technique of FIG. 2 only needs to provide a readable buffer (such as 244, 246) in the wafer, so that the chip driver/tool module (218, 228) can call the first SMI (as indicated by the dashed lines 250 and 252 in FIG. 2). The technical content of FIG. 2 can be completed by enabling the BIOS firmware 248 to implement the first SMI described above and the boot program for designing the BIOS firmware 248. In the technique of FIG. 2, when the wafer identity information is updated, the chip driver/tool module (218, 228) only needs to input the identity information into the readable buffer (eg, 244, 246) to trigger the first SMI. The remaining update actions are all performed by the BIOS firmware 248. The chip driver/tool module (218, 228) does not need to directly access the BIOS memory 204 for data access. Compared with the conventional technology of FIG. 1, the technology of FIG. 2 makes the motherboard structure simpler, and the cost of the EEPROM can be saved, and the implementation is simple and easy.

圖2架構更可有多種實施流程與應用,流程圖3-5即說明之。The architecture of Figure 2 can be implemented in a variety of implementation processes and applications, as illustrated in Flowchart 3-5.

第3圖以流程圖說明一種晶片身分資訊之更新動作的實施方式。以下搭配圖2之架構圖解釋之。圖3程式開始後,步驟S302以晶片驅動程式/工具模組(218、228)將晶片的身分資訊存入晶片的可讀寫緩衝器(244、246),且以晶片驅動程式/工具模組(218、228)呼叫第一SMI(250、252)。圖3方塊304顯示BIOS韌體(248)所提供的第一SMI程式,其中包括步驟S306與S308。步驟S306比較晶片(206、210)中可讀寫緩衝器(244、246)的內容是否與BIOS記憶體(204)內晶片資訊儲存空間(240、242)的內容相同-若內容相同,則結束程式,反之,則實行步驟S308將晶片(206、210)之可讀寫緩衝器(244、246)的內容複製到BIOS記憶體(204)的晶片資訊儲存空間(240、242),接著,結束程式。圖3之步驟S306可視使用者需要選擇是否實施;其作用在於減少覆寫BIOS記憶體204的次數,以延長BIOS記憶體204壽命。Fig. 3 is a flow chart showing an embodiment of an update operation of the wafer identity information. The following is explained in conjunction with the architecture diagram of Figure 2. After the program of FIG. 3 is started, step S302 stores the identity information of the wafer into the readable and writable buffers (244, 246) of the wafer by the chip driver/tool module (218, 228), and uses the chip driver/tool module. (218, 228) calls the first SMI (250, 252). Block 304 of Figure 3 shows the first SMI program provided by the BIOS firmware (248), including steps S306 and S308. Step S306 compares whether the contents of the readable and writable buffers (244, 246) in the wafer (206, 210) are the same as the contents of the wafer information storage space (240, 242) in the BIOS memory (204) - if the contents are the same, the end If not, the process proceeds to step S308 to copy the contents of the read/write buffers (244, 246) of the chips (206, 210) to the wafer information storage space (240, 242) of the BIOS memory (204), and then, the end Program. Step S306 of FIG. 3 can be selected according to whether the user needs to implement or not; the function is to reduce the number of times the BIOS memory 204 is overwritten to extend the life of the BIOS memory 204.

第4圖以流程圖說明一種晶片身分資訊之載入動作的實施方式,其中包括步驟S402…S408,可設計在開機程式中。如圖所示,冷開機或暖開機後,步驟S402判斷晶片(206、210)硬體內,舉例而言,判斷在特徵暫存器(214、232)中是否早已存有晶片的身分資訊;若有,則結束此流程;反之,則進入步驟S404。步驟S404將確認晶片(206、210)內可讀寫緩衝器(244、246)是否與BIOS記憶體(204)之晶片資訊儲存空間(240、242)具有相同內容,以避免冗餘的複製動作。若步驟S404判斷結果為”是”,則結束圖4程式,反之,則執行步驟S406,將BIOS記憶體(204)內晶片資訊儲存空間(240、242)的內容複製到晶片(206、210)之可讀寫緩衝器(244、246),再由步驟S408將可讀寫緩衝器(244、246)暫存的內容填入晶片(206、210)硬體內,例如是特徵暫存器(214、232)中,並結束圖4程式以完成身分資訊載入動作。步驟S402與S404所執行的判斷是為了增進系統效能,可視使用者需求使用或不使用。Fig. 4 is a flow chart showing an embodiment of a loading operation of wafer identity information, including steps S402...S408, which can be designed in a booting program. As shown in the figure, after the cold boot or warm boot, step S402 determines the firmware of the wafer (206, 210), for example, determining whether the identity information of the wafer has been stored in the feature register (214, 232); If yes, the process ends; otherwise, the process proceeds to step S404. Step S404 will confirm whether the read/write buffers (244, 246) in the wafer (206, 210) have the same content as the wafer information storage space (240, 242) of the BIOS memory (204) to avoid redundant copying operations. . If the result of the determination in step S404 is YES, the program of FIG. 4 is ended. Otherwise, step S406 is executed to copy the contents of the wafer information storage space (240, 242) in the BIOS memory (204) to the chip (206, 210). The readable and writable buffers (244, 246) are further filled with the contents of the read/write buffers (244, 246) temporarily stored in the chip (206, 210) by a step S408, such as a feature register (214). , 232), and end the program of Figure 4 to complete the identity information loading action. The judgments performed in steps S402 and S404 are for improving system performance, and may or may not be used depending on user requirements.

第5圖以流程圖揭露圖2架構的一種測試程式,用以讀取BIOS記憶體(204)之晶片資訊儲存空間(240、242)以供測試使用。步驟S502以晶片驅動程式/工具模組(218、228)呼叫一第二SMI。方塊504內步驟顯示BIOS韌體(248)所提供的第二SMI程式,其中包括步驟S506:將BIOS記憶體(204)之晶片資訊儲存空間(240、242)的內容複製到晶片(206、210)的可讀寫緩衝器(244、246)。步驟S508以晶片驅動程式/工具模組(218、228)藉由讀取晶片(206、210)可讀寫緩衝器(244、246),以得知BIOS記憶體(204)內晶片資訊儲存空間(240、242)的內容是否正確,舉例而言,將此時可讀寫緩衝器(244、246)的內容與欲更新的晶片身分資訊做比較,若相等,則說明如圖3流程中更新BIOS記憶體(204)內晶片資訊儲存空間(240、242)的動作成功,可用於圖2架構發展之除錯上。Figure 5 is a flow chart showing a test program of the architecture of Figure 2 for reading the wafer information storage space (240, 242) of the BIOS memory (204) for testing. Step S502 calls a second SMI with the chip driver/tool module (218, 228). The step 504 shows the second SMI program provided by the BIOS firmware (248), which includes the step S506: copying the contents of the chip information storage space (240, 242) of the BIOS memory (204) to the chip (206, 210). Read and write buffers (244, 246). Step S508 reads the wafer (206, 210) readable and writable buffers (244, 246) by the chip driver/tool module (218, 228) to learn the information storage space of the chip in the BIOS memory (204). Whether the content of (240, 242) is correct. For example, compare the contents of the readable and writable buffers (244, 246) with the wafer identity information to be updated. If they are equal, the flow is updated as shown in FIG. The operation of the wafer information storage space (240, 242) in the BIOS memory (204) is successful, and can be used for debugging the development of the architecture of FIG. 2.

前述多種實施方式乃用來幫助了解本發明,並非用來限定本案範圍。本案範圍請見以下申請專利範圍。The various embodiments described above are intended to aid in the understanding of the invention and are not intended to limit the scope of the invention. Please refer to the following patent application scope for the scope of this case.

100...主機板100. . . motherboard

106...LAN晶片106. . . LAN chip

108...專屬LAN晶片之EEPROM108. . . Exclusive LAN chip EEPROM

110...1394晶片110. . . 1394 chip

112...專屬1394晶片之EEPROM112. . . Exclusive 1394 chip EEPROM

114...特徵暫存器114. . . Feature register

116...EEPROM存取介面116. . . EEPROM access interface

118...LAN驅動程式/工具模組118. . . LAN driver/tool module

120…126...以箭頭標示身分資訊之儲存與載入流向120...126. . . Use arrows to indicate the storage and loading flow of identity information

128...1394驅動程式/工具模組128. . . 1394 driver/tool module

130...EEPROM存取介面130. . . EEPROM access interface

132...特徵暫存器132. . . Feature register

200...主機板200. . . motherboard

202...BIOS韌體之影像檔202. . . Image file of BIOS firmware

204...BIOS記憶體204. . . BIOS memory

206...LAN晶片206. . . LAN chip

210...1394晶片210. . . 1394 chip

214...特徵暫存器214. . . Feature register

218...LAN驅動程式/工具模組218. . . LAN driver/tool module

228...1394驅動程式/工具模組228. . . 1394 driver/tool module

232...特徵暫存器232. . . Feature register

240...LAN資訊儲存空間240. . . LAN information storage space

242...1394資訊儲存空間242. . . 1394 information storage space

244、246...可讀寫緩衝器244, 246. . . Read and write buffer

248...BIOS韌體248. . . BIOS firmware

250、252...第一SMI呼叫250, 252. . . First SMI call

第1圖以一主機板為例,圖解傳統技術儲存與載入各晶片身分資訊的方法;Figure 1 shows a method of storing and loading information about each wafer identity by using a motherboard as an example;

第2圖以一主機板為例,圖解本案所揭露的晶片身分資訊儲存與載入技術;Figure 2 shows a chip identity information storage and loading technique disclosed in the present application by taking a motherboard as an example;

第3圖以流程圖說明一種晶片身分資訊之更新動作的實施方式;Figure 3 is a flow chart showing an embodiment of an update operation of the wafer identity information;

第4圖以流程圖說明一種晶片身分資訊之載入動作的實施方式,其中包括步驟S402…S408,可設計在開機程式中;以及Figure 4 is a flow chart showing an embodiment of a loading operation of the wafer identity information, including steps S402...S408, which can be designed in the booting program;

第5圖以流程圖揭露圖2架構的一種測試程式,用以讀取BIOS記憶體(204)之晶片資訊儲存空間(240、242)以供測試使用。Figure 5 is a flow chart showing a test program of the architecture of Figure 2 for reading the wafer information storage space (240, 242) of the BIOS memory (204) for testing.

200‧‧‧主機板200‧‧‧ motherboard

202‧‧‧BIOS韌體之影像檔202‧‧‧Image file of BIOS firmware

204‧‧‧BIOS記憶體204‧‧‧BIOS memory

206‧‧‧LAN晶片206‧‧‧LAN chip

210‧‧‧1394晶片210‧‧‧1394 wafer

214‧‧‧特徵暫存器214‧‧‧Feature register

218‧‧‧LAN驅動程式/工具模組218‧‧‧LAN Driver/Tool Module

228‧‧‧1394驅動程式/工具模組228‧‧‧1394 Driver/Tool Module

232‧‧‧特徵暫存器232‧‧‧Feature register

240‧‧‧LAN資訊儲存空間240‧‧‧LAN information storage space

242‧‧‧1394資訊儲存空間242‧‧‧1394 Information Storage Space

244、246‧‧‧可讀寫緩衝器244, 246‧‧‧ readable and writable buffer

248‧‧‧BIOS韌體248‧‧‧BIOS firmware

250、252‧‧‧第一SMI呼叫250, 252‧‧‧ First SMI call

Claims (18)

一種晶片身分資訊的管理方法,包括:令一晶片提供一可讀寫緩衝器;令一BIOS記憶體提供一晶片資訊儲存空間;將該晶片之身分資訊填入該晶片之上述可讀寫緩衝器;以及呼叫一第一系統管理中斷,以驅動一BIOS韌體將該晶片的上述可讀寫緩衝器之內容複製至該BIOS記憶體的上述晶片資訊儲存空間,以供後續掉電後再上電時係自該BIOS記憶體的上述晶片資訊儲存空間將該晶片之身分資訊載入該晶片內部。 A method for managing wafer identity information includes: providing a readable and writable buffer for a chip; causing a BIOS memory to provide a wafer information storage space; and filling the wafer with the identity information into the readable and writable buffer of the wafer And calling a first system management interrupt to drive a BIOS firmware to copy the contents of the readable and writable buffer of the chip to the chip information storage space of the BIOS memory for subsequent power-down and then power-on The information information of the wafer is loaded into the inside of the wafer from the above-mentioned wafer information storage space of the BIOS memory. 如申請專利範圍第1項所述之方法,更包括:在該第一系統管理中斷觸發後,比較該晶片的上述可讀寫緩衝器以及該BIOS記憶體的上述晶片資訊儲存空間的內容,且於該可讀寫緩衝器以及該晶片資訊儲存空間的內容不相等時方實行上述將該可讀寫緩衝器內容複製至該晶片資訊儲存空間的步驟。 The method of claim 1, further comprising: after the first system management interrupt triggering, comparing the read/write buffer of the chip and the content of the chip information storage space of the BIOS memory, and The step of copying the readable and writable buffer content to the wafer information storage space is performed when the readable and writable buffer and the content of the wafer information storage space are not equal. 如申請專利範圍第1項所述之方法,更包括:於開機時,將該BIOS記憶體的上述晶片資訊儲存空間的內容複製至該晶片的上述可讀寫緩衝器中,以經該可讀寫緩衝器填入該晶片內部。 The method of claim 1, further comprising: copying, in the booting, the content of the chip information storage space of the BIOS memory to the readable and writable buffer of the chip, so as to be readable A write buffer fills the inside of the wafer. 如申請專利範圍第3項所述之方法,更包括:於開機時,更確認該晶片內部是否存在身分資訊,且於該晶片內無身分資訊存在時方實行上述將該BIOS記憶體的上述晶片資訊儲存空間的內容複製至該晶片的上述可 讀寫緩衝器的步驟。 The method of claim 3, further comprising: confirming whether there is identity information inside the chip when the device is turned on, and executing the above-mentioned chip of the BIOS memory when no identity information exists in the chip. Copying the contents of the information storage space to the above-mentioned The step of reading and writing the buffer. 如申請專利範圍第3項所述之方法,更包括:於開機時,更確認該晶片內部是否存在身分資訊;以及於判斷出該晶片內部無身分資訊存在後,更比較該晶片的上述可讀寫緩衝器以及該BIOS記憶體的上述晶片資訊儲存空間的內容,且於該可讀寫緩衝器以及該晶片資訊儲存空間的內容不相等時方實行上述將該BIOS記憶體的上述晶片資訊儲存空間的內容複製至該晶片的上述可讀寫緩衝器的步驟。 The method of claim 3, further comprising: confirming whether there is identity information inside the wafer at the time of booting; and comparing the above-mentioned readability of the wafer after determining that there is no identity information inside the wafer. Writing the buffer and the content of the chip information storage space of the BIOS memory, and executing the above-mentioned wafer information storage space of the BIOS memory when the readable and writable buffer and the content of the wafer information storage space are not equal The content is copied to the above-described read/write buffer of the wafer. 如申請專利範圍第1項所述之方法,更提供一測試操作,包括:呼叫一第二系統管理中斷,以驅動該BIOS韌體將該BIOS記憶體的上述晶片資訊儲存空間的內容複製至該晶片的上述可讀寫緩衝器;以及讀取該晶片的上述可讀寫緩衝器,以得知該BIOS記憶體的上述晶片資訊儲存空間的內容是否正確。 The method of claim 1 further provides a test operation, comprising: calling a second system management interrupt to drive the BIOS firmware to copy the content of the chip information storage space of the BIOS memory to the The readable and writable buffer of the chip; and reading the readable and writable buffer of the chip to know whether the content of the wafer information storage space of the BIOS memory is correct. 如申請專利範圍第6項所述之方法,其中呼叫該第一和第二系統管理中斷的步驟是由一晶片驅動程式/工具模組完成。 The method of claim 6, wherein the step of calling the first and second system management interrupts is performed by a chip driver/tool module. 如申請專利範圍第1項所述之方法,其中將該晶片之身分資訊填入該晶片之上述可讀寫緩衝器的步驟是由一晶片驅動程式/工具模組完成。 The method of claim 1, wherein the step of filling the identity information of the wafer into the readable and writable buffer of the wafer is performed by a wafer driver/tool module. 如申請專利範圍第1項所述之方法,其中該BIOS記憶體的上述晶片資訊儲存空間是除存儲上述BIOS韌體 的一影像檔以外的一特定位址空間。 The method of claim 1, wherein the above-mentioned wafer information storage space of the BIOS memory is stored in addition to the BIOS firmware. A specific address space other than an image file. 一種晶片身分資訊的管理方法,包括:令一晶片提供一可讀寫緩衝器;令一BIOS記憶體提供一晶片資訊儲存空間儲存該晶片的身分資訊;於開機時,以一BIOS韌體將該BIOS記憶體的上述晶片資訊儲存空間的內容複製至該晶片的上述可讀寫緩衝器中,以經該可讀寫緩衝器填入該晶片內部。 A method for managing wafer identity information includes: providing a readable and writable buffer for a chip; and causing a BIOS memory to provide a wafer information storage space for storing identity information of the wafer; and when booting, the BIOS firmware The contents of the above-mentioned wafer information storage space of the BIOS memory are copied into the readable and writable buffer of the wafer to be filled into the inside of the wafer via the readable and writable buffer. 如申請專利範圍第10項所述之方法,更包括:於開機時,更確認該晶片內部是否存在身分資訊,且於該晶片內部無身分資訊存在時方實行上述將該BIOS記憶體的上述晶片資訊儲存空間的內容複製至該晶片的上述可讀寫緩衝器的步驟。 The method of claim 10, further comprising: confirming whether there is identity information inside the chip when the device is turned on, and performing the above-mentioned chip of the BIOS memory when no identity information exists in the chip. The step of copying the contents of the information storage space to the above-described readable and writable buffer of the wafer. 如申請專利範圍第10項所述之方法,更包括:於開機時,更確認該晶片內部是否存在身分資訊;以及於判斷出該晶片內部無身分資訊存在後,更比較該晶片的上述可讀寫緩衝器以及該BIOS記憶體的上述晶片資訊儲存空間的內容,且於該可讀寫緩衝器以及該晶片資訊儲存空間的內容不相等時方實行上述將該BIOS記憶體的上述晶片資訊儲存空間的內容複製至該晶片的上述可讀寫緩衝器的步驟。 The method of claim 10, further comprising: confirming whether the identity information exists inside the chip when the device is turned on; and comparing the above-mentioned readability of the chip after determining that there is no identity information inside the chip. Writing the buffer and the content of the chip information storage space of the BIOS memory, and executing the above-mentioned wafer information storage space of the BIOS memory when the readable and writable buffer and the content of the wafer information storage space are not equal The content is copied to the above-described read/write buffer of the wafer. 如申請專利範圍第10項所述之方法,更包括:將該晶片之身分資訊填入該晶片之上述可讀寫緩衝器;以及 呼叫一第一系統管理中斷,以驅動該BIOS韌體將該晶片的上述可讀寫緩衝器之內容複製至該BIOS記憶體的上述晶片資訊儲存空間,以更新上述晶片資訊儲存空間中所儲存的該晶片之身分資訊。 The method of claim 10, further comprising: filling the identity information of the wafer into the readable and writable buffer of the chip; Calling a first system management interrupt to drive the BIOS firmware to copy the contents of the readable and writable buffer of the chip to the chip information storage space of the BIOS memory to update the storage in the chip information storage space. The identity information of the wafer. 如申請專利範圍第13項所述之方法,其中上述將該晶片之身分資訊填入該晶片之上述可讀寫緩衝器的步驟及呼叫該第一系統管理中斷的步驟是由一晶片驅動程式/工具模組完成。 The method of claim 13, wherein the step of filling the identity information of the wafer into the readable and writable buffer of the chip and the step of calling the first system management interrupt are performed by a chip driver/ The tool module is completed. 如申請專利範圍第13項所述之方法,更包括:在該第一系統管理中斷觸發後,更比較該晶片的上述可讀寫緩衝器以及該BIOS記憶體的上述晶片資訊儲存空間的內容,且於該可讀寫緩衝器以及該晶片資訊儲存空間的內容不相等時方實行上述將該可讀寫緩衝器內容複製至該晶片資訊儲存空間的步驟。 The method of claim 13, further comprising: comparing the readable and writable buffer of the chip and the content of the wafer information storage space of the BIOS memory after the first system management interrupt triggering, And performing the step of copying the readable and writable buffer content to the wafer information storage space when the readable and writable buffer and the content of the wafer information storage space are not equal. 如申請專利範圍第10項所述之方法,更提供一測試操作,包括:呼叫一第二系統管理中斷;在該第二系統管理中斷觸發後,驅動該BIOS韌體將該BIOS記憶體的上述晶片資訊儲存空間的內容寫入該晶片的上述可讀寫緩衝器;以及讀取該晶片的上述可讀寫緩衝器,以得知該BIOS記憶體的上述晶片資訊儲存空間的內容是否正確。 For example, the method of claim 10 further provides a test operation, including: calling a second system management interrupt; after the second system management interrupt is triggered, driving the BIOS firmware to the BIOS memory The content of the wafer information storage space is written into the readable and writable buffer of the chip; and the readable and writable buffer of the chip is read to know whether the content of the wafer information storage space of the BIOS memory is correct. 如申請專利範圍第16項所述之方法,其中呼叫該第二系統管理中斷的步驟是由一晶片驅動程式/工具模組完成。 The method of claim 16, wherein the step of calling the second system management interrupt is performed by a chip driver/tool module. 如申請專利範圍第10項所述之方法,其中該BIOS記憶體的上述晶片資訊儲存空間是除存儲上述BIOS韌體的一影像檔以外的一特定位址空間。 The method of claim 10, wherein the chip information storage space of the BIOS memory is a specific address space other than an image file storing the BIOS firmware.
TW98146411A 2009-12-31 2009-12-31 Methods for managing id information of a chip TWI405127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98146411A TWI405127B (en) 2009-12-31 2009-12-31 Methods for managing id information of a chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98146411A TWI405127B (en) 2009-12-31 2009-12-31 Methods for managing id information of a chip

Publications (2)

Publication Number Publication Date
TW201123014A TW201123014A (en) 2011-07-01
TWI405127B true TWI405127B (en) 2013-08-11

Family

ID=45046487

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98146411A TWI405127B (en) 2009-12-31 2009-12-31 Methods for managing id information of a chip

Country Status (1)

Country Link
TW (1) TWI405127B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6754726B1 (en) * 2003-03-11 2004-06-22 Inventec Corporation Versatile memory chip programming device and method
TWI246660B (en) * 2003-12-31 2006-01-01 Inventec Corp Software protecting method by interrupting procedures
TWI296778B (en) * 2006-01-26 2008-05-11 Asustek Comp Inc Method and system for maintaining smbios
US20090174718A1 (en) * 2008-01-04 2009-07-09 Asustek Computer Inc. Setting methods and motherboard for display parameters

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6754726B1 (en) * 2003-03-11 2004-06-22 Inventec Corporation Versatile memory chip programming device and method
TWI246660B (en) * 2003-12-31 2006-01-01 Inventec Corp Software protecting method by interrupting procedures
TWI296778B (en) * 2006-01-26 2008-05-11 Asustek Comp Inc Method and system for maintaining smbios
US20090174718A1 (en) * 2008-01-04 2009-07-09 Asustek Computer Inc. Setting methods and motherboard for display parameters

Also Published As

Publication number Publication date
TW201123014A (en) 2011-07-01

Similar Documents

Publication Publication Date Title
US7234049B2 (en) Computer system with NAND flash memory for booting and storage
US7093064B2 (en) Programming suspend status indicator for flash memory
US7739443B2 (en) Memory controller, memory device and control method for the memory controller
TW201013674A (en) NAND memory
US7694122B2 (en) Electronic device and booting method thereof
US20100169546A1 (en) Flash memory access circuit
US9971682B2 (en) Wear-leveling system and method for reducing stress on memory device using erase counters
JP2005071303A (en) Program starting device
JP4829370B1 (en) MEMORY CONTROL DEVICE, MEMORY DEVICE, AND STOP CONTROL METHOD
JP4373943B2 (en) Memory controller, flash memory system, and flash memory control method
US20090132800A1 (en) Method for adjusting setup default value of bios and main board thereof
TWI405127B (en) Methods for managing id information of a chip
JP4177360B2 (en) Memory controller, flash memory system, and flash memory control method
US7418542B2 (en) Rewritable, nonvolatile memory, electronic device, method of rewriting rewritable, nonvolatile memory, and storage medium having stored thereon rewrite program
JP2002288999A (en) Semiconductor memory
JP4661369B2 (en) Memory controller
JPH09146774A (en) Personal computer system
JP2006178909A (en) Memory controller, flash memory system and method for controlling flash memory
JP4645043B2 (en) MEMORY CONTROLLER, NONVOLATILE MEMORY DEVICE, AND NONVOLATILE MEMORY SYSTEM
KR20170051124A (en) Test method of volatile memory device embedded electronic device
JP4235624B2 (en) Memory controller, flash memory system, and flash memory control method
TWI810095B (en) Data storage device and method for managing write buffer
US20080077730A1 (en) Access control method for a memory, memory controller for controlling access to the memory, and data processing apparatus
JP4245594B2 (en) Memory controller and flash memory system
JP2005293177A (en) Memory controller and flash memory system