TWI497328B - Consider the reconstruction method and device of the scan chain of the program group - Google Patents

Consider the reconstruction method and device of the scan chain of the program group Download PDF

Info

Publication number
TWI497328B
TWI497328B TW099104885A TW99104885A TWI497328B TW I497328 B TWI497328 B TW I497328B TW 099104885 A TW099104885 A TW 099104885A TW 99104885 A TW99104885 A TW 99104885A TW I497328 B TWI497328 B TW I497328B
Authority
TW
Taiwan
Prior art keywords
scan
scan chain
chain
elements
scanning
Prior art date
Application number
TW099104885A
Other languages
Chinese (zh)
Other versions
TW201133258A (en
Inventor
Kunfeng Ge
Bang Liu
Original Assignee
Synopsys Shanghai Co Ltd
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 Synopsys Shanghai Co Ltd filed Critical Synopsys Shanghai Co Ltd
Priority to TW099104885A priority Critical patent/TWI497328B/en
Publication of TW201133258A publication Critical patent/TW201133258A/en
Application granted granted Critical
Publication of TWI497328B publication Critical patent/TWI497328B/en

Links

Description

考慮計畫組的掃描鏈的重構方法與裝置Reconstruction method and device for considering scan chain of plan group

本發明是關於一種掃描鏈的重構方法與裝置,尤其是關於一種晶片模組規劃設計階段的掃描鏈的重構方法與裝置。The invention relates to a method and a device for reconstructing a scan chain, in particular to a method and a device for reconstructing a scan chain in a planning and design stage of a wafer module.

在對包含測試鏈的晶片進行模組規劃設計時,掃描元件分佈的任意性將會造成各個計畫組之間存在過多的連線。同時,每個計畫組也需要創建較多的埠來承擔掃描信號的輸入與輸出。這使得各個計畫組在頂層應用時對資源的需求很大,從而增加設計的難度。為了減少掃描鏈穿過計畫組造成的計畫組上的埠和組間的連線數目,有必要將掃描鏈進行重構,即對掃描元件的位置進行調整組成新的掃描鏈。When module planning is performed on a wafer containing a test chain, the arbitrariness of the distribution of the scanning elements will result in excessive wiring between the various planning groups. At the same time, each planning group also needs to create more 埠 to undertake the input and output of the scanning signal. This makes the demand for resources of each plan group in the top-level application, which increases the difficulty of design. In order to reduce the number of lines on the plan group and the number of lines between the groups caused by the scan chain passing through the plan group, it is necessary to reconstruct the scan chain, that is, adjust the position of the scan elements to form a new scan chain.

圖1為一掃描鏈的重構方法:首先在步驟70中,將該掃描鏈的起點作為一基準元件,在步驟71計算該基準元件至該掃描鏈中所有其他可用掃描元件的距離,找出其中距其最近的一掃描元件;在步驟72連接該基準元件與該距其最近的掃描元件;在步驟73將該距其最近的掃描元件作為基準元件;接著在步驟74檢查該基準元件是否是最後一個可用掃描元件;如是,則在步驟75將其與掃描鏈的終點連接;否則返回步驟71。1 is a method for reconstructing a scan chain: first, in step 70, the start point of the scan chain is used as a reference component, and in step 71, the distance of the reference component to all other available scan components in the scan chain is calculated. Wherein a scanning element is closest thereto; the reference element is coupled to the nearest scanning element at step 72; the scanning element closest to it is used as a reference element at step 73; and then at step 74 it is checked whether the reference element is The last available scanning element; if so, it is connected to the end of the scan chain at step 75; otherwise, returns to step 71.

該掃描鏈的重構方法僅考慮了掃描元件間的距離關係,而沒有考慮各掃描元件所在的計畫組位置資訊,因此獲得的掃描鏈在縮短長度的同時可能較重構前穿過更多的計畫組,導致各計畫組之間存在過多連線。即便經過重新排序,計畫組上的埠和計畫組間的連線有所減少,而實際上通過掃描鏈的重構仍有進一步減少埠和連線的餘地。The reconstruction method of the scan chain only considers the distance relationship between the scanning elements, and does not consider the position information of the planning group where each scanning element is located, so the obtained scanning chain may be shortened by the length and may be more than before the reconstruction. The program group resulted in too many connections between the program groups. Even after reordering, the connection between the sputum and the planning group on the program group is reduced, but in fact, there is still room for further reduction of snagging and wiring through the reconstruction of the scan chain.

鑒於此,業界仍需一種掃描鏈的重構技術方案以解決計畫組上埠和組間連線過多的問題。In view of this, the industry still needs a reconstruction technology solution of the scan chain to solve the problem of excessive connection between the group and the group.

本發明提供一種考慮計畫組的掃描鏈的結構重構方法與裝置,其在縮短掃描鏈長度的同時,使重構後的每一條掃描鏈穿過儘可能少的計畫組,從而使得計畫組上的埠和組間的連線總數達到最少。The present invention provides a structure reconstruction method and apparatus for considering a scan chain of a plan group, which shortens the length of the scan chain and allows each scan chain after reconstruction to pass through as few plan groups as possible, thereby making The total number of connections between the group and the group on the drawing group is minimized.

本發明提出一掃描鏈的重構方法,其包括一第一階段重構,該第一階段重構包含:步驟一對若干掃描鏈進行分類,其中起點和終點在一相同計畫組內的掃描鏈歸為第一掃描鏈集合;起點和終點不在同一計畫組內的掃描鏈歸為第二掃描鏈集合;起點和終點都在一頂層的掃描鏈被歸為第三掃描鏈集合;步驟二重構該第一掃描鏈集合內的掃描鏈直至該第一掃描鏈集合為空;步驟三重構該第二掃描鏈集合內的掃描鏈直至該第二掃描鏈集合為空;及步驟四重構該第三掃描鏈集合內的掃描鏈直至該第三掃描鏈集合為空。The present invention proposes a scan chain reconstruction method, which includes a first stage reconstruction, the first stage reconstruction comprising: stepping a pair of scan chains for classification, wherein the start and end points are scanned in a same plan group The chain is classified into the first scan chain set; the scan chain whose start point and end point are not in the same plan group is classified as the second scan chain set; the start and end points are all classified into the third scan chain set in a top scan chain; Reconstructing the scan chain in the first scan chain set until the first scan chain set is empty; step 3 reconstructing the scan chain in the second scan chain set until the second scan chain set is empty; and step 4 reconstructing The scan chain within the third scan chain set until the third scan chain set is empty.

根據一實施例,該步驟二進一步包含:自該第一掃描鏈集合中取出需要掃描元件數量最少的一掃描鏈;檢查該掃描鏈的端點所在的一計畫組中的可用掃描元件數量是否滿足該掃描鏈需要;如足夠,依該掃描鏈的需求數量將該計畫組中的可用掃描元件分配該掃描鏈;否則,將該計畫組中所有的可用掃描元件分配該掃描鏈,並將該掃描鏈放入第三掃描鏈集合。該步驟三進一步包含:自該第二掃描鏈集合中取出掃描元件需要數量最少的一掃描鏈;判斷該掃描鏈是否有一個端點在頂層:如是,判斷該掃描鏈的另一端點所在計畫組內的可用掃描元件數量是否滿足該掃描鏈需要;如該計畫組內的掃描元件數足夠,則將該計畫組內的掃描元件依需求數量分配給該掃描鏈;否則,將該計畫組內的掃描元件分配給該掃描鏈,並將該掃描鏈添加至第三掃描鏈集合。否則,針對該掃描鏈的兩端點所在的兩個計畫組,分別計算所有可能從其中選取掃描元件的掃描鏈的掃描元件需求總數;並判斷該兩個計畫組內的可用掃描元件是否滿足該掃描鏈的需要,如滿足,則從對應掃描元件需求總數較少的一計畫組中優先選擇掃描元件分配給該掃描鏈,不足的量從另一計畫組選擇;否則,將兩個計畫組中的可用掃描元件都分配給該掃描鏈,並將該掃描鏈放入第三掃描鏈集合。該步驟四進一步包含:自該第三掃描鏈集合中取出所需掃描元件最多的一掃描鏈;檢查是否有一計畫組含有的可用掃描元件數比需求最多的掃描鏈所需要的掃描元件數多:如有,則該掃描鏈從含掃描元件數最少的一計畫組中選擇;否則,從含有該可用掃描元件數最多的計畫組開始為該掃描鏈分配掃描元件,最後到該頂層選擇。該掃描鏈的重構方法可進一步包含一第二階段重構,在該第二階段重構在同一計畫組內的掃描鏈所需的掃描元件將基於掃描元件位置被重新分配,其中相鄰且離一掃描鏈距離近的掃描元件將被分配到該掃描鏈。According to an embodiment, the step 2 further comprises: extracting, from the first scan chain set, a scan chain that requires the least number of scan components; and checking whether the number of available scan components in a plan group of the end of the scan chain is Satisfying the scan chain needs; if sufficient, the scan elements available in the plan group are assigned to the scan chain according to the required number of scan chains; otherwise, all available scan elements in the plan group are assigned to the scan chain, and The scan chain is placed in a third scan chain set. The step 3 further includes: extracting the scan component from the second scan chain set to require a minimum number of scan chains; determining whether the scan chain has an endpoint at the top layer: if yes, determining the plan of the other end of the scan chain Whether the number of available scanning elements in the group meets the needs of the scan chain; if the number of scanning elements in the planning group is sufficient, the scanning elements in the planning group are allocated to the scanning chain according to the required quantity; otherwise, the counting A scan element within the draw group is assigned to the scan chain and the scan chain is added to the third scan chain set. Otherwise, for the two plan groups in which the two ends of the scan chain are located, calculate the total number of scan component requirements of all scan chains from which the scan elements may be selected; and determine whether the available scan elements in the two plan groups are Satisfying the needs of the scan chain. If satisfied, the scan component is preferentially assigned to the scan chain from a plan group having a smaller total number of scan component requirements, and the insufficient amount is selected from another plan group; otherwise, two The available scan elements in the plan group are assigned to the scan chain and the scan chain is placed in the third scan chain set. The step 4 further includes: extracting a scan chain of the scan element from the third scan chain set; checking whether a plan group contains more scan components than the scan chain requiring the most scan chain. : If yes, the scan chain is selected from a plan group having the fewest number of scan components; otherwise, the scan component is assigned to the scan chain from the plan group having the largest number of available scan components, and finally to the top selection . The scan chain reconstruction method can further include a second stage reconstruction in which the scan elements required to reconstruct the scan chain within the same plan group are redistributed based on the scan element position, wherein adjacent Scanning elements that are close to a scan chain will be assigned to the scan chain.

本發明還提供一與該掃描鏈的重構方法對應的掃描鏈的重構裝置,其包括一第一級重構器與一第二級重構器。該第一級重構器包含:一分類器,對若干掃描鏈進行分類,其中起點和終點在一相同計畫組內的掃描鏈歸為第一掃描鏈集合;起點和終點不在同一計畫組內的掃描鏈歸為第二掃描鏈集合;起點和終點都在一頂層的掃描鏈被歸為第三掃描鏈集合;一分配器,與該分類器通信連接;其首先重構該第一掃描鏈集合內的掃描鏈直至該第一掃描鏈集合為空;然後重構該第二掃描鏈集合內的掃描鏈直至該第二掃描鏈集合為空;最後重構該第三掃描鏈集合內的掃描鏈直至該第三掃描鏈集合為空。The present invention also provides a scan chain reconstruction apparatus corresponding to the scan chain reconstruction method, which includes a first level reconstructor and a second level reconstructor. The first level reconstructor comprises: a classifier for classifying a plurality of scan chains, wherein the scan chain within the same plan group of the start point and the end point is classified into the first scan chain set; the start point and the end point are not in the same plan group The scan chain within is classified as a second scan chain set; the start and end points are all classified into a third scan chain set in a top scan chain; an allocator is communicatively coupled to the classifier; it first reconstructs the first scan Scanning chain within the chain set until the first scan chain set is empty; then reconstructing the scan chain in the second scan chain set until the second scan chain set is empty; finally reconstructing the third scan chain set The scan chain is scanned until the third scan chain set is empty.

本發明的掃描鏈重構方法與裝置不僅考慮了掃描鏈和掃描元件的位置資訊,同時計入了掃描鏈的起點與終點在計畫組或頂層的位置資訊,最大程度減少計畫組上的埠數及組間的連線數,從而獲得更好的規劃設計結果;降低對上層資源的需求和後續設計的難度。The scan chain reconstruction method and device of the present invention not only considers the position information of the scan chain and the scanning component, but also calculates the position information of the start and end points of the scan chain in the plan group or the top layer, thereby minimizing the position on the plan group. The number of connections and the number of connections between groups to obtain better planning and design results; reduce the need for upper resources and the difficulty of subsequent design.

上文已經概略地敍述本發明之技術特徵,俾使下文之詳細描述得以獲得較佳瞭解。構成本發明之申請專利範圍標的之其它技術特徵將描述於下文。本發明所屬技術領域中具有通常知識者應可瞭解,下文揭示之概念與特定實施例可作為基礎而相當輕易地予以修改或設計其它結構或製程而實現與本發明相同之目的。本發明所屬技術領域中具有通常知識者亦應可瞭解,這類等效的建構並無法脫離後附之申請專利範圍所提出之本發明的精神和範圍。The technical features of the present invention have been briefly described above, and the detailed description below will be better understood. Other technical features constituting the subject matter of the patent application of the present invention will be described below. It is to be understood by those of ordinary skill in the art that the present invention may be practiced otherwise. It is to be understood by those of ordinary skill in the art that this invention is not limited to the scope of the invention.

為便於更好的理解本發明的精神,以下結合本發明的較佳實施例對其作進一步說明。To better understand the spirit of the present invention, the following further describes the preferred embodiments of the present invention.

本發明提出一種在晶片模組規劃設計階段基於計畫組的掃描鏈重構方法和裝置。The invention provides a method and a device for reconstructing a scan chain based on a planning group in a planning and design stage of a wafer module.

根據本發明的一實施例,基於計畫組的掃描鏈重構方法包含兩個階段。首先在掃描鏈重構的第一階段,以計畫組中掃描元件的數目為主要依據,讓一掃描鏈從儘可能少的計畫組中選取掃描元件。且在重構過程中充分考慮掃描鏈的起點和終點與計畫組的關係,使同一計畫組中的掃描元件會被優先分配給與之有關聯的掃描鏈,從而減少計畫組間可能出現的連線的數目。接著在掃描鏈重構的第二階段,以掃描元件的位置資訊為主要依據,在一個計畫組內進行掃描元件分配,將相鄰的掃描元件分配給同一個掃描鏈,從而減少每一掃描鏈內掃描元件之間佈線的長度。According to an embodiment of the invention, the scan chain reconstruction method based on the plan group comprises two stages. First, in the first stage of scan chain reconstruction, with the number of scan elements in the plan group as the main basis, a scan chain is selected from as few plan groups as possible. In the process of reconstruction, the relationship between the start and end points of the scan chain and the plan group is fully considered, so that the scan components in the same plan group are preferentially assigned to the scan chain associated with it, thereby reducing the possibility between the plan groups. The number of connections that appear. Then, in the second stage of the scan chain reconstruction, based on the position information of the scanning component as the main basis, the scanning component is allocated in one planning group, and the adjacent scanning components are allocated to the same scanning chain, thereby reducing each scanning. The length of the wiring between the scanning elements within the chain.

以下分別就該掃描鏈重構的第一階段與第二階段詳細說明如下:The following is a detailed description of the first and second phases of the scan chain reconstruction:

第一階段重構:在掃描鏈重構的第一階段,重構的順序是依據各掃描鏈的起點與終點的位置,使掃描鏈儘可能不穿出其所在的計畫組。其中,起點和終點在一相同計畫組內的掃描鏈歸為第一掃描鏈集合,會優先從其所在計畫組內選擇掃描元件;起點和終點不在同一計畫組內的掃描鏈歸為第二掃描鏈集合,以較低優先順序處理;起點和終點都在頂層的掃描鏈被歸為第三掃描鏈集合,被最後處理。The first stage of reconstruction: In the first stage of scan chain reconstruction, the order of reconstruction is based on the position of the start and end points of each scan chain, so that the scan chain does not wear the plan group in which it is located. Wherein, the scan chain in the same plan group as the start point and the end point is classified as the first scan chain set, and the scan elements are preferentially selected from the plan group in which they are located; the scan chains in which the start point and the end point are not in the same plan group are classified as The second scan chain set is processed in a lower priority order; the scan chain at the top and end points is classified as the third scan chain set and is finally processed.

具體的,如圖2所示,首先在步驟10判斷該第一掃描鏈集合是否為空,如存在起點和終點在同一計畫組內的掃描鏈,則進入步驟11重構起點和終點在同一計畫組內的掃描鏈。否則在步驟12判斷第二掃描鏈集合是否為空,如存在起點和終點不在同一計畫組內的掃描鏈,或只有一個端點,即起點或終點在頂層的掃描鏈,則進入步驟13重構該第二掃描鏈集合內的掃描鏈。否則進入步驟14判斷第三掃描鏈集合是否為空。如非空,則在步驟15重構該第三掃描鏈集合內的掃描鏈;如空,則進入步驟16結束該第一階段重構。Specifically, as shown in FIG. 2, it is first determined in step 10 whether the first scan chain set is empty. If there is a scan chain in which the start point and the end point are in the same plan group, then the process proceeds to step 11 where the reconstructed start point and the end point are the same. The scan chain within the plan group. Otherwise, in step 12, it is determined whether the second scan chain set is empty. If there is a scan chain in which the start point and the end point are not in the same plan group, or only one end point, that is, the start point or the end point is at the top scan chain, the process proceeds to step 13 Constructing a scan chain within the second scan chain set. Otherwise, proceed to step 14 to determine whether the third scan chain set is empty. If it is not empty, the scan chain in the third scan chain set is reconstructed in step 15; if empty, the process proceeds to step 16 to end the first stage reconstruction.

如圖3所示,在步驟11,首先從步驟110開始,找出第一掃描鏈集合中需要掃描元件數量最少的掃描鏈,將其自第一掃描鏈集合取出。在步驟111中,檢查該掃描鏈的起點與終點所在計畫組中的可用掃描元件數量是否滿足該掃描鏈需要。如足夠,在步驟112依需求數量將該計畫組中可用掃描元件分配該掃描鏈;否則,進入步驟113將該計畫組中所有的可用掃描元件分配該掃描鏈,並將其放入第三掃描鏈集合以在步驟14中繼續選擇掃描元件。As shown in FIG. 3, in step 11, starting from step 110, the scan chain of the first scan chain set that requires the least number of scan components is found and taken out from the first scan chain set. In step 111, it is checked whether the number of available scanning elements in the plan group in which the start and end points of the scan chain are located satisfies the scan chain requirement. If sufficient, in step 112, the scan elements available in the plan group are assigned to the scan chain; otherwise, proceed to step 113 to assign all of the available scan elements in the plan group to the scan chain and place them in the first The three scan chain sets are used to continue selecting the scanning elements in step 14.

如圖4所示,重構該第二掃描鏈集合內的掃描鏈時,為了掃描鏈儘可能少的穿出計畫組,在步驟130中同樣找出對第二掃描鏈集合中掃描元件需要數量最少的掃描鏈,將其自第二掃描鏈集合取出。在步驟131,判斷該掃描鏈是否有一個端點(起點或終點)在頂層。如是,則進入步驟132判斷另一端點(終點或起點)所在計畫組內的掃描元件數量是否滿足該掃描鏈需要。如該計畫組內的掃描元件數足夠,則進入步驟133將該計畫組內的掃描元件依需求數量分配給該掃描鏈。否則,進入步驟134將該計畫組內的掃描元件分配給該掃描鏈,並將該掃描鏈添加至第三掃描鏈集合。否則,該掃描鏈的起點與終點在兩個不同的計畫組,則進入步驟135,針對該兩個計畫組,分別計算所有可能從其中選取掃描元件的掃描鏈對於掃描元件的需求總數。在步驟136判斷該兩個計畫組內的可用掃描元件是否滿足該掃描鏈的需要。如滿足,則在步驟137從對應掃描元件需求總數較少的一計畫組中優先選擇掃描元件分配給該掃描鏈,不足的量從另一計畫組選擇;否則,進入步驟138將兩個計畫組中的可用掃描元件都分配給該掃描鏈,並將該掃描鏈放入第三掃描鏈集合。As shown in FIG. 4, when the scan chain in the second scan chain set is reconstructed, in order to scan the chain as little as possible, the scan group needs to be drilled out, and in step 130, the scan component needs in the second scan chain set are also found. The smallest number of scan chains are taken from the second scan chain set. At step 131, it is determined whether the scan chain has an endpoint (start or end point) at the top level. If so, proceed to step 132 to determine if the number of scanning elements within the planning group in which the other endpoint (end point or starting point) is located meets the scan chain requirements. If the number of scanning elements in the planning group is sufficient, the process proceeds to step 133 where the scanning elements in the planning group are allocated to the scanning chain according to the required number. Otherwise, proceeding to step 134, the scan elements within the plan group are assigned to the scan chain and the scan chain is added to the third scan chain set. Otherwise, the start and end points of the scan chain are in two different plan groups, then step 135 is entered, for which the total number of scan chains for all scan chains from which the scan elements may be selected is calculated for each of the two plan groups. At step 136, it is determined if the available scanning elements within the two planning groups meet the needs of the scan chain. If yes, in step 137, the scan component is preferentially assigned to the scan chain from a plan group having a smaller total number of corresponding scan component requirements, and the insufficient amount is selected from another plan group; otherwise, the process proceeds to step 138 to The available scan elements in the plan group are assigned to the scan chain and the scan chain is placed in the third scan chain set.

如圖5所示,在步驟15,重構起點和終點都在頂層的掃描鏈以及完成在前兩步驟10、11中未完成重構的掃描鏈。在步驟150中,自第三掃描鏈集合中將從所需掃描元件最多的掃描鏈取出。在步驟151中,檢查是否有一計畫組含有的可用掃描元件數比需求最多的掃描鏈所需要的掃描元件數多。如有,則步驟152該掃描鏈從含掃描元件數最少的計畫組中選擇;否則,在步驟153該掃描鏈從含有可用的掃描元件數最多的計畫組開始選擇,最後到頂層選擇。如此,避免計畫組被更多的掃描鏈分割,減少該計畫組上的埠。As shown in FIG. 5, in step 15, the reconstruction start and end points are both in the scan chain of the top layer and the scan chain in which the reconstruction is not completed in the first two steps 10, 11. In step 150, the scan chain from the desired scan element is taken from the third scan chain set. In step 151, it is checked whether a plan group contains more scan elements than is required for the most demanding scan chain. If so, the scan chain is selected from the set of plans containing the fewest number of scan elements in step 152; otherwise, at step 153 the scan chain is selected from the set of plans containing the largest number of scan elements available, and finally to the top level selection. In this way, the plan group is prevented from being split by more scan chains, reducing the flaws on the plan group.

第二階段重構:由於在掃描鏈的第一階段重構時,掃描鏈是隨機選擇計畫組內的掃描元件,有可能選中的掃描元件離其較遠,而離其很近的元件並沒有被選中。因而在第二階段重構時,在同一計畫組內的掃描鏈所需的掃描元件將基於掃描元件位置被重新分配。其中,相鄰且離一掃描鏈距離近的掃描元件將被分配到該掃描鏈中,從而縮短該掃描鏈中掃描元件間佈線的總長度。Second-stage reconstruction: Since the scan chain is a scanning component within the random selection plan group when reconstructing in the first stage of the scan chain, it is possible that the selected scanning element is far away from it and the component is close to it. Not selected. Thus, during the second phase of reconstruction, the scan elements required for the scan chain within the same plan group will be redistributed based on the scan element position. Among them, scanning elements adjacent to and close to a scan chain will be allocated to the scan chain, thereby shortening the total length of the wiring between the scan elements in the scan chain.

當以上兩階段重構完成後,還可對每條掃描鏈的掃描元件進行重排序,使得掃描鏈的佈線總數達到最小。After the above two stages of reconstruction are completed, the scanning elements of each scan chain can also be reordered to minimize the total number of wirings of the scan chain.

如圖6所示,根據本發明一實施例將重構位於兩個計畫組40、41及頂層42內的三條掃描鏈50、51、52。其中第一計畫組40包含七個掃描元件a,f,j,h,k,m,n;第二計畫組包含四個掃描元件b,c,i,l,而頂層設有三個掃描元件d,e,g。該三條掃描鏈50、51、52的結構資訊分別是:掃描鏈50包含a、b、c共三個掃描元件,其起點500和終點501均在第一計畫組40裏;從而在兩個計畫組40、41間形成兩條交叉線,四個埠;掃描鏈51包含d、e、f、g、h共五個掃描元件,其起點510在第二計畫組41中,終點511在頂層42;從而在兩個計畫組40、41間形成三條交叉線,五個埠;掃描鏈52包含i、j、k、l、m、n共六個掃描元件,其起點520和終點521均在頂層42;從而在兩計畫組40、41間形成五條交叉線,八個埠。As shown in FIG. 6, three scan chains 50, 51, 52 located within two plan groups 40, 41 and top layer 42 will be reconstructed in accordance with an embodiment of the present invention. The first plan group 40 includes seven scanning elements a, f, j, h, k, m, n; the second plan group contains four scanning elements b, c, i, l, and the top layer has three scans. Element d, e, g. The structural information of the three scan chains 50, 51, and 52 are respectively: the scan chain 50 includes three scan elements a, b, and c, and the start point 500 and the end point 501 are both in the first plan group 40; thus, in the two The plan group 40, 41 forms two intersecting lines, four turns; the scan chain 51 includes d, e, f, g, h, a total of five scanning elements, the starting point 510 in the second plan group 41, the end point 511 At the top layer 42; thus forming three intersecting lines, five turns between the two planning groups 40, 41; the scanning chain 52 comprises six scanning elements of i, j, k, l, m, n, the starting point 520 and the end point 521 are all on the top layer 42; thus forming five intersecting lines, eight turns, between the two plan groups 40,41.

如果僅依現有方法對這三條掃描鏈50、51、52進行重新排序,以掃描鏈50為例,其所有掃描元件中a是距其起點500最近的,則先將a與掃描鏈50的起點500連接。接著經計算b與c中距離a最近的是b,連接a與b。然後連接b與c,c與終點501。如此,如圖7所示,該三條掃描鏈50、51、52調整為:掃描鏈50的掃描元件排序為a、b、c,仍是兩條交叉線,四個埠;掃描鏈51的掃描元件排序為e、d、g、f、h,有兩條交叉線,三個埠;掃描鏈52的掃描元件排序為j、m、n、k、l、i,有三條交叉線,四個埠。If the three scan chains 50, 51, 52 are only reordered according to the existing method, taking the scan chain 50 as an example, in which all of the scan elements a are closest to the start point 500, then the start point of a and the scan chain 50 is first. 500 connections. Then, by calculating b, the closest to distance a in c is b, connecting a and b. Then connect b with c, c and end point 501. Thus, as shown in FIG. 7, the three scan chains 50, 51, 52 are adjusted such that the scan elements of the scan chain 50 are sorted as a, b, c, still two intersecting lines, four turns; scanning of the scan chain 51 The components are sorted into e, d, g, f, h, with two intersecting lines and three turns; the scanning elements of the scan chain 52 are sorted into j, m, n, k, l, i, with three intersecting lines, four port.

可以看出經單純排序後,計畫組40、41的埠和相互間的連線有所減少,然實際上仍有很多埠和連線可以減少。It can be seen that after simple sorting, the lines of the planning groups 40 and 41 and the interconnections between them are reduced, but in fact, there are still many defects and connections that can be reduced.

以下根據本發明對該三條掃描鏈50、51、52進行兩級重構:首先根據該三條掃描鏈50、51、52的資訊,即各掃描鏈所包含的掃描元件及其數量,各掃描元件所在的計畫組、各掃描鏈的起點與終點位置,對該三條掃描鏈50、51、52進行分類。其中,掃描鏈50的起點500與終點501同在計畫組40,則放入第一掃描鏈集合;掃描鏈51的起點510與終點511分別位於第二計畫組41和頂層42,則將其放入第二掃描鏈集合;而掃描鏈52的起點520與終點521均位於頂層42,則歸入第三掃描鏈集合。隨機選擇計畫組40內的掃描元件分配給第一掃描鏈集合內的掃描鏈50,如a、f、h。接著,為第二掃描鏈集合內的掃描鏈51分配掃描元件。因為掃描鏈51的終點511在頂層42,故將起點510所在計畫組41中的元件b、c、i、l分配給掃描鏈51。此時,掃描鏈51還沒有被填滿,因而被放入第三掃描鏈集合。In the following, the three scan chains 50, 51, 52 are reconstructed in two steps according to the invention: firstly, according to the information of the three scan chains 50, 51, 52, that is, the scan components and the number of scan elements included in each scan chain, each scan component The three scan chains 50, 51, and 52 are classified by the plan group and the start and end positions of each scan chain. Wherein, the starting point 500 of the scan chain 50 is the same as the end point 501 in the plan group 40, and then the first scan chain set is placed; the start point 510 and the end point 511 of the scan chain 51 are located in the second plan group 41 and the top layer 42, respectively, It is placed in the second scan chain set; and the start point 520 and the end point 521 of the scan chain 52 are both located on the top layer 42, and are classified into the third scan chain set. The scanning elements within the random selection plan set 40 are assigned to scan chains 50 within the first scan chain set, such as a, f, h. Next, a scan element is assigned to the scan chain 51 within the second scan chain set. Since the end point 511 of the scan chain 51 is at the top layer 42, the elements b, c, i, l in the plan group 41 where the start point 510 is located are assigned to the scan chain 51. At this time, the scan chain 51 has not been filled yet, and thus is placed in the third scan chain set.

此時,第三掃描鏈集合中還有兩條掃描鏈51、52需要構建,其中掃描鏈51需要一個掃描元件,掃描鏈52需要六個掃描元件,因此首先為掃描鏈52選擇掃描元件。又,可用掃描元件最多的計畫組40只有四個可用掃描元件,因而將計畫組40中的可用掃描元件j、k、m、n以及頂層的d、e分配給掃描鏈52。最後為掃描鏈51選擇剩餘的可用掃描元件,即頂層42的g。At this time, there are two scan chains 51, 52 in the third scan chain set that need to be constructed, wherein the scan chain 51 requires one scanning element, and the scan chain 52 requires six scanning elements, so the scanning element is first selected for the scan chain 52. Also, the plan group 40, which has the largest number of scan elements, has only four available scan elements, and thus the available scan elements j, k, m, n in the plan group 40 and d, e on the top layer are assigned to the scan chain 52. Finally, the remaining available scanning elements, i.e., the g of the top layer 42, are selected for the scan chain 51.

經過這一級的重構,各條掃描鏈50、51、52的構成如圖8所示,可見埠和計畫組間的連線的數目減為最少,具體情況如下:掃描鏈50的掃描元件為a、f、h,且該掃描鏈50沒有離開計畫組40;掃描鏈51的掃描元件為b、c、i、l、g,有一條交叉線,一個埠;掃描鏈52的掃描元件為j、k、m、n、d、e,有兩條交叉線,兩個埠。After this level of reconstruction, the composition of each of the scan chains 50, 51, 52 is as shown in Fig. 8. It can be seen that the number of connections between the frame and the plan group is minimized, as follows: Scanning elements of the scan chain 50 A, f, h, and the scan chain 50 does not leave the plan group 40; the scan elements of the scan chain 51 are b, c, i, l, g, with a cross line, a turn; scan elements of the scan chain 52 For j, k, m, n, d, e, there are two cross lines, two 埠.

接下來可對該若該掃描鏈進行第二級重構,由於計畫組41的掃描元件全部分配給掃描鏈51,因而該第二級重構分別在計畫組40和頂層42進行。該第二級重構可採用任意單一組或頂層內的最佳化方法,如考慮罰參數的排序法等。本實施例中僅以常見的距離排序為例,在計畫組40中,m、n、k被分配給掃描鏈50,而h、j、a、f則被分配給掃描鏈51;在頂層42,e被分配給掃描鏈51,d、g被分配給掃描鏈52。Next, if the scan chain is subjected to the second level reconstruction, since the scan elements of the plan group 41 are all allocated to the scan chain 51, the second level reconstruction is performed on the plan group 40 and the top layer 42, respectively. The second level of reconstruction may employ any single group or top level optimization method, such as a ranking method that considers penalty parameters. In this embodiment, only the common distance sorting is taken as an example. In the plan group 40, m, n, k are assigned to the scan chain 50, and h, j, a, and f are assigned to the scan chain 51; 42, e is assigned to the scan chain 51, and d, g are assigned to the scan chain 52.

如圖9所示,這三條掃描鏈的組成變為:掃描鏈50包含n、m、k,僅在計畫組40內,且長度縮短;掃描鏈51包含b、i、c、l、e,有一條交叉線,一個埠,且長度縮短;掃描鏈52包含h、j、a、f、g、d,有兩條交叉線,兩個埠,且長度縮短。As shown in FIG. 9, the composition of the three scan chains becomes: scan chain 50 includes n, m, k, only within the plan group 40, and the length is shortened; the scan chain 51 includes b, i, c, l, e There is a cross line, a 埠, and the length is shortened; the scan chain 52 includes h, j, a, f, g, d, has two intersecting lines, two 埠, and the length is shortened.

對應本發明的掃描鏈的重構方法,本發明提供一種掃描鏈的重構裝置2。如圖10所示,本發明的掃描鏈的結構重構裝置包含一第一級重構器20與第二級重構器21。Corresponding to the reconstruction method of the scan chain of the present invention, the present invention provides a reconstruction apparatus 2 for a scan chain. As shown in FIG. 10, the structure reconstruction apparatus of the scan chain of the present invention includes a first stage reconstructor 20 and a second stage reconstructor 21.

所有的掃描鏈首先被輸入該第一級重構器20,由該第一級重構器20在掃描鏈重構的第一階段,以計畫組中掃描元件的數目為主要依據,讓一掃描鏈從儘可能少的計畫組中選取掃描元件。該第一級重構器20在重構過程中將充分考慮掃描鏈的起點和終點與計畫組的關係,使同一計畫組中的掃描元件會被優先分配給與之有關聯的掃描鏈,從而很好的減少計畫組間可能出現的連線的數目。All scan chains are first input to the first stage reconstructor 20, and the first stage reconstructor 20 uses the number of scanning elements in the plan group as the main basis in the first stage of the scan chain reconstruction. The scan chain selects the scan elements from as few plan groups as possible. The first level reconstructor 20 will fully consider the relationship between the start and end points of the scan chain and the plan group during the reconstruction process, so that the scan elements in the same plan group will be preferentially assigned to the scan chain associated with it. , which is a good way to reduce the number of connections that may occur between the planning groups.

掃描鏈經第一級重構器20重構後由其輸入第二級重構器21。第二級重構器21在掃描鏈重構的第二階段,以掃描元件的位置資訊為主要依據,在一個計畫組內進行掃描元件分配,將相鄰的掃描元件分配給同一個掃描鏈,從而減少每一掃描鏈內掃描元件之間佈線的長度。The scan chain is reconstructed by the first stage reconstructor 20 and input to the second stage reconstructor 21 therefrom. In the second stage of scan chain reconstruction, the second stage reconstructor 21 uses the position information of the scanning component as the main basis, performs scanning component allocation in one planning group, and assigns adjacent scanning components to the same scanning chain. Thereby reducing the length of the wiring between the scanning elements in each scan chain.

以下分別就該掃描鏈的重構裝置2的第一級重構器20與第二級重構器21詳細說明如下:The first stage reconstructor 20 and the second level reconstructor 21 of the reconstruction apparatus 2 of the scan chain are described in detail below as follows:

第一級重構器:第一級重構器20需完成掃描鏈重構的第一階段任務,其重構的順序是依據各掃描鏈的起點與終點的位置,使掃描鏈儘可能不穿出其所在的計畫組。如圖11,該第一級重構器20包含一分類器200,其由輸入埠201接收所有掃描鏈並進行分類。其中起點和終點在一相同計畫組內的掃描鏈歸為第一掃描鏈集合,會優先從其所在計畫組內選擇掃描元件;起點和終點不在同一計畫組內的掃描鏈歸為第二掃描鏈集合,以較低優先順序處理;起點和終點都在頂層的掃描鏈被歸為第三掃描鏈集合,被最後處理。The first stage reconstructor: the first stage reconstructor 20 needs to complete the first stage task of the scan chain reconstruction, and the order of reconstruction is based on the positions of the start and end points of each scan chain, so that the scan chain is not worn as much as possible. Out of the program group in which it is located. As shown in FIG. 11, the first level reconstructor 20 includes a classifier 200 that receives all scan chains from the input port 201 and classifies them. The scan chain in which the start point and the end point are in the same plan group is classified as the first scan chain set, and the scan elements are preferentially selected from the plan group in which they are located; the scan chains in which the start point and the end point are not in the same plan group are classified as the first The second scan chain set is processed in a lower priority order; the scan chain at the top and end points is classified as the third scan chain set and is finally processed.

一分配器202與該分類器200通信連接,其首先檢查該第一掃描鏈集合是否為空,如存在起點和終點在同一計畫組內的掃描鏈,則重構起點和終點在同一計畫組內的掃描鏈。否則檢查第二掃描鏈集合是否為空,如存在起點和終點不在同一計畫組內的掃描鏈,或只有一個端點,即起點或終點在頂層的掃描鏈,則重構該第二掃描鏈集合內的掃描鏈。否則檢查第三掃描鏈集合是否為空。如非空,則重構該第三掃描鏈集合內的掃描鏈;如空,則結束該第一階段重構。A distributor 202 is communicatively coupled to the classifier 200, which first checks if the first scan chain set is empty, such as a scan chain having a start point and an end point within the same plan group, then reconstructing the start point and the end point in the same plan The scan chain within the group. Otherwise, it is checked whether the second scan chain set is empty. If there is a scan chain whose start point and end point are not in the same plan group, or only one end point, that is, the start or end point is at the top scan chain, the second scan chain is reconstructed. The scan chain within the collection. Otherwise check if the third scan chain set is empty. If not empty, the scan chain in the third scan chain set is reconstructed; if empty, the first stage reconstruction is ended.

具體的,該分配器202首先找出第一掃描鏈集合中需要掃描元件數量最少的掃描鏈,將其自第一掃描鏈集合取出。檢查該掃描鏈的起點與終點所在計畫組中的可用掃描元件數量是否滿足該掃描鏈需要。如足夠,依需求數量將該計畫組中可用掃描元件分配該掃描鏈;否則,將該計畫組中所有的可用掃描元件分配該掃描鏈,並將其放入第三掃描鏈集合。Specifically, the distributor 202 first finds a scan chain in the first scan chain set that requires the least number of scan components, and takes it out from the first scan chain set. Check that the number of available scan elements in the plan group where the start and end of the scan chain are located meets the scan chain requirements. If sufficient, the scan elements available in the plan group are assigned to the scan chain by the required amount; otherwise, all of the available scan elements in the plan set are assigned to the scan chain and placed in the third scan chain set.

在第一掃描鏈集合的掃描鏈重構結束後,該第一級重構器20重構該第二掃描鏈集合內的掃描鏈。為了掃描鏈儘可能少的穿出計畫組,分配器202同樣找出對第二掃描鏈集合中掃描元件需要數量最少的掃描鏈,將其自第二掃描鏈集合取出。判斷該掃描鏈是否有一個端點(起點或終點)在頂層。如是,則判斷另一端點(終點或起點)所在計畫組內的掃描元件數量是否滿足該掃描鏈需要。如該計畫組內的掃描元件數足夠,則將該計畫組內的掃描元件依需求數量分配給該掃描鏈;否則,將該計畫組內的掃描元件分配給該掃描鏈,並將該掃描鏈添加至第三掃描鏈集合。若該掃描鏈的起點與終點在兩個不同的計畫組,針對該兩個計畫組,分別計算所有可能從其中選取掃描元件的掃描鏈對於掃描元件的需求總數。判斷該兩個計畫組內的可用掃描元件是否滿足該掃描鏈的需要。如滿足,則從對應掃描元件需求總數較少的一計畫組中優先選擇掃描元件分配給該掃描鏈,不足的量從另一計畫組選擇;否則,將兩個計畫組中的可用掃描元件都分配給該掃描鏈,並將該掃描鏈放入第三掃描鏈集合。After the scan chain reconstruction of the first scan chain set is completed, the first stage reconstructor 20 reconstructs the scan chain within the second scan chain set. In order to scan the chain as little as possible out of the plan group, the distributor 202 also finds the scan chain that requires the least number of scan elements in the second scan chain set and extracts it from the second scan chain set. Determine if the scan chain has an endpoint (start or end) at the top. If so, it is determined whether the number of scanning elements in the planning group where the other endpoint (end point or starting point) is located satisfies the scanning chain requirement. If the number of scanning elements in the planning group is sufficient, the scanning elements in the planning group are allocated to the scanning chain according to the required number; otherwise, the scanning elements in the planning group are allocated to the scanning chain, and The scan chain is added to the third scan chain set. If the start and end points of the scan chain are in two different plan groups, for each of the two plan groups, the total number of scan chains required for the scan elements from which the scan elements may be selected is calculated. It is determined whether the available scanning elements within the two planning groups meet the needs of the scan chain. If yes, the scan component is preferentially assigned to the scan chain from a plan group corresponding to the total number of scan component requirements, and the insufficient amount is selected from another plan group; otherwise, the two plan groups are available. Scanning elements are assigned to the scan chain and the scan chain is placed in a third scan chain set.

在檢查第二掃描鏈集合為空時,該第一級重構器20重構起點和終點都在頂層的掃描鏈,以及完成之前未完成重構的掃描鏈。分配器202自分類器200的第三掃描鏈集合中將從所需掃描元件最多的掃描鏈取出。檢查是否有一計畫組含有的可用的掃描元件數比需求最多的掃描鏈所需要的掃描元件數多。如有,則該掃描鏈從含掃描元件數最少的計畫組中選擇;否則,該掃描鏈從含有可用的掃描元件數最多的計畫組開始選擇,最後到頂層選擇。如此,避免計畫組被更多的掃描鏈分割,減少該計畫組上的埠。Upon checking that the second scan chain set is empty, the first stage reconstructor 20 reconstructs the scan chain with the start and end points at the top level, and the scan chain that did not complete the reconstruction before completion. The splitter 202 is taken from the scan chain of the third scan chain of the classifier 200 from the scan chain of the most desired scan elements. Check if a plan group contains more scan elements than is needed for the most demanding scan chain. If so, the scan chain is selected from a set of plans containing the fewest number of scan elements; otherwise, the scan chain is selected from the set of plans containing the largest number of scan elements available, and finally to the top level selection. In this way, the plan group is prevented from being split by more scan chains, reducing the flaws on the plan group.

第二級重構器:第一級重構器20在重構結束後,由輸出埠203傳輸給第二級重構器21。由於第一級重構器20在重構掃描鏈時,是隨機選擇計畫組內的掃描元件分配給掃描鏈的,有可能選中的掃描元件離該掃描鏈較遠,而離其很近的元件並沒有被選中。因而第二級重構器21會將在同一計畫組內的掃描鏈所需的掃描元件基於其位置重新分配。其中,相鄰且離一掃描鏈距離近的掃描元件將被分配到該掃描鏈中,從而縮短該掃描鏈中掃描元件間佈線的總長度。The second stage reconstructor: The first stage reconstructor 20 is transmitted from the output port 203 to the second stage reconstructor 21 after the end of the reconstruction. Since the first stage reconstructor 20 reconstructs the scan chain, the scan elements in the randomly selected plan group are allocated to the scan chain, and it is possible that the selected scan element is far from the scan chain and is close to it. The components are not selected. Thus the second stage reconstructor 21 will redistribute the scanning elements required for the scan chain within the same set of plans based on their position. Among them, scanning elements adjacent to and close to a scan chain will be allocated to the scan chain, thereby shortening the total length of the wiring between the scan elements in the scan chain.

本發明的掃描鏈的重構方法與裝置較現有技術僅考慮降低掃描鏈長度的技術方案,在第一階段重構時將全局掃描鏈依其端點的位置進行分類,使掃描鏈穿過儘可能少的計畫組。因而大幅度降低計畫組上的埠與計畫組間的連線,降低了資源需求和後續設計難度。本發明還可在第一階段後進行第二階段重構,同一計畫組內的掃描鏈所需的掃描元件基於其位置重新分配,從而進一步縮短掃描鏈的長度。Compared with the prior art, the method and apparatus for reconstructing a scan chain of the present invention only considers a technical solution for reducing the length of a scan chain. In the first stage of reconstruction, the global scan chain is classified according to the position of its end point, so that the scan chain is exhausted. There may be fewer plan groups. Therefore, the connection between the frame and the plan group on the plan group is greatly reduced, which reduces the resource requirement and the difficulty of subsequent design. The present invention can also perform the second stage reconstruction after the first stage, and the scanning elements required for the scan chain in the same plan group are redistributed based on their positions, thereby further shortening the length of the scan chain.

本發明的技術內容及技術特點已揭示如上,然而熟悉本領域的技術人員仍可能基於本發明的教示及揭示而作種種不背離本發明精神的替換及修飾。因此,本發明的保護範圍應不限於實施例所揭示的內容,而應包括各種不背離本發明的替換及修飾,並為本專利之申請專利範圍所涵蓋。The technical contents and technical features of the present invention have been disclosed as above, and those skilled in the art can still make various substitutions and modifications without departing from the spirit and scope of the invention. Therefore, the scope of the invention should be construed as not limited by the scope of the invention, and the invention is intended to

20...第一級重構器20. . . First level reconstructor

21...第二級重構器twenty one. . . Second level reconstructor

10~16...步驟10~16. . . step

40、41...兩個計畫組40, 41. . . Two planning groups

42...頂層42. . . Top

50~52...三條掃描鏈50~52. . . Three scan chains

51...掃描鏈51. . . Scan chain

52...掃描鏈52. . . Scan chain

71~75...步驟71~75. . . step

110~113...步驟110~113. . . step

130~138...步驟130~138. . . step

150~153...步驟150~153. . . step

200...分類器200. . . Classifier

201...輸入埠201. . . Input 埠

202...分配器202. . . Distributor

203...輸出埠203. . . Output埠

500...起點500. . . starting point

501...終點501. . . end

510...起點510. . . starting point

511...終點511. . . end

520...起點520. . . starting point

521...終點521. . . end

圖1是一使用距離排序法進行掃描鏈重構的流程圖;Figure 1 is a flow chart for performing scan chain reconstruction using distance sorting;

圖2是本發明的第一階段重構的流程圖;2 is a flow chart of the first stage reconstruction of the present invention;

圖3是本發明的第一階段重構中對第一掃描鏈集合內掃描鏈重構的流程圖;3 is a flow chart of reconstruction of a scan chain within a first scan chain set in a first stage reconstruction of the present invention;

圖4是本發明的第一階段重構中對第二掃描鏈集合內掃描鏈重構的流程圖;4 is a flow chart of reconstruction of a scan chain within a second scan chain set in a first stage reconstruction of the present invention;

圖5是本發明的第一階段重構中對第三掃描鏈集合內掃描鏈重構的流程圖;5 is a flow chart of reconstruction of a scan chain within a third scan chain set in a first stage reconstruction of the present invention;

圖6是一晶片設計後未進行最佳化時的掃描鏈的示意圖;6 is a schematic diagram of a scan chain when a wafer is not optimized after design;

圖7是對圖6中掃描鏈進行排序最佳化後的示意圖;7 is a schematic diagram of sorting the scan chain of FIG. 6 after optimization;

圖8是對圖6中掃描鏈進行第一階段重構後的示意圖;8 is a schematic diagram of the first stage reconstruction of the scan chain of FIG. 6;

圖9是對圖6中掃描鏈進行第二階段重構後的示意圖;9 is a schematic diagram of the second stage reconstruction of the scan chain of FIG. 6;

圖10是本發明的掃描鏈的重構裝置的結構框圖;及Figure 10 is a block diagram showing the structure of a reconstruction apparatus for a scan chain of the present invention;

圖11是本發明的第一級重構器的結構框圖。Figure 11 is a block diagram showing the structure of the first stage reconstructor of the present invention.

10~16...步驟10~16. . . step

Claims (16)

一種掃描鏈的重構方法,該方法包含:步驟一:對該多個掃描鏈進行分類,其中掃描鏈起點和掃描鏈終點在一相同計畫組內的掃描鏈歸為第一掃描鏈集合;掃描鏈起點和掃描鏈終點不在同一計畫組內的掃描鏈歸為第二掃描鏈集合;掃描鏈起點和掃描鏈終點都在一頂層的掃描鏈被歸為第三掃描鏈集合;步驟二:針對該第一掃描鏈集合中之每一掃描鏈,利用該掃描鏈相對應之同一計畫組內之掃描元件重構該掃描鏈,直至該第一掃描鏈集合為空,其中,如果該被重構之掃描鏈所需掃描元件不能被其相對應之同一計畫組內之剩餘掃描元件滿足,則將該相對應之同一計畫組內之該剩餘掃描元件給予該掃描鏈並將該掃描鏈移至該第三掃描鏈集合中;步驟三:針對該第二掃描鏈集合中之每一掃描鏈,利用該掃描鏈相對應之不同旳計畫組內之掃描元件重構該掃描鏈,直至該第二掃描鏈集合為空,其中,如果該被重構之掃描鏈所需掃描元件不能被其相對應之不同旳計畫組內之剩餘掃描元件滿足,則將該相對應之不同旳計畫組內之該剩餘掃描元件給予該掃描鏈並將該掃描鏈移至該第三掃描鏈集合中;步驟四:重構該第三掃描鏈集合中之每一掃描鏈,直至該第三掃描鏈集合為空。 A method for reconstructing a scan chain, the method comprising: step 1: classifying the plurality of scan chains, wherein a scan chain start point and a scan chain end point are classified into a first scan chain set in a same plan group; The scan chain that is not in the same plan group as the scan chain start point and the scan chain end point is classified as the second scan chain set; the scan chain start point and the scan chain end point are both classified into the third scan chain set in the top scan chain; Step 2: For each scan chain in the first scan chain set, the scan chain is reconstructed by using scan elements in the same plan group corresponding to the scan chain until the first scan chain set is empty, wherein if the The scanned elements required for the reconstructed scan chain are not satisfied by the remaining scan elements in the corresponding plan group, and the remaining scan elements in the corresponding same plan group are given to the scan chain and the scan is performed Moving the chain to the third scan chain set; step 3: reconstructing the scan chain by using scan elements in different scan plan groups corresponding to the scan chain for each scan chain in the second scan chain set Until the second scan chain set is empty, wherein if the required scan elements of the reconstructed scan chain cannot be satisfied by the remaining scan elements in their corresponding different plan groups, the corresponding differences are The remaining scanning elements in the planning group are given to the scan chain and the scan chain is moved to the third scan chain set; step four: reconstructing each scan chain in the third scan chain set until the third The scan chain set is empty. 根據請求項1所述的掃描鏈的重構方法,該步驟二進一步包含:自該第一掃描鏈集合中取出需要掃描元件數量最少的一掃描鏈;檢查該掃描鏈的端點所在的一計畫組中的可用掃描元件數量是否滿足該掃描鏈需要;如足夠,依該掃描鏈的需求數量將該計畫組中的可用掃描元件分配該掃描鏈;否則將該計畫組中所有的可用掃描元件分配該掃描鏈,並將該掃描鏈放入第三掃描鏈集合。 According to the method for reconstructing a scan chain according to claim 1, the step 2 further includes: extracting, from the first scan chain set, a scan chain that requires the least number of scan components; and checking the end of the scan chain. Whether the number of available scanning elements in the drawing group meets the needs of the scanning chain; if sufficient, the available scanning elements in the planning group are assigned to the scanning chain according to the required number of the scanning chain; otherwise all the available in the planning group are available The scan element assigns the scan chain and places the scan chain into a third scan chain set. 根據請求項1所述的掃描鏈的重構方法,其中該步驟三進一步包含:自該第二掃描鏈集合中取出掃描元件需要數量最少的一掃描鏈;判斷該掃描鏈是否有一個端點在該頂層;如是,在步驟I判斷該掃描鏈的另一端點所在計畫組內的可用掃描元件數量是否滿足該掃描鏈需要;否則在步驟II針對該掃描鏈的兩端點所在的兩個計畫組,分別計算所有可能從其中選取掃描元件的掃描鏈的掃描元件需求總數。 The method for reconstructing a scan chain according to claim 1, wherein the step 3 further comprises: removing a scan chain from the second scan chain set by a minimum number of scan chains; determining whether the scan chain has an endpoint The top layer; if so, in step I, it is determined whether the number of available scanning elements in the plan group of the other end of the scan chain satisfies the scan chain requirement; otherwise, in step II, the two ends of the scan chain are located A group of paintings that computes the total number of scanning component requirements for all scan chains from which scanning elements may be selected. 根據請求項3所述的掃描鏈的重構方法,其中該步驟I進一步包含: 如該計畫組內的掃描元件數足夠,則將該計畫組內的掃描元件依需求數量分配給該掃描鏈;否則將該計畫組內的掃描元件分配給該掃描鏈,並將該掃描鏈添加至該第三掃描鏈集合。 The method for reconstructing a scan chain according to claim 3, wherein the step I further comprises: If the number of scanning elements in the planning group is sufficient, the scanning elements in the planning group are allocated to the scanning chain according to the required number; otherwise, the scanning elements in the planning group are allocated to the scanning chain, and the A scan chain is added to the third scan chain set. 根據請求項3所述的掃描鏈的重構方法,其中該步驟II進一步包含:判斷該兩個計畫組內的可用掃描元件是否滿足該掃描鏈的需要,如滿足,則從對應掃描元件需求總數較少的一計畫組中優先選擇掃描元件分配給該掃描鏈,不足的掃描元件從另一計畫組選擇;否則將該兩個計畫組中的可用掃描元件都分配給該掃描鏈,並將該掃描鏈放入該第三掃描鏈集合。 The method for reconstructing a scan chain according to claim 3, wherein the step II further comprises: determining whether the available scan elements in the two plan groups meet the needs of the scan chain, and if so, from the corresponding scan component requirements The scan component is preferentially assigned to the scan chain in a smaller total number of plan groups, and the insufficient scan components are selected from another plan group; otherwise, the available scan elements in the two plan groups are assigned to the scan chain And placing the scan chain into the third scan chain set. 根據請求項1所述的掃描鏈的重構方法,其中該步驟四進一步包含:自該第三掃描鏈集合中取出所需掃描元件最多的一掃描鏈;檢查是否有一計畫組含有的可用掃描元件數比需求最多的一掃描鏈所需要的掃描元件數多;如有,則該掃描鏈從含掃描元件數最少的一計畫組中選擇;否則,從含有該可用掃描元件數最多的計畫組開始為該掃描鏈分配掃描元件,最後到該頂層選擇掃描元件。 The method for reconstructing a scan chain according to claim 1, wherein the step 4 further comprises: extracting a scan chain of the scan element from the third scan chain set; checking whether there is a scan available in the plan group. The number of components is more than the number of scanning components required for a scan chain that requires the most; if so, the scan chain is selected from a plan group containing the fewest number of scan components; otherwise, the number of scan components having the largest number of available scan components is included. The group begins to assign scanning elements to the scan chain and finally selects the scanning elements to the top layer. 根據請求項1-6之任一所述的掃描鏈的重構方法,其進一步包含一第二階段重構,在該第二階段重構在同一計畫組內的掃描鏈所需的掃描元件將基於掃描元件位置被重新分配。 The method of reconstructing a scan chain according to any one of claims 1-6, further comprising a second stage reconstruction in which the scan elements required for the scan chain within the same plan group are reconstructed The location will be redistributed based on the scan component. 根據請求項7所述的掃描鏈的重構方法,其中相鄰且距一掃描鏈近的掃描元件將被分配到該掃描鏈。 The method of reconstructing a scan chain according to claim 7, wherein scanning elements adjacent to and adjacent to a scan chain are to be allocated to the scan chain. 一種掃描鏈的重構裝置,其包括一第一級重構器,該第一級重構器包含:一分類器,對若干掃描鏈進行分類,其中起點和終點在一相同計畫組內的掃描鏈歸為第一掃描鏈集合,起點和終點不在同一計畫組內的掃描鏈歸為第二掃描鏈集合,起點和終點都在一頂層的掃描鏈被歸為第三掃描鏈集合;一分配器,與該分類器通信連接,其首先針對該第一掃描鏈集合內的每一掃描鏈,利用該掃描鏈相對應之同一計畫組內之掃描元件重構該掃描鏈,直至該第一掃描鏈集合為空,其中,如果該被重構之掃描鏈所需掃描元件不能被其相對應之同一計畫組內之剩餘掃描元件滿足,則將該相對應之同一計畫組內之該剩餘掃描元件給予該掃描鏈並將該掃描鏈移至該第三掃描鏈集合中,然後針對該第二掃描鏈集合內的每一掃描鏈,利用該掃描鏈相對應之不同旳計畫組內之掃描元件重構該掃描鏈,直至該第二掃描鏈集合為空,其中,如果該被重構之掃描鏈所需掃描元件不能被其相對應之不同旳計畫組內之剩餘掃描元件滿足,則將該 相對應之不同旳計畫組內之該剩餘掃描元件給予該掃描鏈並將該掃描鏈移至該第三掃描鏈集合中,最後重構該第三掃描鏈集合內的掃描鏈直至該第三掃描鏈集合為空。 A scan chain reconstruction apparatus includes a first level reconstructor, the first stage reconstructor comprising: a classifier for classifying a plurality of scan chains, wherein the start point and the end point are within a same plan group The scan chain is classified into the first scan chain set, and the scan chain whose start point and end point are not in the same plan group is classified into the second scan chain set, and the start and end points are classified into the third scan chain set in a top scan chain; a distributor, in communication with the classifier, first reconstructing the scan chain for each scan chain in the first scan chain set by using scan elements in the same plan group corresponding to the scan chain until the A scan chain set is empty, wherein if the required scan elements of the reconstructed scan chain cannot be satisfied by the remaining scan elements in the corresponding plan group, the corresponding plan group is The remaining scanning elements are given to the scan chain and the scan chain is moved into the third scan chain set, and then for each scan chain in the second scan chain set, different scan plan groups corresponding to the scan chain are utilized. Inner sweep Reconfiguring the scan chain until the second scan chain set is empty, wherein if the desired scan element of the reconstructed scan chain cannot be satisfied by the remaining scan elements in its corresponding different plan group, then Will The remaining scan elements in the corresponding different plan groups are given to the scan chain and the scan chain is moved into the third scan chain set, and finally the scan chain in the third scan chain set is reconstructed until the third The scan chain set is empty. 根據請求項9所述的掃描鏈的重構裝置,其中該分配器在重構該第一掃描鏈集合內的掃描鏈時,自該第一掃描鏈集合中取出需要掃描元件數量最少的一掃描鏈,且檢查該掃描鏈的端點所在的一計畫組中的可用掃描元件數量是否滿足該掃描鏈需要;如足夠,依該掃描鏈的需求數量將該計畫組中的可用掃描元件分配該掃描鏈,否則將該計畫組中所有的可用掃描元件分配該掃描鏈,並將該掃描鏈放入第三掃描鏈集合。 The apparatus for reconstructing a scan chain according to claim 9, wherein the identifier extracts a scan from the first scan chain set that requires the least number of scan components when reconstructing the scan chain in the first scan chain set Chaining, and checking whether the number of available scanning elements in a plan group of the end of the scan chain satisfies the scan chain requirement; if sufficient, assigning available scan elements in the plan group according to the required number of scan chains The scan chain, otherwise all of the available scan elements in the plan set are assigned to the scan chain and placed in the third scan chain set. 根據請求項9所述的掃描鏈的重構裝置,其中該分配器在重構該第二掃描鏈集合內的掃描鏈時,自該第二掃描鏈集合中取出掃描元件需要數量最少的一掃描鏈,判斷該掃描一端點所在計畫組內的可用掃描元件數量是否滿足該掃鏈是否有一個端點在該頂層;如是,則判斷該掃描鏈的另描鏈需要,否則針對該掃描鏈的兩端點所在的兩個計畫組,分別計算所有可能從其中選取掃描元件的掃描鏈的掃描元件需求總數。 The apparatus for reconstructing a scan chain according to claim 9, wherein the allergen requires a minimum number of scans to be taken from the second scan chain set when reconstructing the scan chain in the second scan chain set a chain, determining whether the number of available scanning elements in the planning group of the scanning end point satisfies whether the scanning chain has an end point at the top layer; if so, determining another scanning chain of the scanning chain, otherwise, for the scanning chain The two plan groups in which the two endpoints are located, respectively, calculate the total number of scan component requirements for all scan chains from which the scan elements may be selected. 根據請求項11所述的掃描鏈的重構裝置,其中該分配器在判斷該掃描鏈的另一端點所在計畫組內的可用掃描元件數量是否滿足該掃描鏈需要時;如該計畫組內的掃描元件數 足夠,則將該計畫組內的掃描元件依需求數量分配給該掃描鏈,否則將該計畫組內的掃描元件分配給該掃描鏈,並將該掃描鏈添加至第三掃描鏈集合。 The apparatus for reconstructing a scan chain according to claim 11, wherein the allocator determines whether the number of available scan elements in the plan group of the other end of the scan chain satisfies the scan chain requirement; Number of scanning elements If sufficient, the scanning elements in the planning group are allocated to the scanning chain according to the required number, otherwise the scanning elements in the planning group are assigned to the scanning chain, and the scanning chain is added to the third scanning chain set. 根據請求項11所述的掃描鏈的重構裝置,其中該分配器在該掃描鏈沒有端點在該頂層時,判斷該兩個計畫組內的可用掃描元件是否滿足該掃描鏈的需要;如滿足,則從對應掃描元件需求總數較少的一計畫組中優先選擇掃描元件分配給該掃描鏈,不足的量從另一計畫組選擇,否則將兩個計畫組中的可用掃描元件都分配給該掃描鏈,並將該掃描鏈放入第三掃描鏈集合。 The apparatus for reconstructing a scan chain according to claim 11, wherein the allocator determines whether the available scan elements in the two plan groups meet the needs of the scan chain when the scan chain has no endpoints at the top layer; If yes, the scan component is preferentially assigned to the scan chain from a plan group having a smaller total number of corresponding scan component requirements, and the insufficient amount is selected from another plan group, otherwise the available scans in the two plan groups are The components are assigned to the scan chain and the scan chain is placed in a third scan chain set. 根據請求項9所述的掃描鏈的重構裝置,其中該分配器在重構該第三掃描鏈集合內的掃描鏈時,自該第三掃描鏈集合中取出所需掃描元件最多的一掃描鏈;檢查是否有一計畫組含有的可用掃描元件數比需求最多的掃描鏈所需要的掃描元件數多;如有,則該掃描鏈從含掃描元件數最少的一計畫組中選擇,否則從含有該可用掃描元件數最多的計畫組開始為該掃描鏈分配掃描元件,最後到該頂層選擇。 The apparatus for reconstructing a scan chain according to claim 9, wherein the allergen extracts a scan of the desired scan component from the third scan chain set while reconstructing the scan chain in the third scan chain set Chain; check if a plan group contains more scan elements than the most demanding scan chain; if so, the scan chain is selected from a plan group with the fewest scan elements, otherwise A scan element is assigned to the scan chain starting from a plan group containing the largest number of available scan elements, and finally to the top level selection. 根據請求項14所述的掃描鏈的重構裝置,其進一步包含一第二級重構器,與該第一級重構器通信連接,其將該第一級重構器重構的掃描鏈基於掃描元件位置將同一計畫組內的掃描鏈所需的掃描元件重新分配。 The apparatus for reconstructing a scan chain according to claim 14, further comprising a second level reconstructor communicatively coupled to the first level reconstructor, the scan chain reconstructed by the first level reconstructor The scan elements required for the scan chain within the same plan group are redistributed based on the scan element position. 根據請求項15所述的掃描鏈的重構裝置,其中該第二重構器將相鄰且離一掃描鏈距離近的一掃描元件將被分配到該掃描鏈。A reconstruction apparatus for a scan chain according to claim 15, wherein the second reconstructor distributes a scanning element adjacent to and away from a scan chain to the scan chain.
TW099104885A 2010-02-12 2010-02-12 Consider the reconstruction method and device of the scan chain of the program group TWI497328B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW099104885A TWI497328B (en) 2010-02-12 2010-02-12 Consider the reconstruction method and device of the scan chain of the program group

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW099104885A TWI497328B (en) 2010-02-12 2010-02-12 Consider the reconstruction method and device of the scan chain of the program group

Publications (2)

Publication Number Publication Date
TW201133258A TW201133258A (en) 2011-10-01
TWI497328B true TWI497328B (en) 2015-08-21

Family

ID=46751133

Family Applications (1)

Application Number Title Priority Date Filing Date
TW099104885A TWI497328B (en) 2010-02-12 2010-02-12 Consider the reconstruction method and device of the scan chain of the program group

Country Status (1)

Country Link
TW (1) TWI497328B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030120987A1 (en) * 2001-12-20 2003-06-26 Yvon Savaria Fault tolerant scan chain for a parallel processing system
CN1604093A (en) * 2004-11-04 2005-04-06 复旦大学 Scanning chain construction method based on overall situation
US20060265683A1 (en) * 2005-05-19 2006-11-23 Nec Electronics Corporation Circuit layout device, circuit layout method, and program for execution thereof
US20060271904A1 (en) * 2005-05-27 2006-11-30 Lsi Logic Corporation Method for abstraction of manufacturing test access and control ports to support automated RTL manufacturing test insertion flow for reusable modules
TW200931045A (en) * 2007-10-31 2009-07-16 Inovys Corp Methods for analyzing scan chains, and for determining numbers or locations of hold time faults in scan chains

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030120987A1 (en) * 2001-12-20 2003-06-26 Yvon Savaria Fault tolerant scan chain for a parallel processing system
CN1604093A (en) * 2004-11-04 2005-04-06 复旦大学 Scanning chain construction method based on overall situation
US20060265683A1 (en) * 2005-05-19 2006-11-23 Nec Electronics Corporation Circuit layout device, circuit layout method, and program for execution thereof
US20060271904A1 (en) * 2005-05-27 2006-11-30 Lsi Logic Corporation Method for abstraction of manufacturing test access and control ports to support automated RTL manufacturing test insertion flow for reusable modules
TW200931045A (en) * 2007-10-31 2009-07-16 Inovys Corp Methods for analyzing scan chains, and for determining numbers or locations of hold time faults in scan chains

Also Published As

Publication number Publication date
TW201133258A (en) 2011-10-01

Similar Documents

Publication Publication Date Title
US20010018760A1 (en) Method and apparatus for automatically generating multi-terminal nets, and program storage medium storing program for executing automatic multi-terminal net generation method
WO2011051784A1 (en) Method and device for reordering scan chains considering plan groups
WO2011051788A2 (en) Method and device for reconstructing scan chain based on bidirectional preference selection in physical design
EP1929317A2 (en) Test sequence optimization method and design tool
CN110147632A (en) A kind of topology matching route bus method considering non-uniform track and barrier
CN109800534A (en) FPGA design circuit drawing generating method, device, computer equipment and storage medium
CN117032150B (en) Intelligent production scheduling method and system for machining workshop
TWI497328B (en) Consider the reconstruction method and device of the scan chain of the program group
US8601429B1 (en) Method for connecting flip chip components
CN112199407B (en) Data packet ordering method, device, equipment and storage medium
CN116384322B (en) Connection method and device of programmable logic module in FPGA and electronic equipment
CN102809711B (en) Wire spreading method for testing FPGA (Field Programmable Gata Array) single long line and linked switch
CN107104829B (en) Physical equipment matching distribution method and device based on network topology data
CN106682290B (en) Wiring method and device for programmable logic device
US8479138B1 (en) Global constraint optimization
CN109670268B (en) Method for connecting multiple IP and EFPGA ports
TWI476422B (en) Scanning Chain Reconfiguration Method and Device Based on Bidirectional Optimization Selection in Entity Design
CN103661497B (en) A kind of running number distribution method, device and running number distributing box
WO2018103435A1 (en) Circuit board order allocation method and system
CN107959710A (en) Synergic modeling method based on cloud platform, modeling control server and client side
CN109344541B (en) Method for judging wiring direction according to regional wiring congestion degree
CN104217970B (en) Sampling measures method and system
Seemuth et al. Flexible interconnect in 2.5 D ICs to minimize the interposer's metal layers
CN104007383A (en) Method for optimizing test wrapper scan chains of three-dimensional IP core
CN112288121A (en) Passenger flow-based optimization method and device for overweight bus route