TWI796672B - Multi-bit flip-flop and control method thereof - Google Patents

Multi-bit flip-flop and control method thereof Download PDF

Info

Publication number
TWI796672B
TWI796672B TW110114672A TW110114672A TWI796672B TW I796672 B TWI796672 B TW I796672B TW 110114672 A TW110114672 A TW 110114672A TW 110114672 A TW110114672 A TW 110114672A TW I796672 B TWI796672 B TW I796672B
Authority
TW
Taiwan
Prior art keywords
signal
data output
flop
flip
test
Prior art date
Application number
TW110114672A
Other languages
Chinese (zh)
Other versions
TW202143643A (en
Inventor
其輝 池
邱怡洪
Original Assignee
聯發科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US17/225,101 external-priority patent/US11714125B2/en
Application filed by 聯發科技股份有限公司 filed Critical 聯發科技股份有限公司
Publication of TW202143643A publication Critical patent/TW202143643A/en
Application granted granted Critical
Publication of TWI796672B publication Critical patent/TWI796672B/en

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K3/00Circuits for generating electric pulses; Monostable, bistable or multistable circuits
    • H03K3/02Generators characterised by the type of circuit or by the means used for producing pulses
    • H03K3/027Generators characterised by the type of circuit or by the means used for producing pulses by the use of logic circuits, with internal or external positive feedback
    • H03K3/037Bistable circuits

Landscapes

  • Tests Of Electronic Circuits (AREA)
  • Semiconductor Integrated Circuits (AREA)
  • Shift Register Type Memory (AREA)
  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)
  • Error Detection And Correction (AREA)

Abstract

A multi-bit flip-flop (MBFF) comprising: a first flip-flop, arranged to output a first data-out signal, wherein the first flip-flop comprises: a first selection circuit, arranged to transmit a first data signal or a first test signal to an output node of the first selection circuit to serve as a first input signal; a first latch-based circuit, arranged to generate a first signal according to the first input signal; and a first data-out stage circuit, arranged to generate the first data-out signal according to the first signal; wherein when the MBFF operates in a test mode, the first selection circuit transmits the first test signal to the output node of the first selection circuit to serve as the first input signal, and the first data-out stage circuit keeps the first data-out signal at a fixed voltage level.

Description

多位觸發器及其控制方法 Multi-bit flip-flop and its control method

本發明涉及一種觸發器(flip-flop)設計,更具體地,涉及一種具有省電特性的多位觸發器,該觸發器在測試模式(test mode)下將保持功能(gating function)應用於資料輸出(data-out)信號和/或在正常模式(normal mode)將保持功能應用於掃描輸出(scan-out)信號。 The present invention relates to a flip-flop design, and more particularly, to a multi-bit flip-flop with power-saving features that applies a gating function to data in a test mode. output (data-out) signal and/or apply hold function to scan-out (scan-out) signal in normal mode (normal mode).

掃描鏈被應用於在測試過程期間檢測組合邏輯塊中的各種製造故障。通常,掃描鏈由串聯連接的複數個觸發器組成,並且在正常模式下每個觸發器的資料輸出端子連接到組合邏輯電路,用於進行正常資料傳輸。但是,在測試模式下,每個觸發器的資料輸出端子仍具有資料傳輸,因此組合邏輯電路仍在工作,從而導致不必要的功耗。 Scan chains are applied to detect various manufacturing faults in combinational logic blocks during the testing process. Usually, the scan chain is composed of a plurality of flip-flops connected in series, and in normal mode, the data output terminal of each flip-flop is connected to a combinational logic circuit for normal data transmission. However, in the test mode, the data output terminal of each flip-flop still has data transmission, so the combinational logic circuit is still working, resulting in unnecessary power consumption.

本發明提供多位觸發器及其控制方法,可降低功耗。 The invention provides a multi-bit flip-flop and its control method, which can reduce power consumption.

本發明提供的一種多位觸發器可包括:複數個觸發器,它們連接以形成內部掃描鏈,其中,所述複數個觸發器包括第一觸發器,被佈置為在所述多位觸發器的第一資料輸出端子處輸出第一資料輸出信號,所述第一觸發器包括:第一選擇電路,被佈置為將所述多位觸發器的第一資料輸入端子處的第一資料信號或第一測試信號發送至所述第一選擇電路的輸出節點作為第一輸入信號;第一鎖存電路,耦接到所述第一選擇電路的所述輸出節點,被佈置為根據所述第一輸入信號生成第一信號;和第一資料輸出級電路,被佈置為接收所述第一信號,並根據所述第一信號生成所述第一資料輸出信號;其中,當所述多 位觸發器在測試模式下操作時,所述第一選擇電路被佈置為將所述第一測試信號傳輸至所述第一選擇電路的所述輸出節點作為所述第一輸入信號,且所述第一資料輸出級電路被佈置為不管第一測試信號的電壓電平如何都將第一資料輸出信號保持在固定的電壓電平。 A multi-bit flip-flop provided by the present invention may include: a plurality of flip-flops connected to form an internal scan chain, wherein the plurality of flip-flops includes a first flip-flop arranged as A first data output signal is output at the first data output terminal, and the first flip-flop includes: a first selection circuit arranged to output the first data signal or the second data signal at the first data input terminal of the multi-bit flip-flop a test signal is sent to an output node of the first selection circuit as a first input signal; a first latch circuit, coupled to the output node of the first selection circuit, is arranged to signal generating a first signal; and a first data output stage circuit arranged to receive said first signal and generate said first data output signal based on said first signal; wherein, when said multiple When the bit flip-flop is operating in a test mode, the first selection circuit is arranged to transmit the first test signal to the output node of the first selection circuit as the first input signal, and the The first data output stage circuit is arranged to maintain the first data output signal at a fixed voltage level irrespective of the voltage level of the first test signal.

本發明提供的一種控制方法應用於連接有N個觸發器以形成內部掃描鏈的多位觸發器(MBFF)中,其中,所述多位觸發器包括耦接到所述N個觸發器之一的掃描輸入端子,分別耦接至所述N個觸發器的N個資料輸出端子,其中N為不小於1的正整數,所述控制方法包括:響應於在所述多位觸發器的所述掃描輸入端子處接收到外部測試信號,通過所述內部掃描鏈傳遞所述外部測試信號;生成具有隨所述外部測試信號的電壓電平而改變的電壓電平的掃描輸出信號,其中,所述掃描輸出信號從所述N個觸發器之一輸出至所述N個資料輸出端子之一;和不管所述外部測試信號的電壓電平如何,都將(N-1)個資料輸出信號中的每一個保持在固定電壓電平,其中所述(N-1)個資料輸出信號分別從所述N個觸發器中其餘(N-1)個觸發器輸出至所述N個資料輸出端子中的其餘(N-1)個輸出端子。 A control method provided by the present invention is applied to a multi-bit flip-flop (MBFF) connected with N flip-flops to form an internal scan chain, wherein the multi-bit flip-flop includes a The scanning input terminals of the N flip-flops are respectively coupled to the N data output terminals of the N flip-flops, wherein N is a positive integer not less than 1, and the control method includes: responding to the multi-bit flip-flops in the An external test signal is received at the scan input terminal, and the external test signal is transmitted through the internal scan chain; a scan output signal having a voltage level that varies with the voltage level of the external test signal is generated, wherein the outputting a scan output signal from one of the N flip-flops to one of the N data output terminals; and outputting one of the (N-1) data output signals regardless of the voltage level of the external test signal Each is maintained at a fixed voltage level, wherein the (N-1) data output signals are respectively output from the remaining (N-1) flip-flops of the N flip-flops to the N data output terminals The remaining (N-1) output terminals.

本發明提供的另一種控制方法應用於連接有N個觸發器以形成內部掃描鏈的多位觸發器中,其中,所述多位觸發器包括耦接到所述N個觸發器之一的掃描輸入端子,耦接至所述N個觸發器中的另一個的掃描輸出端子,以及分別耦接至所述N個觸發器的N個資料輸出端子,其中,N為不小於1的正整數;該控制方法包括:響應於在所述多位觸發器的所述掃描輸入端子處接收到外部測試信號,通過所述內部掃描鏈傳遞所述外部測試信號;生成具有隨所述外部測試信號的電壓電平而改變的電壓電平的掃描輸出信號,其中,所述掃描輸出信號從所述N個觸發器中的所述另一個觸發器輸出到所述掃描輸出端子;和不管所述外部測試信號的電壓電平如何,都將所述N個資料輸出信號保持在固定的電壓電 平,所述其中N個資料輸出信號分別從所述N個觸發器輸出到所述多位觸發器的N個資料輸出端子。 Another control method provided by the present invention is applied to a multi-bit flip-flop connected with N flip-flops to form an internal scan chain, wherein the multi-bit flip-flop includes a scan coupled to one of the N flip-flops An input terminal coupled to the scan output terminal of another one of the N flip-flops, and N data output terminals respectively coupled to the N flip-flops, where N is a positive integer not less than 1; The control method includes: in response to receiving an external test signal at the scan input terminal of the multi-bit flip-flop, passing the external test signal through the internal scan chain; generating a voltage having a voltage corresponding to the external test signal A scan output signal of a voltage level that changes in level, wherein the scan output signal is output from the other flip-flop of the N flip-flops to the scan output terminal; and regardless of the external test signal Regardless of the voltage level, the N data output signals are kept at a fixed voltage level level, wherein the N data output signals are respectively output from the N flip-flops to the N data output terminals of the multi-bit flip-flops.

如上所述,本發明實施例在接收到測試信號的情況下,將資料輸出信號保持在固定的電壓電平,由此可降低功耗。 As mentioned above, the embodiment of the present invention maintains the data output signal at a fixed voltage level when a test signal is received, thereby reducing power consumption.

100,800,1000:多位觸發器 100,800,1000: Multi-bit flip-flops

D1,D2,D(N-1),DN:資料輸入端子 D1, D2, D(N-1), DN: data input terminals

SI:掃描輸入端子 SI: scan input terminal

SE:測試使能端子 SE: Test enable terminal

CLK:時鐘輸入端子 CLK: clock input terminal

102_1,102_2,102(N-1),102_N,802_1,802_2,802_(N-1), 802_N,1002_1,1002_2,1002_(N-1),1002_N:觸發器 102_1,102_2,102(N-1),102_N,802_1,802_2,802_(N-1), 802_N, 1002_1, 1002_2, 1002_(N-1), 1002_N: Trigger

210_1,L1,210_2,210_(N-1),212,300,400,500,600,700:資料輸出級電路 210_1, L1, 210_2, 210_(N-1), 212, 300, 400, 500, 600, 700: data output stage circuit

104:內部掃描鏈 104: Internal scan chain

INT2,INT(N-1),INTN,S11,INT3:測試信號 INT2, INT(N-1), INTN, S11, INT3: test signal

Q1,Q2,Q(N-1),QN:資料輸出端子 Q1, Q2, Q(N-1), QN: data output terminals

SCK,CLKB,CLK1:時鐘信號 SCK, CLKB, CLK1: clock signal

STE,STEB:測試使能信號 STE, STEB: test enable signal

S10,S20,SN0:資料信號 S10, S20, SN0: data signal

202:時鐘生成電路 202: clock generation circuit

204:信號生成電路 204: Signal generating circuit

206_1,206_2,206_N:選擇電路 206_1, 206_2, 206_N: selection circuit

S12,S22,SN2:輸入信號 S12, S22, SN2: input signal

208_1,208_2,208_N:鎖存電路 208_1, 208_2, 208_N: latch circuit

N1,N2:輸出節點 N1, N2: output nodes

S13,S23,SN3:信號 S13, S23, SN3: signal

S14,S24,SN4:資料輸出信號 S14, S24, SN4: data output signal

211:NOR門 211: NOR gate

213,608,708,1508,1608:反相器 213,608,708,1508,1608: inverter

302,1202:OR門 302, 1202: OR gate

402,1302:NAND門 402, 1302: NAND gate

502,1402:AND門 502, 1402: AND gate

602,604,706,1502,1504,1606:PMOS電晶體 602, 604, 706, 1502, 1504, 1606: PMOS transistors

606,702,704,1506,1602,1604:NMOS電晶體 606, 702, 704, 1506, 1602, 1604: NMOS transistors

1004,L2,1200,1300,1400,1500,1600:掃描輸出級電路 1004, L2, 1200, 1300, 1400, 1500, 1600: scanning output stage circuit

SN5:掃描輸出信號 SN5: scan output signal

第1圖是示出根據本發明的實施例的具有省電特性的第一多位觸發器(MBFF)的示意圖。 FIG. 1 is a schematic diagram illustrating a first multi-bit flip-flop (MBFF) with power-saving characteristics according to an embodiment of the present invention.

第2圖是示出根據本發明的實施例的MBFF的第一電路設計的圖。 FIG. 2 is a diagram showing a first circuit design of an MBFF according to an embodiment of the present invention.

第3圖是示出根據本發明的實施例的具有保持功能的資料輸出級電路的第一替代設計的圖。 Figure 3 is a diagram showing a first alternative design of a data output stage circuit with hold function according to an embodiment of the present invention.

第4圖是示出根據本發明的實施例的具有保持功能的資料輸出級電路的第二替代設計的圖。 Figure 4 is a diagram illustrating a second alternative design of a data output stage circuit with hold function according to an embodiment of the present invention.

第5圖是示出根據本發明的實施例的具有保持功能的資料輸出級電路的第三替代設計的圖。 Fig. 5 is a diagram showing a third alternative design of a data output stage circuit with hold function according to an embodiment of the present invention.

第6圖是示出根據本發明的實施例的具有保持功能的資料輸出級電路的第四替代設計的圖。 Figure 6 is a diagram showing a fourth alternative design of a data output stage circuit with hold function according to an embodiment of the present invention.

第7圖是示出根據本發明的實施例的具有保持功能的資料輸出級電路的第五替代設計的圖。 Fig. 7 is a diagram showing a fifth alternative design of a data output stage circuit with hold function according to an embodiment of the present invention.

第8圖是示出根據本發明的實施例的具有省電特性的第二MBFF的示意圖。 FIG. 8 is a schematic diagram illustrating a second MBFF having power saving characteristics according to an embodiment of the present invention.

第9圖是示出根據本發明的實施例的MBFF的第二電路設計的圖。 Fig. 9 is a diagram showing a second circuit design of an MBFF according to an embodiment of the present invention.

第10圖是示出根據本發明的實施例的具有省電特性的第三MBFF的示意圖。 FIG. 10 is a schematic diagram illustrating a third MBFF having power saving characteristics according to an embodiment of the present invention.

第11圖是示出根據本發明的實施例的MBFF的第三電路設計的圖。 FIG. 11 is a diagram showing a third circuit design of an MBFF according to an embodiment of the present invention.

第12圖是示出根據本發明的實施例的具有保持功能的掃描輸出級電路的第一替代設計的圖。 Fig. 12 is a diagram showing a first alternative design of a scan output stage circuit with hold function according to an embodiment of the present invention.

第13圖是示出根據本發明的實施例的具有保持功能的掃描輸出級電路的第二替代設計的圖。 Fig. 13 is a diagram showing a second alternative design of a scan output stage circuit with hold function according to an embodiment of the present invention.

第14圖是示出根據本發明的實施例的具有保持功能的掃描輸出級電路的第三替代設計的圖。 Fig. 14 is a diagram showing a third alternative design of a scan output stage circuit with hold function according to an embodiment of the present invention.

第15圖是示出根據本發明的實施例的具有保持功能的掃描輸出級電路的第四替代設計的圖。 Fig. 15 is a diagram showing a fourth alternative design of a scan output stage circuit with hold function according to an embodiment of the present invention.

第16圖是示出根據本發明的實施例的具有保持功能的掃描輸出級電路的第五替代設計的圖。 Fig. 16 is a diagram showing a fifth alternative design of a scan output stage circuit with hold function according to an embodiment of the present invention.

在說明書及申請專利範圍當中使用了某些詞彙來指稱特定的元件。所屬技術領域具有通常知識者應可理解,硬體製造商可能會用不同的名詞來稱呼同一個元件。本說明書及申請專利範圍並不以名稱的差異來作為區分元件的方式,而是以元件在功能上的差異來作為區分的準則。在通篇說明書及申請專利範圍當中所提及的“包含”及“包括”為一開放式的用語,故應解釋成“包含但不限定於”。“大體上”是指在可接受的誤差範圍內,所屬技術領域具有通常知識者能夠在一定誤差範圍內解決所述技術問題,基本達到所述技術效果。此外,“耦接”一詞在此包含任何直接及間接的電性連接手段。因此,若文中描述一第一裝置耦接於一第二裝置,則代表該第一裝置可直接電性連接於該第二裝置,或通過其它裝置或連接手段間接地電性連接至該第二裝置。以下所述為實施本發明的較佳方式,目的在於說明本發明的精神而非用以限定本發明的保護範圍,本發明的保護範圍當視後附的申請專利範圍所界定者為准。 Certain terms are used in the specification and claims to refer to particular elements. Those skilled in the art should understand that hardware manufacturers may use different terms to refer to the same component. This description and the scope of the patent application do not use the difference in name as a way to distinguish components, but use the difference in function of components as a criterion for distinguishing. "Includes" and "comprising" mentioned throughout the specification and scope of patent application are open-ended terms, so they should be interpreted as "including but not limited to". "Substantially" means that within an acceptable error range, a person with ordinary knowledge in the technical field can solve the technical problem within a certain error range and basically achieve the technical effect. In addition, the term "coupled" includes any direct and indirect electrical connection means. Therefore, if it is described in the text that a first device is coupled to a second device, it means that the first device may be directly electrically connected to the second device, or indirectly electrically connected to the second device through other devices or connection means. device. The following description is a preferred mode of implementing the present invention, the purpose of which is to illustrate the spirit of the present invention rather than to limit the protection scope of the present invention. The protection scope of the present invention should be defined by the scope of the appended patent application.

接下面的描述為本發明預期的最優實施例。這些描述用於闡述本發明的大致原則而不應用於限制本發明。本發明的保護範圍應在參考本發明的申請專利範圍的基礎上進行認定。 The following description is of the best contemplated embodiment of the invention. These descriptions are used to illustrate the general principles of the invention and should not be used to limit the invention. The scope of protection of the present invention should be determined on the basis of referring to the patent scope of the present invention.

第1圖是示出根據本發明的實施例的具有省電特性的第一多位觸發器(Multi-Bit Flip-Flop,MBFF)的示意圖。在該實施例中,MBFF 100是N位掃描觸發器,其中N是不小於1的正整數(即,N

Figure 110114672-A0305-02-0009-19
2)。MBFF 100的電路佈局可以是集成電路(IC)設計所使用的單元庫中的一個單元(cell)。如第1圖所示,MBFF 100具有N個資料輸入端子D1,D2,..,D(N-1)和DN,掃描輸入端子SI,測試使能端子SE,時鐘輸入端子CLK和N個資料輸出端子Q1,Q2,...,Q(N-1)和QN。此外,MBFF 100包括N個連接在一起的觸發器(Flip-Flop,FF)102_1、102_2,...,102_(N-1)和102_N,以形成內部掃描鏈104,即如虛線所示,通過內部拼接(stitching)觸發器102_1-102_N來形成的掃描鏈。當MBFF 100在正常模式下操作時,資料輸入端子D1-DN用於接收資料信號,並且分別耦接到觸發器102_1-102_N。當MBFF 100在正常模式下操作時,資料輸出端子Q1-QN用於輸出資料輸出信號,並且分別耦接到觸發器102_1-102_N。掃描輸入端子SI用於接收外部測試信號,並且掃描輸入端子SI處的外部測試信號通過內部掃描鏈104傳輸,其中當前的觸發器102_n的測試信號(n≠1)是從前一級觸發器102_(n-1)獲得的內部測試信號。例如,從觸發器102_1獲得觸發器102_2的測試信號INT2,從觸發器102_2獲得另一觸發器(未示出)的測試信號INT3,從再一觸發器(未示出)獲得觸發器102_(N-1)的測試信號INT(N-1),並且從觸發器102_(N-1)獲得觸發器102_N的測試信號INTN。觸發器102_1-102_(N-1)中的每一個具有資料輸出級電路(標記為“L1”)210_1、210_2,...,210_(N-1),這些資料輸出級電路具有在測試模式下被啟用(enabled),並在正常模式下被禁用(disabled)的保持功能。 FIG. 1 is a schematic diagram illustrating a first multi-bit flip-flop (Multi-Bit Flip-Flop, MBFF) with power saving characteristics according to an embodiment of the present invention. In this embodiment, MBFF 100 is an N-bit scan flip-flop, where N is a positive integer not less than 1 (ie, N
Figure 110114672-A0305-02-0009-19
2). The circuit layout of MBFF 100 may be a cell in a library of cells used in integrated circuit (IC) design. As shown in Figure 1, MBFF 100 has N data input terminals D1, D2, ..., D(N-1) and DN, scan input terminal SI, test enable terminal SE, clock input terminal CLK and N data input terminals Output terminals Q1, Q2, . . . , Q(N-1) and QN. In addition, MBFF 100 includes N flip-flops (Flip-Flop, FF) 102_1, 102_2, . A scan chain is formed by internally stitching flip-flops 102_1-102_N. When the MBFF 100 operates in the normal mode, the data input terminals D1-DN are used to receive data signals, and are respectively coupled to the flip-flops 102_1-102_N. When the MBFF 100 operates in the normal mode, the data output terminals Q1-QN are used to output data output signals, and are respectively coupled to the flip-flops 102_1-102_N. The scan input terminal SI is used to receive an external test signal, and the external test signal at the scan input terminal SI is transmitted through the internal scan chain 104, wherein the test signal (n≠1) of the current flip-flop 102_n is obtained from the previous stage flip-flop 102_(n -1) Internal test signal obtained. For example, the test signal INT2 of the flip-flop 102_2 is obtained from the flip-flop 102_1, the test signal INT3 of another flip-flop (not shown) is obtained from the flip-flop 102_2, and the flip-flop 102_(N -1) of the test signal INT(N-1), and the test signal INTN of the flip-flop 102_N is obtained from the flip-flop 102_(N-1). Each of the flip-flops 102_1-102_(N-1) has data output stage circuits (labeled "L1") 210_1, 210_2, . . . , 210_(N-1) which have The hold function is enabled in normal mode and disabled in normal mode.

在MBFF 100以正常模式操作的情況下,資料輸出級電路210_1生成資料輸出信號並將其輸出到資料輸出端子Q1,其中該資料輸出信號的電壓電平響應於資料輸入端子D1處的資料信號的電壓電平而改變;資料輸出級電路210_2生成並輸出資料輸出信號至資料輸出端子Q2,其中,該資料輸出信號的電壓電平響應於資料輸入端子D2處的資料信號的電壓電平而改變;資料輸出級電路210_(N-1)生成並輸出資料輸出信號到資料輸出端子Q(N-1),其中該資料輸出信號的電壓電平響應於在資料輸入端子D(N-1)處的資料信號的電壓電平而改變。此外,資料輸出端子QN被正常資料傳輸和測試資料傳輸共用。因此,觸發器102_N生成資料輸出信號並將其輸出到資料輸出端子QN,其中資料輸出信號的電壓電平響應於資料輸入端子DN處的資料信號的電壓電平而改變。 In the case where the MBFF 100 operates in the normal mode, the data output stage circuit 210_1 generates and outputs a data output signal to the data output terminal Q1, wherein the voltage level of the data output signal is responsive to the voltage level of the data signal at the data input terminal D1. The data output stage circuit 210_2 generates and outputs a data output signal to the data output terminal Q2, wherein the voltage level of the data output signal changes in response to the voltage level of the data signal at the data input terminal D2; The data output stage circuit 210_(N-1) generates and outputs a data output signal to the data output terminal Q(N-1), wherein the voltage level of the data output signal is responsive to the voltage level at the data input terminal D(N-1) The voltage level of the data signal changes. In addition, the data output terminal QN is shared by normal data transmission and test data transmission. Accordingly, the flip-flop 102_N generates a data output signal whose voltage level changes in response to the voltage level of the data signal at the data input terminal DN and outputs it to the data output terminal QN.

在MBFF 100在測試模式下操作的另一種情況下,資料輸出級電路210_1生成並輸出資料輸出信號到資料輸出端子Q1,其中資料輸出信號的電壓電平被保持為固定電壓電平,而不管掃描輸入端子SI處的測試信號的電壓電平如何;資料輸出級電路210_2生成資料輸出信號並將其輸出到資料輸出端子Q2,其中資料輸出信號的電壓電平保持為固定電壓電平,而與從觸發器102_1獲得的測試信號INT2無關;資料輸出級電路210_(N-1)生成並輸出資料輸出信號到資料輸出端子Q(N-1),其中資料輸出信號的電壓電平保持在固定的電壓電平,而不管從前一級觸發器(未示出)獲得的測試信號INT(N-1)的電壓電平如何。此外,資料輸出端子QN被正常資料傳輸和測試資料傳輸共用。因此,觸發器102_N生成掃描輸出信號並將其輸出到資料輸出端子QN,其中,掃描輸出信號的電壓電平響應於測試信號INTN(其通過掃描輸入端子S1處的外部測試信號在內部掃描鏈104中傳輸而獲得)的電壓電平而改變。 In another case where the MBFF 100 operates in the test mode, the data output stage circuit 210_1 generates and outputs a data output signal to the data output terminal Q1, wherein the voltage level of the data output signal is maintained at a fixed voltage level regardless of the scan What is the voltage level of the test signal at the input terminal SI; the data output stage circuit 210_2 generates a data output signal and outputs it to the data output terminal Q2, wherein the voltage level of the data output signal is maintained at a fixed voltage level, while The test signal INT2 obtained by the flip-flop 102_1 is irrelevant; the data output stage circuit 210_(N-1) generates and outputs the data output signal to the data output terminal Q(N-1), wherein the voltage level of the data output signal is kept at a fixed voltage level regardless of the voltage level of the test signal INT(N-1) obtained from the previous stage flip-flop (not shown). In addition, the data output terminal QN is shared by normal data transmission and test data transmission. Thus, the flip-flop 102_N generates and outputs a scan-out signal to the data output terminal QN, wherein the voltage level of the scan-out signal is responsive to the test signal INTN (which is detected in the internal scan chain 104 by an external test signal at the scan-in terminal S1 ). The voltage level obtained during transmission) changes.

第2圖是示出根據本發明的實施例的MBFF的第一電路設計的圖。作為示例而非限制,第1圖中所示的MBFF 100可以使用第2圖所示的電路結構來實 現。除了觸發器102_1-102_N之外,MBFF 100還可以包括信號生成電路204和時鐘生成電路202。信號生成電路204接收測試使能信號STE(其是外部測試使能信號)來生成另一測試使能信號STEB,測試使能信號STEB與測試使能信號STE反相(inverse)。在第2圖的實施例中,信號生成電路204包括反相器。在其他實施例中,信號生成電路204可以由能夠接收測試使能信號STE並生成與測試使能信號STE反相的測試使能信號STEB的任何其他電路結構來實現。 FIG. 2 is a diagram showing a first circuit design of an MBFF according to an embodiment of the present invention. By way of example and not limitation, the MBFF 100 shown in Figure 1 can be implemented using the circuit structure shown in Figure 2 now. In addition to the flip-flops 102_1 - 102_N, the MBFF 100 may further include a signal generation circuit 204 and a clock generation circuit 202 . The signal generation circuit 204 receives a test enable signal STE (which is an external test enable signal) to generate another test enable signal STEB, and the test enable signal STEB is inverse to the test enable signal STE. In the embodiment of FIG. 2, the signal generating circuit 204 includes an inverter. In other embodiments, the signal generation circuit 204 may be realized by any other circuit structure capable of receiving the test enable signal STE and generating the test enable signal STEB which is inverse to the test enable signal STE.

時鐘生成電路110接收時鐘信號SCK(其是經由時鐘端子CK接收的外部時鐘信號),並根據時鐘信號SCK生成時鐘信號CLKB和CLK1,其中時鐘信號CLKB是時鐘信號SCK的反相,時鐘信號CLK1是時鐘信號CLKB的反相。在第2圖的實施例中,時鐘生成電路202包括兩個反相器。在其他實施例中,時鐘生成電路202可以由能夠接收時鐘信號SCK,生成與時鐘信號SCK反相的時鐘信號CLKB,以及生成與時鐘信號CLKB反相的時鐘信號CLK1的任何其他電路結構來實現。 The clock generating circuit 110 receives a clock signal SCK (which is an external clock signal received via a clock terminal CK), and generates clock signals CLKB and CLK1 according to the clock signal SCK, wherein the clock signal CLKB is the inversion of the clock signal SCK, and the clock signal CLK1 is Inversion of the clock signal CLKB. In the embodiment of FIG. 2, the clock generation circuit 202 includes two inverters. In other embodiments, the clock generation circuit 202 can be realized by any other circuit structure capable of receiving the clock signal SCK, generating the clock signal CLKB which is the opposite phase of the clock signal SCK, and generating the clock signal CLK1 which is the reverse phase of the clock signal CLKB.

觸發器102_1-102_(N-1)中的每一個可以具有相同的電路結構。例如,觸發器102_1被佈置為在MBFF 100的資料輸出端子Q1處輸出資料輸出信號S14,其包括選擇電路206_1,鎖存電路208_1和資料輸出級電路210_1;觸發器102_2被佈置為在MBFF 100的資料輸出端子Q2處輸出資料輸出信號S24,其包括選擇電路206_2,鎖存電路208_2和資料輸出級電路210_2。關於觸發器102_1,選擇電路206_1被佈置為將MBFF 100的資料輸入端子D1處的資料信號S10或MBFF 100的掃描輸入端子SI處的測試信號S11發送到選擇電路206_1的輸出節點用作輸入信號S12;鎖存電路208_1耦接至選擇電路206_1的輸出節點,並被佈置為根據輸入信號S12生成信號S13;資料輸出級電路210_1被佈置為接收信號S13,並根據信號S13生成資料輸出信號S14。在該實施例中,選擇電路206_1可以包括反相器和傳輸門,其中每個傳輸門包括P型電晶體(例如,P溝道金屬氧 化物半導體(PMOS)電晶體)和N型電晶體(例如N溝道金屬氧化物半導體(NMOS)電晶體),並由測試使能信號STE和STEB控制。此外,鎖存電路208_1可以包括反相器和傳輸門,其中每個傳輸門包括由P型電晶體(例如,PMOS電晶體)和N型電晶體(例如,NMOS電晶體),並且由時鐘信號CLK1和CLKB控制。由於本發明不集中於選擇電路206_1和鎖存電路208_1的電路設計,所屬技術領域具有通常知識者應該容易理解第2圖所示的選擇電路206_1和鎖存電路208_1的原理。因此為簡潔起見,在此省略選擇電路206_1和鎖存電路208_1的進一步的描述。 Each of the flip-flops 102_1-102_(N-1) may have the same circuit structure. For example, the flip-flop 102_1 is arranged to output the data output signal S14 at the data output terminal Q1 of the MBFF 100, which includes the selection circuit 206_1, the latch circuit 208_1 and the data output stage circuit 210_1; The data output terminal Q2 outputs a data output signal S24, which includes a selection circuit 206_2, a latch circuit 208_2 and a data output stage circuit 210_2. Regarding flip-flop 102_1, selection circuit 206_1 is arranged to send data signal S10 at data input terminal D1 of MBFF 100 or test signal S11 at scan input terminal SI of MBFF 100 to an output node of selection circuit 206_1 for use as input signal S12 The latch circuit 208_1 is coupled to the output node of the selection circuit 206_1 and is arranged to generate a signal S13 according to the input signal S12; the data output stage circuit 210_1 is arranged to receive the signal S13 and generate a data output signal S14 according to the signal S13. In this embodiment, the selection circuit 206_1 may include an inverter and transmission gates, wherein each transmission gate includes a P-type transistor (for example, a P-channel metal oxide compound semiconductor (PMOS) transistors) and N-type transistors (such as N-channel metal oxide semiconductor (NMOS) transistors), and are controlled by test enable signals STE and STEB. In addition, the latch circuit 208_1 may include an inverter and a transfer gate, wherein each transfer gate includes a P-type transistor (for example, a PMOS transistor) and an N-type transistor (for example, an NMOS transistor), and is controlled by a clock signal CLK1 and CLKB control. Since the present invention does not focus on the circuit design of the selection circuit 206_1 and the latch circuit 208_1 , those skilled in the art should easily understand the principle of the selection circuit 206_1 and the latch circuit 208_1 shown in FIG. 2 . Therefore, for the sake of brevity, further descriptions of the selection circuit 206_1 and the latch circuit 208_1 are omitted here.

資料輸出級電路210_1配備有保持功能,該保持功能在MBFF 100的測試模式下啟用,而在MBFF 100的正常模式下禁用。例如,當MBFF 100在正常模式下操作時,選擇電路206_1將資料信號S10發送到選擇電路206_1的輸出節點用作輸入信號S12,並且資料輸出級電路210_1生成資料輸出信號S14,資料輸出信號S14具有響應資料信號S10的電壓電平而變化的電壓電平。具體地,資料輸出信號S14的電壓電平響應於信號S13的電壓電平而改變,其中信號S13的電壓電平響應於資料信號S10的電壓電平而改變。當MBFF 100在測試模式下操作時,選擇電路206_1將測試信號S11發送到選擇電路206_1的輸出節點用作輸入信號S12,並且資料輸出級電路210_1保持資料輸出信號S14為固定的電壓電平(例如,高電壓電平或低電壓電平),而不論測試信號S11的電壓電平如何。具體地,資料輸出信號S14的電壓電平不響應於信號S13的電壓電平而改變,而信號S13的電壓電平響應於測試信號S11的電壓電平而改變。 The data output stage circuit 210_1 is equipped with a hold function that is enabled in the test mode of the MBFF 100 and disabled in the normal mode of the MBFF 100 . For example, when the MBFF 100 operates in the normal mode, the selection circuit 206_1 sends the data signal S10 to the output node of the selection circuit 206_1 as the input signal S12, and the data output stage circuit 210_1 generates the data output signal S14, which has A voltage level that varies in response to the voltage level of the data signal S10. Specifically, the voltage level of the data output signal S14 changes in response to the voltage level of the signal S13, which changes in response to the voltage level of the data signal S10. When the MBFF 100 operates in the test mode, the selection circuit 206_1 sends the test signal S11 to the output node of the selection circuit 206_1 as the input signal S12, and the data output stage circuit 210_1 maintains the data output signal S14 at a fixed voltage level (e.g. , high voltage level or low voltage level), regardless of the voltage level of the test signal S11. Specifically, the voltage level of the data output signal S14 does not change in response to the voltage level of the signal S13, but the voltage level of the signal S13 changes in response to the voltage level of the test signal S11.

與經由掃描輸入端子SI接收測試信號S11的第一觸發器102_1相反,後繼觸發器102_2接收從前一級觸發器102_1(特別是觸發器102_1的鎖存電路208_1)獲得的測試信號INT2。關於觸發器102_2,選擇電路206_2被佈置為將MBFF 100的資料輸入端子D2處的資料信號S20或從鎖存電路208_1獲得的測試 信號INT2發送至選擇電路206_2的輸出節點用作輸入信號S22;鎖存電路208_2耦接至選擇電路206_2的輸出節點,並被佈置為根據輸入信號S22生成信號S23。資料輸出級電路210_2被佈置為接收信號S23,並根據信號S23生成資料輸出信號S24。類似地,資料輸出級電路210_2配備有相同的保持功能,該保持功能在MBFF 100的測試模式下被啟用,而在MBFF 100的普通模式下被禁用。 Contrary to the first flip-flop 102_1 receiving the test signal S11 via the scan-in terminal SI, the subsequent flip-flop 102_2 receives the test signal INT2 obtained from the preceding flip-flop 102_1 (especially the latch circuit 208_1 of the flip-flop 102_1 ). With respect to the flip-flop 102_2, the selection circuit 206_2 is arranged to input the data signal S20 at the terminal D2 of the MBFF 100 or the test obtained from the latch circuit 208_1. The signal INT2 is sent to the output node of the selection circuit 206_2 as the input signal S22; the latch circuit 208_2 is coupled to the output node of the selection circuit 206_2 and arranged to generate the signal S23 according to the input signal S22. The data output stage circuit 210_2 is arranged to receive the signal S23 and generate a data output signal S24 according to the signal S23. Similarly, the data output stage circuit 210_2 is equipped with the same hold function, which is enabled in the test mode of the MBFF 100 and disabled in the normal mode of the MBFF 100 .

最後的觸發器102_N被佈置為在MBFF 100的資料輸出端子QN上生成輸出信號SN4,其包括選擇電路206_N,鎖存電路208_N和輸出級電路212。輸出級電路212使用反相器213來實現。選擇電路206_N被佈置為將MBFF 100的資料輸入端子DN處的資料信號SN0或從前一級觸發器獲得的測試信號INTN發送至選擇電路206_N的輸出節點用作輸入信號SN2。鎖存電路208_N耦接到選擇電路206_N的輸出節點,並被佈置為根據輸入信號SN2生成信號SN3。輸出級電路212被佈置為接收信號SN3,並根據信號SN3生成輸出信號SN4。在該實施例中,資料輸出端子QN被正常資料傳輸和測試資料傳輸共用。當MBFF 100在正常模式下操作時,選擇電路206_N將資料信號SN0發送到選擇電路206_N的輸出節點用作輸入信號SN2,並且輸出級電路212生成輸出信號SN4作為資料輸出信號,該資料輸出信號具有響應於資料信號SN0的電壓電平而改變的電壓電平。具體地,輸出信號SN4(資料輸出信號)的電壓電平響應於信號SN3的電壓電平而改變,其中信號SN3的電壓電平響應於資料信號SN0的電壓電平而改變。當MBFF 100在測試模式下操作時,選擇電路206_N將測試信號INTN發送到選擇電路206_N的輸出節點用作輸入信號SN2,並且輸出級電路212生成輸出信號SN4作為掃描輸出信號,該掃描輸出信號具有響應於測試信號INTN的電壓電平而改變的電壓電平。具體地,輸出信號SN4(掃描輸出信號)的電壓電平響應於信號SN3的電壓電平而改變,其中信號SN3的電壓電平響應於測試信號INTN的電壓電平而改變。 The last flip-flop 102_N is arranged to generate an output signal SN4 on the data output terminal QN of the MBFF 100 , which comprises a selection circuit 206_N, a latch circuit 208_N and an output stage circuit 212 . The output stage circuit 212 is implemented using an inverter 213 . The selection circuit 206_N is arranged to send the data signal SN0 at the data input terminal DN of the MBFF 100 or the test signal INTN obtained from a previous stage flip-flop to the output node of the selection circuit 206_N as input signal SN2. Latch circuit 208_N is coupled to the output node of selection circuit 206_N and is arranged to generate signal SN3 from input signal SN2. The output stage circuit 212 is arranged to receive the signal SN3 and to generate an output signal SN4 from the signal SN3. In this embodiment, the data output terminal QN is shared by normal data transmission and test data transmission. When the MBFF 100 is operating in the normal mode, the selection circuit 206_N sends the data signal SN0 to the output node of the selection circuit 206_N as an input signal SN2, and the output stage circuit 212 generates an output signal SN4 as a data output signal having A voltage level that changes in response to the voltage level of the data signal SN0. Specifically, the voltage level of the output signal SN4 (data output signal) changes in response to the voltage level of the signal SN3, which changes in response to the voltage level of the data signal SN0. When the MBFF 100 operates in the test mode, the selection circuit 206_N sends the test signal INTN to the output node of the selection circuit 206_N as the input signal SN2, and the output stage circuit 212 generates the output signal SN4 as a scan output signal having A voltage level that changes in response to the voltage level of the test signal INTN. Specifically, the voltage level of the output signal SN4 (scan out signal) changes in response to the voltage level of the signal SN3, which changes in response to the voltage level of the test signal INTN.

在該實施例中,具有保持功能的每個資料輸出級電路可以使用或非(NOR)門211來實現,其中NOR門211的一個輸入節點被佈置為接收前一級鎖存電路的輸出信號,NOR門211的另一個輸入節點被佈置為接收測試使能信號STE,NOR門211的輸出節點被佈置為向MBFF 100的資料輸出端子輸出資料輸出信號。以資料輸出級210_1為例,NOR門211的一個輸入節點在鎖存電路208_1的輸出節點N1處接收信號S13,NOR門211的另一輸入節點接收測試使能信號STE,並且NOR門211的輸出節點將資料輸出信號S14輸出到MBFF 100的資料輸出端子Q1。當MBFF 100在正常模式下操作時(STE=0),資料輸出信號S14的電壓電平響應於信號S13的電壓電平而改變。具體地,資料輸出信號S14是信號S13的反相,其中信號S13是資料信號S10的反相。當MBFF 100在測試模式下操作時(STE=1),資料輸出信號S14的電壓電平保持在固定的電壓電平(例如,接地電壓),而與測試信號S11的電壓電平無關。具體地,資料輸出信號S14的電壓電平不響應於信號S13的電壓電平而改變,其中信號S13是測試信號S11的反相。 In this embodiment, each data output stage circuit with hold function can be implemented using a NOR gate 211, wherein one input node of the NOR gate 211 is arranged to receive the output signal of the previous stage latch circuit, NOR Another input node of the gate 211 is arranged to receive a test enable signal STE, and an output node of the NOR gate 211 is arranged to output a data output signal to a data output terminal of the MBFF 100 . Taking the data output stage 210_1 as an example, one input node of the NOR gate 211 receives the signal S13 at the output node N1 of the latch circuit 208_1, the other input node of the NOR gate 211 receives the test enable signal STE, and the output of the NOR gate 211 The node outputs the data output signal S14 to the data output terminal Q1 of the MBFF 100 . When the MBFF 100 is operating in the normal mode (STE=0), the voltage level of the data output signal S14 changes in response to the voltage level of the signal S13. Specifically, the data output signal S14 is the inversion of the signal S13, wherein the signal S13 is the inversion of the data signal S10. When the MBFF 100 operates in the test mode (STE=1), the voltage level of the data output signal S14 remains at a fixed voltage level (eg, ground voltage) regardless of the voltage level of the test signal S11 . Specifically, the voltage level of the data output signal S14 does not change in response to the voltage level of the signal S13, which is the inverse of the test signal S11.

第2圖所示的電路結構僅出於說明性目的,並不意味著對本發明的限制。例如,選擇電路可以由能夠選擇正常資料輸入和測試資料輸入之一作為隨後的鎖存電路的輸入信號的任何其他電路結構來實現。對於另一示例,鎖存電路可以由能夠處理從前一級選擇電路獲得輸入信號以生成信號並將其生成的信號輸出到具有保持功能的後一級資料輸出級電路的任何其他電路結構來實現。又例如,具有保持功能的資料輸出級電路可以由當MBFF在測試模式下操作時能夠將資料輸出信號保持在固定電壓電平的任何其他電路結構實現。 The circuit structure shown in FIG. 2 is for illustrative purpose only, and does not mean to limit the present invention. For example, the selection circuit may be implemented by any other circuit structure capable of selecting one of the normal data input and the test data input as the input signal of the subsequent latch circuit. For another example, the latch circuit may be realized by any other circuit structure capable of processing an input signal obtained from a previous stage selection circuit to generate a signal and outputting the generated signal to a subsequent stage data output stage circuit having a hold function. As another example, the data output stage circuit with holding function can be implemented by any other circuit structure capable of holding the data output signal at a fixed voltage level when the MBFF is operating in the test mode.

第3圖是示出根據本發明的實施例的具有保持功能的資料輸出級電路的第一替代設計的圖。例如,資料輸出級電路210_1-210_(N-1)中的一個或複數個可使用資料輸出級電路300來實現。資料輸出級電路300採用或(OR)門302,OR門302的其中一個輸入節點耦接到前一級鎖存電路的輸出節點N1,OR 門302的另一個輸入節點被佈置為接收測試使能信號STE,OR門302的輸出節點被佈置為向MBFF 100的資料輸出端子Qn輸出資料輸出信號,其中n是從1到(N-1)的範圍中選擇的正整數。當MBFF 100在正常模式下操作時(STE=0),OR門302生成的資料輸出信號的電壓電平響應於前一級鎖存電路的輸出節點N1處的電壓而改變。當MBFF 100在測試模式下操作時(STE=1),OR門302生成的資料輸出信號保持在固定的電壓電平(例如電源電壓),而與前一級鎖存電路的輸出節點N1處的信號的電壓無關。 Figure 3 is a diagram showing a first alternative design of a data output stage circuit with hold function according to an embodiment of the present invention. For example, one or more of the data output stage circuits 210_1 - 210_(N−1) can be implemented using the data output stage circuit 300 . The data output stage circuit 300 adopts an OR (OR) gate 302, wherein one of the input nodes of the OR gate 302 is coupled to the output node N1 of the previous stage latch circuit, and the OR The other input node of the gate 302 is arranged to receive the test enable signal STE, and the output node of the OR gate 302 is arranged to output the data output signal to the data output terminal Qn of the MBFF 100, where n is from 1 to (N-1) A positive integer selected in the range of . When the MBFF 100 operates in the normal mode (STE=0), the voltage level of the data output signal generated by the OR gate 302 changes in response to the voltage at the output node N1 of the previous-stage latch circuit. When the MBFF 100 operates in the test mode (STE=1), the data output signal generated by the OR gate 302 is maintained at a fixed voltage level (such as a power supply voltage), and is different from the signal at the output node N1 of the previous stage latch circuit voltage is irrelevant.

第4圖是示出根據本發明的實施例的具有保持功能的資料輸出級電路的第二替代設計的圖。例如,資料輸出級電路210_1-210_(N-1)中的一個或複數個可以使用資料輸出級電路400來實現。資料輸出級電路400採用與非(NAND)門402,NAND門402的其中一個輸入節點耦接到前一級鎖存電路的輸出節點N1,NAND門402的另一個輸入節點被佈置為接收測試使能信號STEB,並且NAND門402的輸出節點被佈置將資料輸出信號輸出到MBFF 100的資料輸出端子Qn,其中n是從1到(N-1)的範圍中選擇的正整數。當MBFF 100在正常模式下操作時(STEB=1),NAND門402生成的資料輸出信號的電壓電平響應於前一級鎖存電路的輸出節點N1處的信號的電壓而改變。當MBFF 100在測試模式下操作時(STEB=0),NAND門402生成的資料輸出信號保持在固定的電壓電平(例如電源電壓),而與前一級鎖存電路的輸出節點N1處的信號的電壓無關。 Figure 4 is a diagram illustrating a second alternative design of a data output stage circuit with hold function according to an embodiment of the present invention. For example, one or more of the data output stage circuits 210_1 - 210_(N−1) can be implemented using the data output stage circuit 400 . The data output stage circuit 400 adopts a NAND (NAND) gate 402, wherein one of the input nodes of the NAND gate 402 is coupled to the output node N1 of the previous stage latch circuit, and the other input node of the NAND gate 402 is arranged to receive a test enable signal STEB, and the output node of the NAND gate 402 is arranged to output the data output signal to the data output terminal Qn of the MBFF 100, where n is a positive integer selected from the range of 1 to (N-1). When the MBFF 100 operates in the normal mode (STEB=1), the voltage level of the data output signal generated by the NAND gate 402 changes in response to the voltage of the signal at the output node N1 of the latch circuit of the previous stage. When the MBFF 100 operates in the test mode (STEB=0), the data output signal generated by the NAND gate 402 is maintained at a fixed voltage level (such as a power supply voltage), and is different from the signal at the output node N1 of the previous stage latch circuit. voltage is irrelevant.

第5圖是示出根據本發明的實施例的具有保持功能的資料輸出級電路的第三替代設計的圖。例如,資料輸出級電路210_1-210_(N-1)中的一個或複數個可以使用資料輸出級電路500來實現。資料輸出級電路500採用與(AND)門502,AND門502的其中一個輸入節點耦接到前一級鎖存電路的輸出節點N1,AND門502的另一個輸入節點被佈置為接收測試使能信號STEB,並且AND門502 的輸出節點被佈置為將資料輸出信號輸出到MBFF 100的資料輸出端子Qn,其中n是從1到(N-1)的範圍中選擇的正整數。當MBFF 100在正常模式下操作時(STEB=1),AND門502生成的資料輸出信號的電壓電平響應於前一級鎖存電路的輸出節點N1處的信號的電壓而改變。當MBFF 100在測試模式下操作時(STEB=0),AND門502生成的資料輸出信號都保持在固定的電壓電平(例如,地電壓),無論前一級鎖存電路的輸出節點N1處的信號電壓如何。 Fig. 5 is a diagram showing a third alternative design of a data output stage circuit with hold function according to an embodiment of the present invention. For example, one or more of the data output stage circuits 210_1 - 210_(N−1) can be implemented using the data output stage circuit 500 . The data output stage circuit 500 adopts an AND gate 502, one of the input nodes of the AND gate 502 is coupled to the output node N1 of the previous stage latch circuit, and the other input node of the AND gate 502 is arranged to receive the test enable signal STEB, and the AND gate 502 The output node of is arranged to output the data output signal to the data output terminal Qn of the MBFF 100, where n is a positive integer selected from the range of 1 to (N-1). When the MBFF 100 operates in the normal mode (STEB=1), the voltage level of the data output signal generated by the AND gate 502 changes in response to the voltage of the signal at the output node N1 of the latch circuit of the previous stage. When the MBFF 100 operates in the test mode (STEB=0), the data output signal generated by the AND gate 502 is maintained at a fixed voltage level (for example, ground voltage), regardless of the output node N1 of the previous stage latch circuit. What about the signal voltage.

第6圖是示出根據本發明的實施例的具有保持功能的資料輸出級電路的第四替代設計的圖。例如,資料輸出級電路210_1-210_(N-1)中的一個或複數個可以使用資料輸出級電路600實現。資料輸出級電路600包括PMOS電晶體602和604,NMOS電晶體606和反相器608。PMOS電晶體604的閘極(gate)接收測試使能信號STEB,PMOS電晶體604的源極(source)耦接到參考電壓(例如電源電壓),PMOS電晶體604的漏極(drain)耦接到反相器608的輸入節點。PMOS電晶體602和NMOS電晶體606形成傳輸門。PMOS電晶體602的閘極接收測試使能信號STE,PMOS電晶體602的源極耦接到前一級鎖存電路的輸出節點N1,PMOS電晶體602的漏極耦接到反相器608的輸入節點。NMOS電晶體606的閘極接收測試使能信號STEB,NMOS電晶體606的漏極耦接到前一級鎖存電路的輸出節點N1,NMOS電晶體606的源極耦接到反相器608的輸入節點。 Figure 6 is a diagram showing a fourth alternative design of a data output stage circuit with hold function according to an embodiment of the present invention. For example, one or more of the data output stage circuits 210_1 - 210_(N−1) can be implemented using the data output stage circuit 600 . Data output stage circuit 600 includes PMOS transistors 602 and 604 , NMOS transistor 606 and inverter 608 . The gate (gate) of the PMOS transistor 604 receives the test enable signal STEB, the source (source) of the PMOS transistor 604 is coupled to a reference voltage (such as a power supply voltage), and the drain (drain) of the PMOS transistor 604 is coupled to to the input node of inverter 608 . PMOS transistor 602 and NMOS transistor 606 form a transmission gate. The gate of the PMOS transistor 602 receives the test enable signal STE, the source of the PMOS transistor 602 is coupled to the output node N1 of the previous stage latch circuit, and the drain of the PMOS transistor 602 is coupled to the input of the inverter 608 node. The gate of the NMOS transistor 606 receives the test enable signal STEB, the drain of the NMOS transistor 606 is coupled to the output node N1 of the previous stage latch circuit, and the source of the NMOS transistor 606 is coupled to the input of the inverter 608 node.

當MBFF 100在正常模式下操作時(STE=0 & STEB=1),由PMOS電晶體602和NMOS電晶體606組成的傳輸門被啟用,並且PMOS電晶體604被關斷(turn off),從而資料輸出端子Qn處的資料輸出信號的電平電壓(n是從1到(N-1)的正整數)響應於前一級鎖存電路的輸出節點N1處的信號的電壓電平而變化。當MBFF 100在測試模式下操作時(STE=1 & STEB=0),由PMOS電晶體602和NMOS電晶體606組成的傳輸門被禁用,並且PMOS電晶體604被導通(turn on),從而使資料輸出端子Qn處的資料輸出信號的電壓電平保持在固定的電壓電平 (例如,接地電壓),而不管前一級鎖存電路的輸出節點N1處的信號的電壓電平如何。 When the MBFF 100 operates in normal mode (STE=0 & STEB=1), the transmission gate composed of the PMOS transistor 602 and the NMOS transistor 606 is enabled, and the PMOS transistor 604 is turned off (turn off), thereby The level voltage of the data output signal at the data output terminal Qn (n is a positive integer from 1 to (N-1)) changes in response to the voltage level of the signal at the output node N1 of the previous stage latch circuit. When MBFF 100 is operating in test mode (STE=1 & STEB=0), the transmission gate consisting of PMOS transistor 602 and NMOS transistor 606 is disabled, and PMOS transistor 604 is turned on, thereby enabling The voltage level of the data output signal at the data output terminal Qn is maintained at a fixed voltage level (for example, ground voltage), regardless of the voltage level of the signal at the output node N1 of the previous-stage latch circuit.

第7圖是示出根據本發明的實施例的具有保持功能的資料輸出級電路的第五替代設計的圖。例如,資料輸出級電路210_1-210_(N-1)中的一個或複數個可以使用資料輸出級電路700實現。資料輸出級電路700包括NMOS電晶體702和704,PMOS電晶體706和反相器708。NMOS電晶體704的閘極接收測試使能信號STE,NMOS電晶體704的源極耦接到參考電壓(例如,地電壓),NMOS電晶體704的漏極耦接到反相器708的輸入節點。PMOS電晶體706和NMOS電晶體702形成傳輸門。PMOS電晶體706的閘極接收測試使能信號STE,PMOS電晶體706的源極耦接到前一級鎖存電路的輸出節點N1,PMOS電晶體706的漏極耦接到反相器708的輸入節點。NMOS電晶體702的閘極接收測試使能信號STEB,NMOS電晶體702的漏極連接到前一級鎖存電路的輸出節點N1,NMOS電晶體702的源極耦接到反相器708的輸入節點。 Fig. 7 is a diagram showing a fifth alternative design of a data output stage circuit with hold function according to an embodiment of the present invention. For example, one or more of the data output stage circuits 210_1 - 210_(N−1) can be implemented using the data output stage circuit 700 . The data output stage circuit 700 includes NMOS transistors 702 and 704 , a PMOS transistor 706 and an inverter 708 . The gate of the NMOS transistor 704 receives the test enable signal STE, the source of the NMOS transistor 704 is coupled to a reference voltage (for example, ground voltage), and the drain of the NMOS transistor 704 is coupled to the input node of the inverter 708 . PMOS transistor 706 and NMOS transistor 702 form a transmission gate. The gate of the PMOS transistor 706 receives the test enable signal STE, the source of the PMOS transistor 706 is coupled to the output node N1 of the previous stage latch circuit, and the drain of the PMOS transistor 706 is coupled to the input of the inverter 708 node. The gate of the NMOS transistor 702 receives the test enable signal STEB, the drain of the NMOS transistor 702 is connected to the output node N1 of the previous stage latch circuit, and the source of the NMOS transistor 702 is coupled to the input node of the inverter 708 .

當MBFF 100在正常模式下操作時(STE=0 & STEB=1),由PMOS電晶體706和NMOS電晶體702組成的傳輸門被啟用,並且NMOS電晶體704被關斷,從而資料輸出端子Qn處的資料輸出信號的電壓電平(n是從1到(N-1)的正整數)響應於前一級鎖存電路的輸出節點N1處的信號的電壓電平而變化。當MBFF 100在測試模式下操作時(STE=1 & STEB=0),由PMOS電晶體706和NMOS電晶體702組成的傳輸門被禁用,並且NMOS電晶體704被導通,從而使資料輸出端子Qn處的資料輸出信號的電壓電平保持在固定的電壓電平(例如電源電壓),而不管在先的鎖存電路的輸出節點N1處的信號的電壓電平如何。 When the MBFF 100 operates in the normal mode (STE=0 & STEB=1), the transmission gate composed of the PMOS transistor 706 and the NMOS transistor 702 is enabled, and the NMOS transistor 704 is turned off, so that the data output terminal Qn The voltage level of the data output signal at (n is a positive integer from 1 to (N-1)) changes in response to the voltage level of the signal at the output node N1 of the previous-stage latch circuit. When the MBFF 100 operates in the test mode (STE=1 & STEB=0), the transmission gate composed of the PMOS transistor 706 and the NMOS transistor 702 is disabled, and the NMOS transistor 704 is turned on, thereby enabling the data output terminal Qn The voltage level of the data output signal at is maintained at a fixed voltage level (for example, the power supply voltage) regardless of the voltage level of the signal at the output node N1 of the preceding latch circuit.

具有N個觸發器102_1-102_N連接形成內部掃描鏈104的MBFF 100被設計為具有省電特性。例如,當在測試模式下在掃描輸入端子SI處接收到外部測試信號S11時,MBFF 100通過內部掃描鏈104傳輸外部測試信號S11,並生成掃 描輸出信號SN4,掃描輸出信號SN4從觸發器102_N輸出到資料輸出端子QN,並且掃描輸出信號SN4的電壓電平響應於外部測試信號S11的電壓電平而改變,並且無論外部測試信號S11的電壓電平如何,均保持(N-1)個資料輸出信號中的每一個(分別從觸發器102_1-102_(N-1)輸出至輸出端子Q1-Q(N-1))處於固定電壓電平。由於在MBFF 100的測試模式下,(N-1)個資料輸出信號沒有信號電平轉換,因此可以減少MBFF 100和下游組合邏輯的功耗。 The MBFF 100 with N flip-flops 102_1 - 102_N connected to form an internal scan chain 104 is designed to have power-saving features. For example, when the external test signal S11 is received at the scan input terminal SI in the test mode, the MBFF 100 transmits the external test signal S11 through the internal scan chain 104, and generates a scan scan output signal SN4, the scan output signal SN4 is output from the flip-flop 102_N to the data output terminal QN, and the voltage level of the scan output signal SN4 changes in response to the voltage level of the external test signal S11, and regardless of the voltage level of the external test signal S11 Regardless of the level, each of the (N-1) data output signals (respectively output from flip-flops 102_1-102_(N-1) to output terminals Q1-Q(N-1)) is kept at a fixed voltage level . Since the (N−1) data output signals do not have signal level conversion in the test mode of the MBFF 100 , the power consumption of the MBFF 100 and downstream combinatorial logic can be reduced.

在第1圖和第2圖所示的實施例中,MBFF 100具有正常資料傳輸和測試資料傳輸共用的資料輸出端子QN。然而,這僅出於說明的目的,並不意味著對本發明的限制。在替代設計中,MBFF可以被配置為具有附加端子,該附加端子用作輸出掃描輸出信號的專用掃描輸出端子。 In the embodiments shown in FIG. 1 and FIG. 2 , MBFF 100 has a data output terminal QN shared by normal data transmission and test data transmission. However, this is for illustrative purposes only and is not meant to limit the invention. In an alternative design, the MBFF may be configured with additional terminals serving as dedicated scan-out terminals for outputting scan-out signals.

第8圖是示出根據本發明的實施例的具有省電特性的第二MBFF的示意圖。在該實施例中,MBFF 800是N位掃描觸發器,其中N是不小於1的正整數(即,N

Figure 110114672-A0305-02-0018-20
2)。MBFF 800的電路佈局可以是IC設計所使用的單元庫中的一個單元。如第8圖所示,MBFF 800具有N個資料輸入端子D1,D2,...,D(N-1)和DN,掃描輸入端子SI,測試使能端子SE,時鐘輸入端子CLK,N個資料輸出端子Q1,Q2,...,Q(N-1)和QN,以及掃描輸出端子SQ。此外,MBFF 800包括N個觸發器(FF)802_1,802_2,...,802_(N-1)和802_N,它們連接以形成內部掃描鏈104。MBFF100和800之間的主要區別在於MBFF 800的觸發器802_N具有當MBFF 800在測試模式下操作時用於輸出掃描輸出信號的掃描輸出端子SQ,並且還具有有保持功能的資料輸出級電路210_N(標記為“L1”),該保持功能在測試模式下啟用而在正常模式下禁用。 FIG. 8 is a schematic diagram illustrating a second MBFF having power saving characteristics according to an embodiment of the present invention. In this embodiment, MBFF 800 is an N-bit scan flip-flop, where N is a positive integer not less than 1 (ie, N
Figure 110114672-A0305-02-0018-20
2). The circuit layout of MBFF 800 may be a cell in a cell library used in IC design. As shown in Figure 8, MBFF 800 has N data input terminals D1, D2, ..., D(N-1) and DN, scan input terminal SI, test enable terminal SE, clock input terminal CLK, N Data output terminals Q1, Q2, . . . , Q(N-1) and QN, and a scan output terminal SQ. Furthermore, MBFF 800 includes N flip-flops (FFs) 802_1 , 802_2 , . The main difference between the MBFF 100 and 800 is that the flip-flop 802_N of the MBFF 800 has a scan output terminal SQ for outputting a scan output signal when the MBFF 800 operates in a test mode, and also has a data output stage circuit 210_N ( marked "L1"), the holdover function is enabled in test mode and disabled in normal mode.

當MBFF 800在正常模式操作時,資料輸出級電路210_N生成資料輸出信號並將其輸出到資料輸出端子QN,其中資料輸出信號的電壓電平響應於資料輸入端子DN處的資料信號的電壓電平而改變。當MBFF 800在測試模式操作 時,掃描輸出級電路(未示出)生成掃描輸出信號並將其輸出到掃描輸出端子SQ,其中掃描輸出信號的電壓電平響應於資料輸入端子DN處的資料信號的電壓電平而改變。此外,資料輸出級電路210_N生成資料輸出信號並將其輸出到資料輸出端子QN,其中資料輸出信號的電壓電平保持在固定的電壓電平(例如,高電壓電平或低電壓電平),而不管從前一級觸發器802_(N-1)獲得的測試信號INTN的電壓電平如何。 When the MBFF 800 operates in the normal mode, the data output stage circuit 210_N generates a data output signal and outputs it to the data output terminal QN, wherein the voltage level of the data output signal corresponds to the voltage level of the data signal at the data input terminal DN. And change. When MBFF 800 is operating in test mode , the scan output stage circuit (not shown) generates a scan output signal and outputs it to the scan output terminal SQ, wherein the voltage level of the scan output signal changes in response to the voltage level of the data signal at the data input terminal DN. In addition, the data output stage circuit 210_N generates a data output signal and outputs it to the data output terminal QN, wherein the voltage level of the data output signal is maintained at a fixed voltage level (for example, a high voltage level or a low voltage level), Regardless of the voltage level of the test signal INTN obtained from the flip-flop 802_(N-1) of the previous stage.

第9圖是示出根據本發明的實施例的MBFF的第二電路設計的圖。作為示例而非限制,第8圖中所示的MBFF 800可以使用第9圖所示的電路結構來實現。每個觸發器802_1-802_(N-1)可以具有與第2圖所示電路結構相同的電路結構。為簡潔起見,省略類似的描述。關於最後的觸發器802_N,其被佈置為在MBFF 800的資料輸出端子QN處輸出資料輸出信號SN4,並且在MBFF 800的掃描輸出端子SQ處輸出掃描輸出信號SN5。如第9圖所示,觸發器802_N包括資料輸出級電路210_N,掃描輸出級電路902以及上述選擇電路206_N和鎖存電路208_N。類似第2圖所示的輸出級電路212,掃描輸出級電路902由反相器213實現。類似資料輸出級電路210_1和210_2,資料輸出級電路210_N配備有在MBFF800的測試模式下被啟用並且在MBFF 800的正常模式下被禁用的保持功能。當MBFF 800在正常模式下操作時,選擇電路206_N將資料信號SN0發送到選擇電路206_N的輸出節點用作輸入信號SN2,並且資料輸出級電路210_N生成資料輸出信號SN4,資料輸出信號SN4的電壓電平響應於資料信號SN0的電壓電平而改變。具體地,資料輸出信號SN4的電壓電平響應於信號SN3的電壓電平而改變,其中信號SN3的電壓電平響應於資料信號SN0的電壓電平而改變。當MBFF 800在測試模式下操作時,選擇電路206_N將測試信號INTN發送到選擇電路206_N的輸出節點用作輸入信號SN2,並且資料輸出級電路210_N保持資料輸出信號SN4處於固定電壓電平(例如,高電壓電平或低電壓電平),而不管測試信 號INTN的電壓電平如何。具體地,資料輸出信號SN4的電壓電平不響應於信號SN3的電壓電平而改變,而信號SN3的電壓電平響應於測試信號INTN的電壓電平而改變。 Fig. 9 is a diagram showing a second circuit design of an MBFF according to an embodiment of the present invention. By way of example and not limitation, the MBFF 800 shown in FIG. 8 can be implemented using the circuit structure shown in FIG. 9 . Each flip-flop 802_1-802_(N-1) may have the same circuit structure as that shown in FIG. 2 . Similar descriptions are omitted for brevity. Regarding the last flip-flop 802_N, it is arranged to output the data output signal SN4 at the data output terminal QN of the MBFF 800 and to output the scan output signal SN5 at the scan output terminal SQ of the MBFF 800 . As shown in FIG. 9, the flip-flop 802_N includes a data output stage circuit 210_N, a scan output stage circuit 902, the selection circuit 206_N and the latch circuit 208_N. Similar to the output stage circuit 212 shown in FIG. 2 , the scan output stage circuit 902 is realized by an inverter 213 . Like the data output stage circuits 210_1 and 210_2 , the data output stage circuit 210_N is equipped with a hold function that is enabled in the test mode of the MBFF 800 and disabled in the normal mode of the MBFF 800 . When the MBFF 800 operates in the normal mode, the selection circuit 206_N sends the data signal SN0 to the output node of the selection circuit 206_N as the input signal SN2, and the data output stage circuit 210_N generates the data output signal SN4, the voltage level of which is The level changes in response to the voltage level of the data signal SN0. Specifically, the voltage level of the data output signal SN4 changes in response to the voltage level of the signal SN3, which changes in response to the voltage level of the data signal SN0. When the MBFF 800 is operating in the test mode, the selection circuit 206_N sends the test signal INTN to the output node of the selection circuit 206_N as the input signal SN2, and the data output stage circuit 210_N maintains the data output signal SN4 at a fixed voltage level (e.g., high voltage level or low voltage level), regardless of the test signal What is the voltage level of No. INTN. Specifically, the voltage level of the data output signal SN4 does not change in response to the voltage level of the signal SN3, but the voltage level of the signal SN3 changes in response to the voltage level of the test signal INTN.

第9圖所示的電路結構僅是為了說明的目的,並不意味著對本發明的限制。例如,選擇電路可以由能夠選擇正常資料輸入和測試資料輸入之一作為隨後的鎖存電路的輸入信號的任何其他電路結構來實現。對於另一示例,鎖存電路可以由能夠處理從前一級選擇電路獲得的輸入信號來生成信號並將生成的信號輸出到具有保持功能的後一級資料輸出級電路的任何其他電路結構來實現。又例如,具有保持功能的資料輸出級電路可以由當MBFF在測試模式下操作時能夠將資料輸出信號保持在固定電壓電平的任何其他電路結構來實現。因此,觸發器802_1-802_N中的一個或複數個可以使用第3圖所示的資料輸出級電路300,第4圖所示的資料輸出級電路400,第5圖所示的資料輸出級電路500,第6圖所示的資料輸出級電路600或第7圖所示的資料輸出級電路700來實現。 The circuit configuration shown in FIG. 9 is for illustrative purposes only, and is not meant to limit the present invention. For example, the selection circuit may be implemented by any other circuit structure capable of selecting one of the normal data input and the test data input as the input signal of the subsequent latch circuit. For another example, the latch circuit may be implemented by any other circuit structure capable of processing an input signal obtained from a selection circuit of a previous stage to generate a signal and output the generated signal to a data output stage circuit of a subsequent stage with a holding function. As another example, the data output stage circuit with holding function can be implemented by any other circuit structure capable of holding the data output signal at a fixed voltage level when the MBFF is operating in the test mode. Therefore, one or a plurality of flip-flops 802_1-802_N can use the data output stage circuit 300 shown in FIG. 3, the data output stage circuit 400 shown in FIG. 4, and the data output stage circuit 500 shown in FIG. 5. , the data output stage circuit 600 shown in FIG. 6 or the data output stage circuit 700 shown in FIG. 7.

具有N個觸發器802_1-802_N連接形成內部掃描鏈104的MBFF 800被設計為具有省電特性。例如,當在掃描輸入端子SI處接收到外部測試信號S11時,MBFF 800通過內部掃描鏈104傳遞外部測試信號S11,生成從觸發器802_N輸出到掃描輸出端子SQ的掃描輸出信號SN4,掃描輸出信號SN4的電壓電平響應於外部測試信號S11的電壓電平而變化,並且不管外部測試信號S11如何而保持N個資料輸出信號中的每一個(分別從N個觸發器802_1-802_N輸出到N個輸出端子Q1-QN)的電壓電平在固定電壓電平。由於在MBFF 800的測試模式下N個資料輸出信號沒有信號電平轉換,因此可以降低MBFF 800和下游組合邏輯的功耗。 The MBFF 800 with N flip-flops 802_1 - 802_N connected to form the internal scan chain 104 is designed to have power-saving features. For example, when the external test signal S11 is received at the scan input terminal SI, the MBFF 800 transmits the external test signal S11 through the internal scan chain 104 to generate a scan output signal SN4 output from the flip-flop 802_N to the scan output terminal SQ, and the scan output signal The voltage level of SN4 changes in response to the voltage level of the external test signal S11, and maintains each of the N data output signals (output from N flip-flops 802_1-802_N to N The voltage level of the output terminals Q1-QN) is at a fixed voltage level. Since there is no signal level conversion for the N data output signals in the test mode of the MBFF 800 , the power consumption of the MBFF 800 and downstream combinatorial logic can be reduced.

在第9圖所示的實施例中,掃描輸出級電路902不具有保持功能。結果,當MBFF 800在正常模式和測試模式中的任何一個模式下操作時,掃描輸出信號SN5的電壓電平響應於信號SN3的電壓電平而改變。在替代設計中,MBFF 可以被配置為具有有保持功能的掃描輸出級電路。 In the embodiment shown in FIG. 9, the scan output stage circuit 902 does not have a hold function. As a result, when the MBFF 800 operates in any one of the normal mode and the test mode, the voltage level of the scan output signal SN5 changes in response to the voltage level of the signal SN3. In an alternative design, MBFF Can be configured as a scan output stage circuit with a hold function.

第10圖是示出根據本發明的實施例的具有省電特性的第三MBFF的示意圖。在該實施例中,MBFF 1000是N位掃描觸發器,其中N是不小於1的正整數(即,N

Figure 110114672-A0305-02-0021-22
2)。MBFF 1000的電路佈局可以是IC設計所使用的單元庫中的一個單元。如第10圖所示,MBFF 1000具有N個資料輸入端子D1,D2,...,D(N-1)和DN,掃描輸入端子SI,測試使能端子SE,時鐘輸入端子CLK,N個資料輸出端子Q1,Q2,...,Q(N-1)和QN,以及掃描輸出端子SQ。此外,MBFF 1000包括N個觸發器(FF)1002_1,1002_2,...,1002_(N-1),1002_N連接形成內部掃描鏈104。MBFF1000和MBFF800之間的主要區別是MBFF 1000的最後一個觸發器1002_N具有有保持功能的掃描輸出級電路1004(由“L2”標記),該保持功能在正常模式下被啟用而在測試模式下被禁用。 FIG. 10 is a schematic diagram illustrating a third MBFF having power saving characteristics according to an embodiment of the present invention. In this embodiment, MBFF 1000 is an N-bit scan flip-flop, where N is a positive integer not less than 1 (ie, N
Figure 110114672-A0305-02-0021-22
2). The circuit layout of MBFF 1000 may be a cell in a cell library used in IC design. As shown in Figure 10, MBFF 1000 has N data input terminals D1, D2, ..., D(N-1) and DN, scan input terminal SI, test enable terminal SE, clock input terminal CLK, N Data output terminals Q1, Q2, . . . , Q(N-1) and QN, and a scan output terminal SQ. In addition, MBFF 1000 includes N flip-flops (FF) 1002_1 , 1002_2 , . The main difference between MBFF1000 and MBFF800 is that the last flip-flop 1002_N of MBFF 1000 has a scan output stage circuit 1004 (marked by "L2") with a hold function that is enabled in normal mode and disabled in test mode. disabled.

當MBFF 1000在正常模式下操作時,資料輸出級電路210_N生成資料輸出信號並將其輸出到資料輸出端子QN,其中資料輸出信號的電壓電平響應於資料輸入端子DN處的資料信號的電壓電平而改變;掃描輸出級電路1004生成並輸出掃描輸出信號至掃描輸出端子SQ,其中掃描輸出信號的電壓電平保持為固定的電壓電平(例如,高電壓電平或低電壓電平),而不管資料輸入端子DN處的資料信號的電壓電平如何。 When the MBFF 1000 operates in the normal mode, the data output stage circuit 210_N generates a data output signal and outputs it to the data output terminal QN, wherein the voltage level of the data output signal corresponds to the voltage level of the data signal at the data input terminal DN. The scan output stage circuit 1004 generates and outputs a scan output signal to the scan output terminal SQ, wherein the voltage level of the scan output signal is maintained at a fixed voltage level (for example, a high voltage level or a low voltage level), Regardless of the voltage level of the data signal at the data input terminal DN.

當MBFF 1000在測試模式下操作時,掃描輸出級電路1004生成掃描輸出信號並將其輸出到掃描輸出端子SQ,其中掃描輸出信號的電壓電平響應於從前一級觸發器1002_(N-1)獲得的測試信號INTN的電壓電平而變化。資料輸出級電路210_N生成並輸出資料輸出信號至資料輸出端子QN,其中資料輸出信號的電壓電平保持在固定的電壓電平(例如高電壓電平或低電壓電平),而不管從前一級觸發器1002_(N-1)獲得的測試信號INTN的電壓電平如何。 When the MBFF 1000 operates in the test mode, the scan output stage circuit 1004 generates a scan output signal and outputs it to the scan output terminal SQ, wherein the voltage level of the scan output signal is obtained in response to The voltage level of the test signal INTN varies. The data output stage circuit 210_N generates and outputs a data output signal to the data output terminal QN, wherein the voltage level of the data output signal is maintained at a fixed voltage level (such as a high voltage level or a low voltage level) regardless of the trigger from the previous stage. What is the voltage level of the test signal INTN obtained by the device 1002_(N-1).

第11圖是示出根據本發明的實施例的MBFF的第三電路設計的圖。作 為示例而非限制,第10圖中所示的MBFF 1000可以使用第11圖所示的電路結構來實現。觸發器1002_1-1002_(N-1)中的每一個可以具有第2圖或第9圖所示的電路結構。為簡潔起見,省略了進一步的描述。關於最後的觸發器1002_N,其被佈置為在MBFF 1000的資料輸出端子QN處輸出資料輸出信號SN4,並在MBFF 1000的掃描輸出端子SQ處輸出掃描輸出信號SN5。觸發器802_N和1002_N之間的主要區別在於,觸發器1002_N採用具有保持功能的掃描輸出級電路1004,該保持功能在MBFF 1000的正常模式下被啟用而在MBFF 1000的測試模式下被禁用。當MBFF 1000在測試模式下操作時,選擇電路206_N將測試信號INTN發送到選擇電路206_N的輸出節點用作輸入信號SN2,並且掃描輸出級電路1004生成掃描輸出信號SN5,掃描輸出信號SN5具有響應於測試信號INTN的電壓電平而改變的電壓電平。具體地,掃描輸出信號SN5的電壓電平響應於信號SN3的電壓電平而改變,其中信號SN3的電壓電平響應於測試信號INTN的電壓電平而改變。當MBFF 1000在正常模式下操作時,選擇電路206_N將資料信號SN0發送到選擇電路206_N的輸出節點用作輸入信號SN2,並且掃描輸出級電路1004保持掃描輸出信號SN5處於固定電壓電平(例如,高電壓電平或低電壓電平),而不管資料信號SN0的電壓電平如何。具體地,掃描輸出信號SN5的電壓電平不響應於信號SN3的電壓電平而改變,而信號SN3的電壓電平響應於資料信號SN0的電壓電平而改變。 FIG. 11 is a diagram showing a third circuit design of an MBFF according to an embodiment of the present invention. do By way of example and not limitation, the MBFF 1000 shown in FIG. 10 can be implemented using the circuit structure shown in FIG. 11 . Each of the flip-flops 1002_1-1002_(N-1) may have the circuit structure shown in FIG. 2 or FIG. 9 . For brevity, further description is omitted. Regarding the last flip-flop 1002_N, it is arranged to output the data output signal SN4 at the data output terminal QN of the MBFF 1000 and to output the scan output signal SN5 at the scan output terminal SQ of the MBFF 1000 . The main difference between flip-flops 802_N and 1002_N is that flip-flop 1002_N employs a scan output stage circuit 1004 with a hold function that is enabled in the normal mode of the MBFF 1000 and disabled in the test mode of the MBFF 1000 . When the MBFF 1000 is operating in the test mode, the selection circuit 206_N sends the test signal INTN to the output node of the selection circuit 206_N to be used as the input signal SN2, and the scan output stage circuit 1004 generates a scan output signal SN5 having a response to Test the voltage level of signal INTN to change the voltage level. Specifically, the voltage level of the scan output signal SN5 changes in response to the voltage level of the signal SN3, which changes in response to the voltage level of the test signal INTN. When the MBFF 1000 is operating in the normal mode, the selection circuit 206_N sends the data signal SN0 to the output node of the selection circuit 206_N as the input signal SN2, and the scan output stage circuit 1004 maintains the scan output signal SN5 at a fixed voltage level (e.g., high voltage level or low voltage level), regardless of the voltage level of the data signal SN0. Specifically, the voltage level of the scan output signal SN5 does not change in response to the voltage level of the signal SN3, whereas the voltage level of the signal SN3 changes in response to the voltage level of the data signal SN0.

像資料輸出級電路210_1、210_2和210_N一樣,掃描輸出級電路1004由或非(NOR)門實現,其中NOR門的一個輸入節點被佈置為在鎖存電路208_N的輸出節點N2處接收信號SN3,NOR門的另一個輸入節點被佈置為接收測試使能信號STEB,而NOR門的輸出節點被佈置為將掃描輸出信號SN5輸出至MBFF 1000的掃描輸出端子SQ。因此,當MBFF 1000在正常模式下操作時(STEB=1),在NOR門處啟用保持功能。當MBFF 100在測試模式下操作時(STEB=0),在NOR 門處禁用保持功能。 Like the data output stage circuits 210_1, 210_2 and 210_N, the scan output stage circuit 1004 is implemented by a NOR gate, wherein one input node of the NOR gate is arranged to receive the signal SN3 at the output node N2 of the latch circuit 208_N, The other input node of the NOR gate is arranged to receive the test enable signal STEB, and the output node of the NOR gate is arranged to output the scan output signal SN5 to the scan output terminal SQ of the MBFF 1000 . Therefore, when the MBFF 1000 is operating in normal mode (STEB=1), the holdover function is enabled at the NOR gate. When MBFF 100 is operating in test mode (STEB=0), in NOR The hold function is disabled at the door.

第11圖所示的電路結構僅是為了說明的目的,並不意味著對本發明的限制。例如,選擇電路可以由能夠選擇正常資料輸入和測試資料輸入之一作為隨後的鎖存電路的輸入信號的任何其他電路結構來實現。對於另一示例,鎖存電路可以由能夠處理從前一級選擇電路獲得的輸入信號以生成信號並將生成的信號輸出到具有保持功能的後一級資料輸出級電路的任何其他電路結構來實現。又例如,具有保持功能的資料輸出級電路可以由當MBFF在測試模式下操作時能夠將資料輸出信號保持在固定電壓電平的任何其他電路結構來實現。又例如,具有保持功能的掃描輸出級電路可以由當MBFF在正常模式下操作時能夠將掃描輸出信號保持在固定電壓電平的任何其他電路結構來實現。 The circuit configuration shown in FIG. 11 is for illustrative purposes only and is not meant to limit the present invention. For example, the selection circuit may be implemented by any other circuit structure capable of selecting one of the normal data input and the test data input as the input signal of the subsequent latch circuit. For another example, the latch circuit may be realized by any other circuit structure capable of processing an input signal obtained from a selection circuit of a previous stage to generate a signal and output the generated signal to a data output stage circuit of a subsequent stage having a holding function. As another example, the data output stage circuit with holding function can be implemented by any other circuit structure capable of holding the data output signal at a fixed voltage level when the MBFF is operating in the test mode. As another example, the scan output stage circuit with hold function can be realized by any other circuit structure capable of maintaining the scan output signal at a fixed voltage level when the MBFF operates in normal mode.

第12圖是示出根據本發明的實施例的具有保持功能的掃描輸出級電路的第一替代設計的圖。例如,可以使用掃描輸出級電路1200來實現掃描輸出級電路1004。掃描輸出級電路1200採用或(OR)門1202,其中OR門1202的一個輸入節點耦接至前端的鎖存電路的輸出節點N2,OR門1202的另一個輸入節點被佈置為接收測試使能信號STEB,OR門1202的輸出節點被佈置為將掃描輸出信號輸出到掃描MBFF 1000的輸出端子SQ。當MBFF 1000在測試模式下操作時(STEB=0),OR門1202生成的掃描輸出信號的電壓電平響應於前端的鎖存電路的輸出節點N2處的信號的電壓而改變。當MBFF 1000在正常模式下操作時(STEB=1),OR門1202生成的掃描輸出信號保持在固定的電壓電平(例如電源電壓),而與前端的鎖存電路的輸出節點N2處的信號的電壓無關。 Fig. 12 is a diagram showing a first alternative design of a scan output stage circuit with hold function according to an embodiment of the present invention. For example, scan output stage circuit 1200 may be used to implement scan output stage circuit 1004 . The scanning output stage circuit 1200 adopts an OR (OR) gate 1202, wherein one input node of the OR gate 1202 is coupled to the output node N2 of the latch circuit at the front end, and the other input node of the OR gate 1202 is arranged to receive a test enable signal The output node of the STEB, OR gate 1202 is arranged to output the scan output signal to the output terminal SQ of the scan MBFF 1000 . When the MBFF 1000 operates in the test mode (STEB=0), the voltage level of the scan output signal generated by the OR gate 1202 changes in response to the voltage of the signal at the output node N2 of the latch circuit of the front end. When the MBFF 1000 is operating in the normal mode (STEB=1), the scan output signal generated by the OR gate 1202 is maintained at a fixed voltage level (such as a power supply voltage), and is compared with the signal at the output node N2 of the latch circuit of the front end voltage is irrelevant.

第13圖是示出根據本發明的實施例的具有保持功能的掃描輸出級電路的第二替代設計的圖。例如,可以使用掃描輸出級電路1300來實現掃描輸出級電路1004。掃描輸出級電路1300採用與非(NAND)門1302,其中NAND門1302的一個輸入節點耦接到前一級鎖存電路的輸出節點N2,NAND門1302的另一個 輸入節點被佈置為接收測試使能信號STE,並且NAND門1302的輸出節點被佈置為向MBFF 1000的掃描端子SQ輸出掃描輸出信號。當MBFF 1000在測試模式下操作時(STE=1),NAND門1302生成的掃描輸出信號的電壓電平響應於前一級鎖存電路的輸出節點N2處的信號的電壓而變化。當MBFF 1000在正常模式下操作時(STE=0),NAND門1302生成的掃描輸出信號保持在固定的電壓電平(例如電源電壓),而與前一級鎖存電路的輸出節點N2處的信號電壓無關。 Fig. 13 is a diagram showing a second alternative design of a scan output stage circuit with hold function according to an embodiment of the present invention. For example, scan output stage circuit 1300 may be used to implement scan output stage circuit 1004 . The scanning output stage circuit 1300 adopts a NAND gate 1302, wherein one input node of the NAND gate 1302 is coupled to the output node N2 of the previous stage latch circuit, and the other of the NAND gate 1302 The input node is arranged to receive the test enable signal STE, and the output node of the NAND gate 1302 is arranged to output a scan output signal to the scan terminal SQ of the MBFF 1000 . When the MBFF 1000 operates in the test mode (STE=1), the voltage level of the scan output signal generated by the NAND gate 1302 varies in response to the voltage of the signal at the output node N2 of the latch circuit of the previous stage. When the MBFF 1000 is operating in the normal mode (STE=0), the scan output signal generated by the NAND gate 1302 is maintained at a fixed voltage level (such as a power supply voltage), which is different from the signal at the output node N2 of the previous stage latch circuit Voltage is independent.

第14圖是示出根據本發明的實施例的具有保持功能的掃描輸出級電路的第三替代設計的圖。例如,可以使用掃描輸出級電路1400來實現掃描輸出級電路1004。掃描輸出級電路1400採用與(AND)門1402,其中AND門1402的一個輸入節點耦接到在前一級鎖存電路的輸出節點N2,AND門1402的另一個輸入節點被佈置為接收測試使能信號STE,並且AND門1402的輸出節點被佈置為向MBFF 1000的掃描輸出端子SQ輸出掃描輸出信號。當MBFF 1000在測試模式下操作時(STE=1),AND門1402生成的掃描輸出信號的電壓電平響應於前一級鎖存電路的輸出節點處N2的信號的電壓而改變。當MBFF 1000在正常模式下操作時(STE=0),AND門1402生成的掃描輸出信號保持在固定電壓電平(例如,接地電壓),而與前一個鎖存電路的輸出節點N2處的信號的電壓無關。 Fig. 14 is a diagram showing a third alternative design of a scan output stage circuit with hold function according to an embodiment of the present invention. For example, scan output stage circuit 1400 may be used to implement scan output stage circuit 1004 . The scanning output stage circuit 1400 adopts an AND (AND) gate 1402, wherein one input node of the AND gate 1402 is coupled to the output node N2 of the latch circuit at the previous stage, and the other input node of the AND gate 1402 is arranged to receive a test enable signal STE, and the output node of the AND gate 1402 is arranged to output the scan-out signal to the scan-out terminal SQ of the MBFF 1000 . When the MBFF 1000 operates in the test mode (STE=1), the voltage level of the scan output signal generated by the AND gate 1402 changes in response to the voltage of the signal at the output node N2 of the latch circuit of the previous stage. When the MBFF 1000 is operating in normal mode (STE=0), the scan output signal generated by the AND gate 1402 is maintained at a fixed voltage level (eg, ground voltage), which is different from the signal at the output node N2 of the previous latch circuit voltage is irrelevant.

第15圖是示出根據本發明的實施例的具有保持功能的掃描輸出級電路的第四替代設計的圖。例如,可以使用掃描輸出級電路1500來實現掃描輸出級電路1004。掃描輸出級電路1500包括PMOS電晶體1502和1504,NMOS電晶體1506和反相器1508。PMOS電晶體1504的閘極接收測試使能信號STE,PMOS電晶體1504的源極耦接到參考電壓(例如,電源電壓),並且PMOS電晶體1504的漏極耦接到反相器1508的輸入節點。PMOS電晶體1502和NMOS電晶體1506形成傳輸門。PMOS電晶體1502的閘極接收測試使能信號STEB,PMOS電晶體1502的源極耦接到前一級鎖存電路的輸出節點N2,並且PMOS電晶體1502的漏極耦 接反相器1508的輸入節點。NMOS電晶體1506的閘極接收測試使能信號STE,NMOS電晶體1506的漏極連接到前一級鎖存電路的輸出節點N2,NMOS電晶體1506的源極耦接到反相器1508的輸入節點。 Fig. 15 is a diagram showing a fourth alternative design of a scan output stage circuit with hold function according to an embodiment of the present invention. For example, scan output stage circuit 1500 may be used to implement scan output stage circuit 1004 . Scan output stage circuit 1500 includes PMOS transistors 1502 and 1504 , NMOS transistor 1506 and inverter 1508 . The gate of the PMOS transistor 1504 receives the test enable signal STE, the source of the PMOS transistor 1504 is coupled to a reference voltage (eg, supply voltage), and the drain of the PMOS transistor 1504 is coupled to the input of the inverter 1508 node. PMOS transistor 1502 and NMOS transistor 1506 form a transmission gate. The gate of the PMOS transistor 1502 receives the test enable signal STEB, the source of the PMOS transistor 1502 is coupled to the output node N2 of the previous stage latch circuit, and the drain of the PMOS transistor 1502 is coupled to Connect to the input node of inverter 1508. The gate of the NMOS transistor 1506 receives the test enable signal STE, the drain of the NMOS transistor 1506 is connected to the output node N2 of the previous stage latch circuit, and the source of the NMOS transistor 1506 is coupled to the input node of the inverter 1508 .

當MBFF 1000在測試模式下操作時(STE=1 & STEB=0),由PMOS電晶體1502和NMOS電晶體1506組成的傳輸門被啟用,並且PMOS電晶體1504被關斷,從而使得掃描輸出端子SQ處的掃描輸出信號的電壓電平響應於前一級鎖存電路的輸出節點N2處的信號的電壓電平而改變。當MBFF 1000在正常模式下操作時(STE=0 & STEB=1),由PMOS電晶體1502和NMOS電晶體1506組成的傳輸門被禁用,並且PMOS電晶體1504導通,從而使得掃描輸出端子SQ處的掃描輸出信號的電壓電平保持在固定的電壓電平(例如,接地電壓),而不管前一級鎖存電路的輸出節點N2處的信號的電壓電平如何。 When the MBFF 1000 operates in the test mode (STE=1 & STEB=0), the transmission gate composed of the PMOS transistor 1502 and the NMOS transistor 1506 is enabled, and the PMOS transistor 1504 is turned off, thereby enabling the scan output terminal The voltage level of the scan output signal at SQ changes in response to the voltage level of the signal at the output node N2 of the latch circuit of the preceding stage. When the MBFF 1000 is operating in the normal mode (STE=0 & STEB=1), the transmission gate composed of the PMOS transistor 1502 and the NMOS transistor 1506 is disabled, and the PMOS transistor 1504 is turned on, so that the scan output terminal SQ The voltage level of the scan-out signal of the scan output signal is maintained at a fixed voltage level (for example, ground voltage) regardless of the voltage level of the signal at the output node N2 of the previous-stage latch circuit.

第16圖是示出根據本發明的實施例的具有保持功能的掃描輸出級電路的第五替代設計的圖。例如,可以使用掃描輸出級電路1600來實現掃描輸出級電路1004。掃描輸出級電路1600包括NMOS電晶體1602和1604,PMOS電晶體1606和反相器1608。NMOS電晶體1604的閘極接收測試使能信號STEB,NMOS電晶體1604的源極耦接至參考電壓(例如,接地電壓),並且NMOS電晶體1604的漏極耦接至反相器1608輸入節點。PMOS電晶體1606和NMOS電晶體1602形成傳輸門。PMOS電晶體1606的閘極接收測試使能信號STEB,PMOS電晶體1606的源極耦接到前一級鎖存電路的輸出節點N2,並且PMOS電晶體1606的漏極耦接到反相器1608的輸入節點。NMOS電晶體1602的閘極接收測試使能信號STE,NMOS電晶體1602的漏極連接到前一級鎖存電路的輸出節點N2,NMOS電晶體1602的源極耦接到反相器1608的輸入節點。 Fig. 16 is a diagram showing a fifth alternative design of a scan output stage circuit with hold function according to an embodiment of the present invention. For example, scan output stage circuit 1600 may be used to implement scan output stage circuit 1004 . The scan output stage circuit 1600 includes NMOS transistors 1602 and 1604 , a PMOS transistor 1606 and an inverter 1608 . The gate of the NMOS transistor 1604 receives the test enable signal STEB, the source of the NMOS transistor 1604 is coupled to a reference voltage (eg, ground voltage), and the drain of the NMOS transistor 1604 is coupled to the input node of the inverter 1608 . PMOS transistor 1606 and NMOS transistor 1602 form a transmission gate. The gate of the PMOS transistor 1606 receives the test enable signal STEB, the source of the PMOS transistor 1606 is coupled to the output node N2 of the previous stage latch circuit, and the drain of the PMOS transistor 1606 is coupled to the inverter 1608 Enter the node. The gate of the NMOS transistor 1602 receives the test enable signal STE, the drain of the NMOS transistor 1602 is connected to the output node N2 of the previous stage latch circuit, and the source of the NMOS transistor 1602 is coupled to the input node of the inverter 1608 .

當MBFF 1000在測試模式下操作時(STE=1 & STEB=0),由PMOS電晶體1606和NMOS電晶體1602組成的傳輸門被啟用,並且NMOS電晶體1604被關 斷,從而使得掃描輸出端子SQ處的掃描輸出信號的電壓電平響應於前一級鎖存電路的輸出節點N2處的信號的電壓電平而改變。當MBFF 1000在正常模式下操作時(STE=0 & STEB=1),由PMOS電晶體1606和NMOS電晶體1602組成的傳輸門被禁用,並且NMOS電晶體1604導通,從而使得掃描輸出端子SQ處的掃描輸出信號保持在固定的電壓電平(例如,電源電壓),而不管在前一級鎖存電路的輸出節點N2處的信號的電壓電平如何。 When MBFF 1000 is operating in test mode (STE=1 & STEB=0), the transmission gate consisting of PMOS transistor 1606 and NMOS transistor 1602 is enabled, and NMOS transistor 1604 is turned off is turned off so that the voltage level of the scan output signal at the scan output terminal SQ changes in response to the voltage level of the signal at the output node N2 of the latch circuit of the preceding stage. When the MBFF 1000 operates in the normal mode (STE=0 & STEB=1), the transmission gate composed of the PMOS transistor 1606 and the NMOS transistor 1602 is disabled, and the NMOS transistor 1604 is turned on, so that the scan output terminal SQ The scan output signal of the 10 is maintained at a fixed voltage level (for example, the power supply voltage) regardless of the voltage level of the signal at the output node N2 of the latch circuit of the previous stage.

具有N個觸發器1002_1-1002_N連接以形成內部掃描鏈104的MBFF 1000被設計為具有省電特性。例如,當MBFF 1000在掃描輸入端子SI處接收到外部測試信號S11時,MBFF 1000通過內部掃描鏈104傳輸外部測試信號S11,生成從觸發器1002_N輸出到掃描輸出端子SQ的掃描輸出信號SN5,且及掃描輸出信號SN5的電壓電平響應於外部測試信號S11的電壓電平而改變,並且保持N個資料輸出信號(從N個觸發器1002_1-1002_N輸出到N個資料輸出端子Q1-QN)中的每一個為固定電壓電平,而不管外部測試信號S11的電壓電平如何。由於在MBFF 1000的測試模式下N個資料輸出信號沒有信號電平轉換,因此可以降低MBFF 1000和下游組合邏輯的功耗。 The MBFF 1000 with N flip-flops 1002_1 - 1002_N connected to form the internal scan chain 104 is designed with power-saving features. For example, when MBFF 1000 receives external test signal S11 at scan input terminal SI, MBFF 1000 transmits external test signal S11 through internal scan chain 104 to generate scan output signal SN5 output from flip-flop 1002_N to scan output terminal SQ, and And the voltage level of the scan output signal SN5 changes in response to the voltage level of the external test signal S11, and maintains N data output signals (output from N flip-flops 1002_1-1002_N to N data output terminals Q1-QN) Each of is a fixed voltage level regardless of the voltage level of the external test signal S11. Since there is no signal level conversion for the N data output signals in the test mode of the MBFF 1000, the power consumption of the MBFF 1000 and downstream combinatorial logic can be reduced.

此外,當在資料輸入端子DN處接收到資料信號SN0時,MBFF 1000生成從觸發器1002_N輸出到資料輸出端子QN的資料輸出信號SN4,並且資料輸出信號SN4的電壓電平響應於資料信號SN0的電壓電平而改變,並且將掃描輸出信號SN5(從觸發器1002_N輸出到掃描輸出端子SQ)保持在固定的電壓電平,而不管資料信號SN0的電壓電平如何。由於在MBFF 1000的正常模式下掃描輸出信號沒有信號電平轉換,因此可以減小MBFF 1000和下游邏輯的功耗。 In addition, when the data signal SN0 is received at the data input terminal DN, the MBFF 1000 generates the data output signal SN4 output from the flip-flop 1002_N to the data output terminal QN, and the voltage level of the data output signal SN4 responds to the voltage level of the data signal SN0. The voltage level is changed, and the scan output signal SN5 (output from the flip-flop 1002_N to the scan output terminal SQ) is maintained at a fixed voltage level regardless of the voltage level of the data signal SN0. Since there is no signal level conversion of the scan output signal in the normal mode of the MBFF 1000, the power consumption of the MBFF 1000 and downstream logic can be reduced.

本發明雖以較佳實施例揭露如上,然其並非用以限定本發明的範圍,任何所屬技術領域具有通常知識者,在不脫離本發明的精神和範圍內,當可做些許的更動與潤飾,因此本發明的保護範圍當視申請專利範圍所界定者為 准。 Although the present invention is disclosed above with preferred embodiments, it is not intended to limit the scope of the present invention. Anyone with ordinary knowledge in the technical field may make some changes and modifications without departing from the spirit and scope of the present invention. , so the protection scope of the present invention should be regarded as defined by the scope of the patent application as allow.

100:多位觸發器 100: Multi-bit flip-flops

D1,D2,DN:資料輸入端子 D1, D2, DN: data input terminals

SI:掃描輸入端子 SI: scan input terminal

SE:測試使能端子 SE: Test enable terminal

CLK:時鐘輸入端子 CLK: clock input terminal

102_1,102_2,102_N:觸發器 102_1, 102_2, 102_N: Trigger

210_1,210_2,212:資料輸出級電路 210_1, 210_2, 212: data output stage circuit

INT2,INTN,S11,INT3:測試信號 INT2,INTN,S11,INT3: test signal

Q1,Q2,QN:資料輸出端子 Q1, Q2, QN: data output terminals

SCK,CLKB,CLK1:時鐘信號 SCK, CLKB, CLK1: clock signal

STE,STEB:測試使能信號 STE, STEB: test enable signal

S10,S20,SN0:資料信號 S10, S20, SN0: data signal

202:時鐘生成電路 202: clock generation circuit

204:信號生成電路 204: Signal generation circuit

206_1,206_2,206_N:選擇電路 206_1, 206_2, 206_N: selection circuit

S12,S22,SN2:輸入信號 S12, S22, SN2: input signal

208_1,208_2,208_N:鎖存電路 208_1, 208_2, 208_N: latch circuit

N1:輸出節點 N1: output node

S13,S23,SN3:信號 S13, S23, SN3: signal

S14,S24,SN4:資料輸出信號 S14, S24, SN4: data output signal

211:NOR門 211: NOR gate

213:反相器 213: Inverter

Claims (12)

一種多位觸發器,包括:複數個觸發器,它們連接以形成內部掃描鏈,其中,所述複數個觸發器包括第一觸發器,被佈置為在所述多位觸發器的第一資料輸出端子處輸出第一資料輸出信號,所述第一觸發器包括:第一選擇電路,被佈置為將所述多位觸發器的第一資料輸入端子處的第一資料信號或第一測試信號發送至所述第一選擇電路的輸出節點作為第一輸入信號;第一鎖存電路,耦接到所述第一選擇電路的所述輸出節點,被佈置為根據所述第一輸入信號生成第一信號;和第一資料輸出級電路,被佈置為接收所述第一信號,並根據所述第一信號生成所述第一資料輸出信號;其中,當所述多位觸發器在測試模式下操作時,所述第一選擇電路被佈置為將所述第一測試信號傳輸至所述第一選擇電路的所述輸出節點作為所述第一輸入信號,且所述第一資料輸出級電路被佈置為不管第一測試信號的電壓電平如何都將第一資料輸出信號保持在固定的電壓電平;所述複數個觸發器還包括第二觸發器,被佈置為在所述多位觸發器的第二資料輸出端子處輸出第二資料輸出信號或掃描輸出信號,所述第二觸發器包括:第二選擇電路,被佈置為當所述多位觸發器在正常模式下操作時將所述多位觸發器的第二資料輸入端子處的第二資料信號發送至所述第二選擇電路的輸出節點作為第二輸入信號,或當所述多位觸發器在測試模式下操作時將第二測試信號發送至所述第二選擇電路的輸出節點作為所述第二輸入信號;第二鎖存電路,耦接至所述第二選擇電路的所述輸出節點,並被佈置為根據所述第二輸入信號生成第二信號;和 第二資料輸出級電路,被佈置為接收所述第二信號,並根據所述第二信號生成第二資料輸出信號或掃描輸出信號,其中,當所述多位觸發器在所述正常模式下操作時,所述第二資料輸出級電路根據所述第二信號生成第二資料輸出信號並在所述第二資料輸出端子處輸出所述第二資料輸出信號,當所述多位觸發器在所述測試模式下操作時,所述第二資料輸出級電路根據所述第二信號生成掃描輸出信號並在所述第二資料輸出端子處輸出所述掃描輸出信號。 A multi-bit flip-flop comprising: a plurality of flip-flops connected to form an internal scan chain, wherein the plurality of flip-flops includes a first flip-flop arranged to be output at a first data output of the multi-bit flip-flop A first data output signal is output at the terminal, and the first flip-flop includes: a first selection circuit arranged to send the first data signal or the first test signal at the first data input terminal of the multi-bit flip-flop to an output node of said first selection circuit as a first input signal; a first latch circuit, coupled to said output node of said first selection circuit, arranged to generate a first signal; and a first data output stage circuit arranged to receive said first signal and generate said first data output signal based on said first signal; wherein, when said multi-bit flip-flop is operating in a test mode , the first selection circuit is arranged to transmit the first test signal to the output node of the first selection circuit as the first input signal, and the first data output stage circuit is arranged to maintain the first data output signal at a fixed voltage level regardless of the voltage level of the first test signal; the plurality of flip-flops further includes a second flip-flop arranged as A second data output signal or a scan output signal is output at a second data output terminal, and the second flip-flop includes: a second selection circuit arranged to switch the multi-bit flip-flop to The second data signal at the second data input terminal of the bit flip-flop is sent to the output node of the second selection circuit as the second input signal, or when the multi-bit flip-flop is operating in the test mode, the second test a signal is sent to an output node of the second selection circuit as the second input signal; a second latch circuit, coupled to the output node of the second selection circuit, is arranged to operate according to the second the input signal generates a second signal; and The second data output stage circuit is arranged to receive the second signal and generate a second data output signal or a scan output signal according to the second signal, wherein when the multi-bit flip-flop is in the normal mode In operation, the second data output stage circuit generates a second data output signal according to the second signal and outputs the second data output signal at the second data output terminal, when the multi-bit flip-flop is in When operating in the test mode, the second data output stage circuit generates a scan output signal according to the second signal and outputs the scan output signal at the second data output terminal. 根據請求項1所述的多位觸發器,其中,在所述多位觸發器的測試使能端子處接收測試使能信號,並且所述第一資料輸出級電路還被佈置為由所述測試使能信號控制而根據所述第一信號生成所述第一資料輸出信號。 The multi-bit flip-flop according to claim 1, wherein a test enable signal is received at a test enable terminal of the multi-bit flip-flop, and the first data output stage circuit is further arranged to be controlled by the test The enable signal controls to generate the first data output signal according to the first signal. 根據請求項1所述的多位觸發器,其中,所述第一資料輸出級電路還被佈置為接收第二測試使能信號,所述第二測試使能信號是在所述多位觸發器的測試使能端子處接收的第一測試使能信號的反相,並且由所述第二測試使能信號控制而根據所述第一信號生成所述第一資料輸出信號。 According to the multi-bit flip-flop according to claim 1, wherein the first data output stage circuit is further arranged to receive a second test enable signal, the second test enable signal is in the multi-bit flip-flop The inversion of the first test enable signal received at the test enable terminal of the test enable terminal, and is controlled by the second test enable signal to generate the first data output signal according to the first signal. 根據請求項1所述的多位觸發器,其中,在所述多位觸發器的測試使能端子處接收第一測試使能信號,經由反相器將所述第一測試使能信號反相獲得第二測試使能信號,所述第一資料輸出級電路還被佈置為由所述第一測試使能信號和所述第二測試使能信號控制而根據所述第一信號生成所述第一資料輸出信號。 The multi-bit flip-flop according to claim 1, wherein a first test enable signal is received at the test enable terminal of the multi-bit flip-flop, and the first test enable signal is inverted via an inverter obtaining a second test enable signal, the first data output stage circuit is further arranged to be controlled by the first test enable signal and the second test enable signal to generate the first test enable signal according to the first signal A data output signal. 根據請求項1所述的多位觸發器,其中,所述第一測試信號是在所述多位觸發器的掃描輸入端子處接收到的外部測試信號。 The multi-bit flip-flop according to claim 1, wherein the first test signal is an external test signal received at a scan input terminal of the multi-bit flip-flop. 根據請求項1所述的多位觸發器,其中,所述複數個觸發器還包括第三觸發器,被佈置為在所述多位觸發器的第三資料輸出端子輸出第三資料輸出信號,所述第三觸發器包括:第三選擇電路,被佈置為將在所述多位觸發器的第三資料輸入端子處的第三資料信號或第三測試信號發送至所述第三選擇電路的輸出節點作為第三輸入信號;第三鎖存電路,耦接至所述第三選擇電路的所述輸出節點,並被佈置為根據所述第三輸入信號生成所述第一測試信號和第三信號;和第三資料輸出級電路,被佈置為接收所述第三信號,並根據所述第三信號生成所述第三資料輸出信號。 The multi-bit flip-flop according to claim 1, wherein the plurality of flip-flops further includes a third flip-flop arranged to output a third data output signal at a third data output terminal of the multi-bit flip-flop, The third flip-flop includes a third selection circuit arranged to send a third data signal or a third test signal at a third data input terminal of the multi-bit flip-flop to a third selection circuit of the third selection circuit. an output node as a third input signal; a third latch circuit, coupled to the output node of the third selection circuit, and arranged to generate the first test signal and the third test signal according to the third input signal signal; and a third data output stage circuit arranged to receive said third signal and generate said third data output signal from said third signal. 根據請求項6所述的多位觸發器,其中,當所述多位觸發器在所述測試模式下操作時,所述第三選擇電路被佈置為將所述第三測試信號傳輸到所述第三選擇電路的所述輸出節點用作所述第三輸入信號,並且所述第三資料輸出級電路被佈置不管所述第三測試信號的電壓電平如何都將所述第三資料輸出信號保持在固定的電壓電平。 The multi-bit flip-flop according to claim 6, wherein when the multi-bit flip-flop is operating in the test mode, the third selection circuit is arranged to transmit the third test signal to the The output node of the third selection circuit is used as the third input signal, and the third data output stage circuit is arranged to output the third data output signal regardless of the voltage level of the third test signal maintained at a fixed voltage level. 根據請求項7所述的多位觸發器,其中,所述第三資料輸出級電路還被佈置為在所述多位觸發器的測試使能端子處接收測試使能信號,並且由所述測試使能信號控制而根據所述第三信號生成所述第三資料輸出信號。 The multi-bit flip-flop according to claim 7, wherein the third data output stage circuit is further arranged to receive a test enable signal at the test enable terminal of the multi-bit flip-flop, and the test The enable signal controls to generate the third data output signal according to the third signal. 根據請求項7所述的多位觸發器,其中,所述第三資料輸出級電路還被佈置為接收第二測試使能信號,所述第二測試使能信號是在所述多位觸發 器的測試使能端子處接收的第一測試使能信號的反相,並且由所述第二測試使能信號控制而根據所述第三信號生成所述第三資料輸出信號。 According to the multi-bit flip-flop according to claim 7, wherein, the third data output stage circuit is further arranged to receive a second test enable signal, and the second test enable signal is in the multi-bit trigger The inversion of the first test enable signal received at the test enable terminal of the device, and is controlled by the second test enable signal to generate the third data output signal according to the third signal. 根據請求項7所述的多位觸發器,其中,在所述多位觸發器的測試使能端子處接收第一測試使能信號,經由反相器將所述第一測試使能信號反相獲得第二測試使能信號,所述第三資料輸出級電路還被佈置為由所述第一測試使能信號和所述第二測試使能信號控制而根據所述第三信號生成所述第三資料輸出信號。 The multi-bit flip-flop according to claim 7, wherein a first test enable signal is received at the test enable terminal of the multi-bit flip-flop, and the first test enable signal is inverted via an inverter obtaining a second test enable signal, the third data output stage circuit is further arranged to be controlled by the first test enable signal and the second test enable signal to generate the first test enable signal according to the third signal Three data output signals. 根據請求項1所述的多位觸發器,其中,所述第一鎖存電路還被佈置為根據所述第一輸入信號生成第三測試信號,並且所述複數個觸發器還包括第三觸發器,被佈置為在所述多位觸發器的第三資料輸出端子處輸出第三資料輸出信號,所述第三觸發器包括:第三選擇電路,被佈置為將所述多位觸發器的第三資料輸入端子處的第三資料信號或從所述第一鎖存電路獲得的所述第三測試信號發送到所述第三選擇電路的輸出節點用作第三輸入信號;第三鎖存電路,耦接至所述第三選擇電路的所述輸出節點,並根據所述第三輸入信號生成第三信號;和第三資料輸出級電路,被佈置為接收所述第三信號,並根據所述第三信號生成所述第三資料輸出信號。 The multi-bit flip-flop according to claim 1, wherein the first latch circuit is further arranged to generate a third test signal according to the first input signal, and the plurality of flip-flops further includes a third trigger is arranged to output a third data output signal at a third data output terminal of the multi-bit flip-flop, the third flip-flop includes: a third selection circuit arranged to output a third data output signal of the multi-bit flip-flop The third data signal at the third data input terminal or the third test signal obtained from the first latch circuit is sent to the output node of the third selection circuit as a third input signal; the third latch a circuit coupled to the output node of the third selection circuit and generating a third signal based on the third input signal; and a third data output stage circuit arranged to receive the third signal and generate a third signal based on The third signal generates the third data output signal. 一種控制方法,應用於連接有N個觸發器以形成內部掃描鏈的多位觸發器中,其中,所述多位觸發器包括耦接到所述N個觸發器之一的掃描輸入端子,耦接到所述N個觸發器的N個資料輸入端子,及分別耦接至所述N個觸發 器的N個資料輸出端子,其中N為不小於1的正整數,所述控制方法包括:當所述多位觸發器在正常模式下操作時,響應於在所述多位觸發器的所述N個資料輸入端子處接收到N個資料信號,生成具有隨所述N個資料信號的電壓電平而改變電壓電平的N個資料輸出信號,其中,所述N個資料輸出信號從所述N個觸發器輸出至所述N個資料輸出端子;當所述多位觸發器在測試模式下操作時,響應於在所述多位觸發器的所述掃描輸入端子處接收到外部測試信號,通過所述內部掃描鏈傳遞所述外部測試信號;生成具有隨所述外部測試信號的電壓電平而改變的電壓電平的掃描輸出信號,其中,所述掃描輸出信號從所述N個觸發器之一輸出至所述N個資料輸出端子之一;和不管所述外部測試信號的電壓電平如何,都將所述N個資料輸出端子中的其餘(N-1)個資料輸出端子處的(N-1)個資料輸出信號中的每一個保持在固定電壓電平。 A control method applied to a multi-bit flip-flop connected with N flip-flops to form an internal scan chain, wherein the multi-bit flip-flop includes a scan input terminal coupled to one of the N flip-flops, coupled to connected to the N data input terminals of the N flip-flops, and respectively coupled to the N flip-flops N data output terminals of the multi-bit flip-flop, wherein N is a positive integer not less than 1, and the control method includes: when the multi-bit flip-flop operates in the normal mode, responding to the multi-bit flip-flop in the N data signals are received at the N data input terminals, and N data output signals having voltage levels varying with the voltage levels of the N data signals are generated, wherein the N data output signals are obtained from the N flip-flops output to the N data output terminals; when the multi-bit flip-flop operates in a test mode, in response to receiving an external test signal at the scan input terminal of the multi-bit flip-flop, passing the external test signal through the internal scan chain; generating a scan-out signal having a voltage level that varies with the voltage level of the external test signal, wherein the scan-out signal is derived from the N flip-flops one of the N data output terminals is output to one of the N data output terminals; and regardless of the voltage level of the external test signal, all the remaining (N-1) data output terminals in the N data output terminals are Each of the (N-1) data output signals is maintained at a fixed voltage level.
TW110114672A 2020-05-12 2021-04-23 Multi-bit flip-flop and control method thereof TWI796672B (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US202063023281P 2020-05-12 2020-05-12
US63/023,281 2020-05-12
US17/225,101 2021-04-07
US17/225,101 US11714125B2 (en) 2020-05-12 2021-04-07 Multi-bit flip-flop with power saving feature

Publications (2)

Publication Number Publication Date
TW202143643A TW202143643A (en) 2021-11-16
TWI796672B true TWI796672B (en) 2023-03-21

Family

ID=78488886

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110114672A TWI796672B (en) 2020-05-12 2021-04-23 Multi-bit flip-flop and control method thereof

Country Status (2)

Country Link
CN (1) CN113659964A (en)
TW (1) TWI796672B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3420142B2 (en) * 1999-11-11 2003-06-23 Necエレクトロニクス株式会社 Flip-flop circuit for scan path test
US20060156116A1 (en) * 2004-11-30 2006-07-13 International Business Machines Corporation Method and apparatus for controlling AC power during scan operations in scannable latches
US20070226560A1 (en) * 2006-03-17 2007-09-27 Nec Corporation Electronic circuit and integrated circuit including scan testing circuit, and power consumption reducing method used for integrated circuit
US20090300448A1 (en) * 2008-05-29 2009-12-03 Kabushiki Kaisha Toshiba Scan flip-flop device
CN107395161A (en) * 2016-04-07 2017-11-24 三星电子株式会社 Multidigit trigger
US20180375500A1 (en) * 2017-06-27 2018-12-27 Mediatek Inc. Scan output flip-flops

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3420142B2 (en) * 1999-11-11 2003-06-23 Necエレクトロニクス株式会社 Flip-flop circuit for scan path test
US20060156116A1 (en) * 2004-11-30 2006-07-13 International Business Machines Corporation Method and apparatus for controlling AC power during scan operations in scannable latches
US20070226560A1 (en) * 2006-03-17 2007-09-27 Nec Corporation Electronic circuit and integrated circuit including scan testing circuit, and power consumption reducing method used for integrated circuit
US20090300448A1 (en) * 2008-05-29 2009-12-03 Kabushiki Kaisha Toshiba Scan flip-flop device
CN107395161A (en) * 2016-04-07 2017-11-24 三星电子株式会社 Multidigit trigger
US20180375500A1 (en) * 2017-06-27 2018-12-27 Mediatek Inc. Scan output flip-flops

Also Published As

Publication number Publication date
CN113659964A (en) 2021-11-16
TW202143643A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
US10931264B2 (en) Low-power flip flop circuit
US7868677B2 (en) Low power flip-flop circuit
US11714125B2 (en) Multi-bit flip-flop with power saving feature
TWI642275B (en) A flip-flop circuit and a scan chain
US20090300448A1 (en) Scan flip-flop device
US20080180139A1 (en) Cmos differential rail-to-rail latch circuits
US7511535B2 (en) Fine-grained power management of synchronous and asynchronous datapath circuits
US7816964B2 (en) Pulse operated flip-flop circuit having test-input function and associated method
US8209573B2 (en) Sequential element low power scan implementation
US9755618B1 (en) Low-area low clock-power flip-flop
TW201305582A (en) Scan test circuit
TWI771981B (en) Scan output flip-flop
CA2986231A1 (en) Feedback latch circuit
JP6577366B2 (en) Scan chains in integrated circuits
TWI425228B (en) Method and system for low-power level-sensitive scan design latch with power-gated logic
US20170276729A1 (en) Unbalanced multiplexer and scan flip-flops applying the same
US11545964B2 (en) High speed flipflop circuit
TWI796672B (en) Multi-bit flip-flop and control method thereof
TW201901166A (en) Method for scanning circuit components and selecting their scanning mode
US20040019830A1 (en) Test apparatus of semiconductor integrated circuit with hold error preventing function
JP4862588B2 (en) Clock control circuit and semiconductor integrated circuit
Sekiguchi et al. An 8.9 mW 25Gb/s inductorless 1: 4 DEMUX in 90nm CMOS
JP2019036622A (en) Storage circuit and control method of the same
TW202414423A (en) Scan flip-flop circuit, circuit series and method of performing a scan operation
JP2008058246A (en) Semiconductor integrated circuit, test circuit disposed in semiconductor integrated circuit, and test method used for semiconductor integrated circuit