`Tanaka et al.
`
`I lllll llllllll Ill lllll lllll lllll lllll lllll 111111111111111111111111111111111
`
`US007000160B2
`
`(10) Patent No.:
`(45) Date of Patent:
`
`US 7,000,160 B2
`Feb.14,2006
`
`(54) SEMICONDUCTOR INTEGRATED CIRCUIT
`AND A METHOD OF TESTING THE SAME
`
`(75)
`
`Inventors: Toshihiro Tanaka, Akiruno (JP);
`Yutaka Shinagawa, Iruma (JP);
`Masahiko Kimura, Kodaira (JP); Isao
`Nakamura, Fussa (JP)
`
`5,760,599 A * 6/1998 Ehiro
`......................... 324/765
`5,886,657 A * 3/1999 Ahuja ........................ 341/144
`6,114,920 A * 9/2000 Moon et al. ................ 331/179
`6,529,247 B2 * 3/2003 Tagomori et al. ........... 348/657
`6,819 ,596 B2 * 11/2004 Ikehashi et al.
`. ... ... 365/185.22
`2004/0042331 Al * 3/2004 Ikehashi et al.
`............ 365/232
`
`(73) Assignees: Renesas Technology Corp., Tokyo
`(JP); Hitachi ULSI Systems Co., Ltd.,
`Tokyo (JP)
`
`GB
`JP
`
`FOREIGN PATENT DOCUMENTS
`
`2 197 554
`5-265579
`
`* 5/1988
`10/1993
`
`( *) Notice:
`
`Subject to any disclaimer, the term of this
`patent is extended or adjusted under 35
`U.S.C. 154(b) by 659 days.
`
`* cited by examiner
`
`(21) Appl. No.: 10/083,399
`
`(22) Filed:
`
`Feb.27,2002
`
`(65)
`
`Prior Publication Data
`
`US 2002/0153917 Al Oct. 24, 2002
`
`(30)
`
`Foreign Application Priority Data
`
`Apr. 24, 2001
`
`(JP)
`
`(51)
`
`Int. Cl.
`GOIR 31/28
`
`(2006.01)
`
`2001-125275
`
`(52) U.S. Cl. ........................................ 714/724; 324/765
`(58) Field of Classification Search ................. 714/724,
`714/819; 324/765, 771
`See application file for complete search history.
`
`(56)
`
`References Cited
`
`U.S. PATENT DOCUMENTS
`5,261,082 A * 11/1993 Ito et al. ..................... 713/501
`
`Primary Examiner-Phung My Chung
`(74) Attorney, Agent, or Firm-Miles & Stockbridge P.C.
`
`(57)
`
`ABSTRACT
`
`A semiconductor integrated circuit (LSI) in which control
`information for determining a voltage or a width of a pulse
`produced itself can easily be set in parallel with other LSis,
`and set information can be corrected easily. From an external
`evaluation device, a voltage of an expected value is supplied
`in overlapping manner to a plurality of LSis each having a
`CPU and a flash memory. Each LSI incorporates a compari(cid:173)
`son circuit comparing an expected voltage value and a
`boosted voltage generated in itself. The CPU refers to a
`comparison result and optimizes control data in a data
`register for changing a boosted voltage. The CPU controls
`the comparison circuit and the data register and performs
`trimming in a self-completion manner, thereby making,
`trimming on a plurality of LSis easily in a parallel manner
`and a total test time reduced.
`
`23 Claims, 29 Drawing Sheets
`
`60
`
`BOOSTING SECTION
`
`64
`
`63
`\
`r-----------------.1.----,
`'
`'
`
`Vpp
`
`62
`
`61
`
`65
`
`VOLTAGE GENERATION
`CONTROL REGISTER
`
`FLASH
`MEMORY
`
`5
`
`2
`
`4
`
`EVALUATION
`DEVICE
`(TESTER)
`
`Vref
`
`18
`
`1
`
`NVIDIA 1003
`
`
`
`N
`~
`Q
`O'I
`i'-"
`
`Q "'=
`
`Q
`"'"'I
`
`e
`
`rJ'l
`
`\C
`N
`
`'""" 0 ....,
`~ .....
`'Jl =(cid:173)~
`
`N c c
`~,J;;..
`'"""
`?'
`~
`"!'j
`
`O'I
`
`~ = ......
`~ ......
`~
`•
`\JJ.
`d •
`
`------17
`
`16---
`
`1~
`
`1l1
`
`i---..--3
`
`2
`
`CONTROLLER
`
`SYSTEM
`
`4
`~
`
`12
`(
`
`FLASH MEMORY
`
`CONTROLLER
`
`CPU
`
`RAM
`
`BUS CONTROLLER
`
`·~
`
`PORT
`-OUTPUT
`INPUT/
`
`7
`i
`CIRCUIT
`TRIMMING
`VOLTAGE
`
`I
`
`I
`
`1 l
`
`11 c _____.,,.-
`
`1
`
`'
`
`l
`
`•
`
`l
`
`9
`(
`
`CIRCUIT
`TRIMMING
`
`DIVISION
`
`RATIO
`
`1
`
`j
`
`1~
`
`'
`,.
`
`10
`~
`
`14
`~
`
`1
`
`I
`
`1 •
`
`ll
`
`. -
`
`~
`6
`
`Vpp
`
`I BOOSTING
`
`CIRCUIT
`
`-~ FLASH MEMORY
`
`I
`
`~
`
`FREQUENCY
`
`CIRCUIT
`DIVIDING
`
`~
`
`<Pin
`
`~
`
`FIG. 1
`
`OSCILLATION
`
`CIRCUIT
`
`PERIPHERAL
`
`CIRCUITS
`
`I
`
`<P
`
`MICROCOMPUTER
`
`1
`
`2
`
`
`
`U.S. Patent
`
`Feb.14,2006
`
`Sheet 2 of 29
`
`US 7,000,160 B2
`
`FIG. 2
`
`5
`Vpp
`/
`r----- -------------------------------------------------~-----------,
`29
`
`I
`
`TCNT
`
`21
`
`24
`
`DLA
`
`' ' ' I ' I
`
`I
`I
`
`' I
`
`I
`I
`I
`I
`I
`
`1
`
`$/n
`
`11C
`
`15C
`
`15
`
`150
`
`ABUF
`
`150
`
`28
`
`WDEC
`
`CDEC
`
`25
`
`20
`
`26
`
`I
`
`22
`
`27
`
`MEMORY CELL
`ARRAY
`
`------------------
`csw
`
`SAA
`
`DBUF
`
`I
`I
`I
`I
`~-------------------------------------------------------------------~
`
`3
`
`
`
`U.S. Patent
`
`Feb.14,2006
`
`Sheet 3 of 29
`
`US 7,000,160 B2
`
`FIG. 3
`
`REPAIR AND
`TRIMMING MAT
`
`BOOT MAT
`
`USER MAT
`
`1--- Rm at
`
`-- Tm at
`
`--- Mmat
`
`H' 00002008
`
`H' 00002000
`
`H' 00000000
`H'XXXXXXXX
`
`H' 00000000
`
`4
`
`
`
`N
`~
`Q
`O'I
`~
`Q
`Q
`b
`""-l
`rJ'J.
`
`e
`
`\C
`N
`0 .....,
`,J;;..
`~
`
`'Jl =(cid:173)~
`
`O'I
`
`N c c
`'"""'
`~,J;;..
`
`O'
`~
`"'!"j
`
`~ = ......
`~ ......
`~
`•
`\JJ.
`d •
`
`r--1a
`
`I 17
`
`I
`
`3
`~
`
`Vref
`
`4
`
`2
`
`5
`
`SIGNAL
`CONTROL
`START
`EXECUTION
`PROGRAM
`
`I
`
`11 RAM
`
`I FLASH I I CPU
`
`MEMORY
`
`15
`
`71
`
`REGISTER
`TRIMMING
`
`VOLTAGE GENERATION
`
`CONTROL REGISTER
`
`DECODER
`
`65
`
`61
`
`REFERENCE
`
`VOLTAGE
`
`EVALUATION
`
`(TESTER)
`DEVICE
`
`Vss
`
`70
`
`~
`
`I
`
`I
`
`I
`
`I
`
`62
`
`Vpp
`
`FIG. 4
`
`I L ___ J ___ 1 ___ L __ ::r:_ _____ J
`:+1TL_j
`i
`I
`I
`~
`I
`I
`r-----------------~----,
`
`\ ' f
`63
`
`f
`f
`
`64
`
`BOOSTING SECTION
`
`60--J
`
`1
`
`5
`
`
`
`U.S. Patent
`
`Feb.14,2006
`
`Sheet 5 of 29
`
`US 7,000,160 B2
`
`FIG. 5
`
`START
`
`TRANSFER TRIMMING
`PROGRAM TO INTERNAL
`MEMORY
`
`INPUT VOLTAGE OF
`EXPECTED VALUE
`(EVALUATION DEVICE)
`
`START EXECUTION OF
`TRANSFERRED TRIMMING
`PROGRAM
`
`S1
`
`S2
`
`S3
`
`SET VOLTAGE
`GENERATION CONTROL
`REGISTER
`
`DESIGNATE MINIMUM
`VOLTAGE IN TRIMMING
`REGISTER
`
`EXECUTE TRIMMING PROGRAM
`BY INTERNAL CPU
`
`,,..-._, -84
`
`S5
`
`S6
`
`DECISION BY INTERNAL
`DECISION CIRCUIT
`
`WAIT FOR STABILIZATION
`OF VOLTAGE
`.....-----+-··-··-··-··-··-··-··
`
`DECISION
`REGISTER=O
`
`DECISION
`REGISTER=1
`
`S7
`
`S8
`
`=1
`
`END
`
`UPDATE VALUE IN
`TRIMMING REGISTER
`
`6
`
`
`
`U.S. Patent
`
`Feb.14,2006
`
`Sheet 6 of 29
`
`US 7,000,160 B2
`
`FIG. 6
`
`WAFER OR
`~ EVALUATION BOARD
`
`-
`
`MICRO-
`1~
`COMPUTER
`
`1 ......_,_
`
`1 """--
`
`1--..__
`
`~
`
`~
`
`~
`uad
`13~
`)
`\
`3
`
`EVALUATION
`DEVICE
`(TESTER)
`
`"'---- 18
`
`7
`
`
`
`N
`~
`Q
`O'I
`lo-"
`
`Q "'=
`
`Q
`"'"'I
`
`e
`
`rJ'l
`
`\C
`N
`0 .....,
`-..J
`~ .....
`'Jl =(cid:173)~
`
`N c c
`'"""'
`~,J;;..
`?'
`~
`"'!"j
`
`O'I
`
`~ = ......
`~ ......
`~
`•
`\JJ.
`d •
`
`TERMINAL
`
`REGISTER
`TRIMMING
`
`DECODER
`
`CONTROL REGISTER
`
`GENERATION
`
`VOLTAGE
`
`EVALUATION
`
`(TESTER)
`. DEVICE
`
`REFERENCE
`
`VOLTAGE
`
`VOLTAGE TO BE
`
`COMPARED
`
`..._, ...... , -''-"' MESUREMENT
`
`VOLTAGE
`
`l(STEP·DOWN) VOLTAGE
`
`•
`
`STEP-DOWN CIRCUIT
`BOOSTING CIRCUIT,
`
`TERMINAL
`MEASURING
`
`BOOSTED
`
`FIG. 7 PRIORART
`
`8
`
`
`
`U.S. Patent
`
`Feb.14,2006
`
`Sheet 8 of 29
`
`US 7,000,160 B2
`
`FIG. 8 PRIOR ART
`
`START
`
`SET VOLTAGE GENERATION
`CONTROL REGISTER
`(EVALUATION DEVICE)
`
`WAIT FOR STABILIZATION OF
`VOLTAGE (EVALUATION DEVICE)
`
`MEASURE BOOSTED (STEP-DOWN)
`VOLTAGE THROUGH MEASURING
`TERMINAL (EVALUATION DEVICE)
`
`OUT OF
`TOLERANCE
`COMPUTE TRIMMED VALUE FROM
`VOLTAGE DIFFERENCE
`(EVALUATION DEVICE)
`
`UPDATE TRIMMING REGISTER
`VALUE (EVALUATION DEVICE)
`
`WITHIN
`TOLERANCE
`
`END
`
`9
`
`
`
`U.S. Patent
`
`Feb.14,2006
`
`Sheet 9 of 29
`
`US 7,000,160 B2
`
`FIG. 9
`PRIOR ART
`
`WAFER OR EVALUATION
`BOARD
`
`LSl1
`
`LSl2
`
`LSl3
`
`LSl4
`
`EVALUATION
`DEVICE
`(TESTER)
`
`10
`
`
`
`U.S. Patent
`U.S. Patent
`
`Feb.14,2006
`Feb. 14, 2006
`
`Sheet 10 of 29
`InS
`M
`
`US 7,000,160 B2
`US 7,000,160 B2
`
`nE>
`
`N
`<.O
`
`0
`S.0_u_
`~ .
`CJ -LL
`
`<(
`.....
`.3
`
`z
`0
`I-
`(..) w
`
`(J)
`
`C) z
`I-
`Cf)
`0
`0 ca
`
`
`
`zocbmmozfimoomom
`
`0 co
`
`mInfill
`.mIII.V
`
`mo83
`:/j
`
`("')~
`<.O
`
`~ co
`
`wO<._..._O>W.mozmmmnmm
`
`a::
`w
`o
`0
`(.)
`w
`Cl
`
`w
`()W
`Z(!)
`~~ I{)
`co
`W-'
`u..O
`UJ>
`0:::
`
`...-
`co
`
`11
`
`
`zo_m_om_ooz__2s__«:I
`
`zo_»<m_m_zm_wmo<5o>
`
`z
`0 0:::
`-w
`l-1-
`~en
`wc.9 zw
`w 0:::
`(!) ..J
`wO
`(.9 a::
`~~
`..JO
`00 >
`
`-~ >
`
`»9.>
`
`co
`c.o
`
`KDVm
`
`(!) c:::
`zw
`-1-
`:?en
`;a-_(!)
`0::: w
`I- c::
`
`_mB_wmmm.n:w_om_m
`
`
`mmteomm._oEzoo
`
`11
`
`
`
`
`
`
`N
`~
`Q
`O'I
`lo-"
`
`Q "'=
`
`Q
`"'"'I
`
`e
`
`rJ'J.
`
`\C
`N
`
`"""" 0 .....,
`""""
`~ .....
`'Jl =(cid:173)~
`
`N c c
`""""
`~,J;;..
`?'
`~
`"'!"j
`
`O'I
`
`~ = ......
`~ ......
`~
`•
`\JJ.
`d •
`
`Vss
`
`VOLTAGE GENERATION' I TRIMMING 1------66
`
`CONTROL REGISTER
`
`REGISTER
`
`I
`
`I
`
`I
`
`I
`
`-
`
`I
`
`I
`
`I
`REFERENCE
`
`65
`
`VOLTAGE
`
`61
`
`63
`
`BOOSTING SECTION
`
`60
`
`REGISTER
`
`CONTROL REGISTER
`
`VOLTAGE GENERATION I TRIMMING
`
`I
`REFERENCE
`
`VOLTAGE
`
`65
`
`61
`
`73
`
`18
`
`63
`
`64
`
`BOOSTING SECTION
`
`60
`
`FIG. 11
`
`12
`
`
`
`N
`~
`Q
`O'I
`lo-"
`
`"'=
`
`Q
`Q
`"'"'I
`
`e
`
`rJ'J.
`
`\C
`N
`0 .....,
`'"""' N
`~ .....
`'Jl =(cid:173)~
`
`N c c
`'"""'
`~,J;;..
`?'
`~
`"'!"j
`
`O'I
`
`~ = ......
`~ ......
`~
`•
`\JJ.
`d •
`
`VOLTAGE
`CONSTANT
`
`RESISTOR
`CONSTANT
`
`- CONSTANT
`
`CURRENT
`
`18
`
`RESISTOR
`CONSTANT
`
`TERMINAL
`
`RESISTOR
`CONSTANT
`
`TERMINAL
`
`4
`
`2
`
`EVALUATION
`
`(TESTER)
`DEVICE
`
`3'
`
`SIGNAL
`START CONTROL
`PROGRAM EXECUTION
`
`71
`
`13
`
`REGISTER
`DECISION
`
`Vss
`
`MICROCOMPUTER
`
`MICROCOMPUTER
`
`5
`
`bus
`
`VOLTAGE GENERATION
`
`CONTROL REGISTER
`
`Vbas
`
`,63
`
`--------------C---------
`
`64
`
`SECTION
`
`I
`---~
`I
`'-------------------140_,.-ll----l
`
`.. ·--..
`
`BIAS VOLTAGE tit:Nt:.KA 11v1'1
`...... "...
`
`-----------
`
`70
`
`FIG. 12
`
`;---------------•--------------c:-----1
`
`1C
`
`I ' '
`14
`
`61
`
`60C
`
`13
`
`
`
`N
`~
`Q
`O'I
`lo-"
`
`Q "'=
`
`Q
`"'"'I
`
`e
`
`rJ'J.
`
`\C
`N
`0 .....,
`'"""' ~
`~ .....
`'Jl =(cid:173)~
`
`N c c
`'"""'
`~,J;;..
`?'
`~
`"'!"j
`
`O'I
`
`~ = ......
`~ ......
`~
`•
`\JJ.
`d •
`
`Pad
`
`TERMINAL
`
`.-----< VOLTAGE
`CONSTANT
`POSITIVE
`
`620
`
`66
`
`) CONTROL REGISTER
`(!VOLTAGE GENERATION
`
`DECODER
`
`65
`
`61
`
`REFERENCE
`
`VOLTAGE
`
`63
`
`64
`
`BOOSTING SECTION
`NEGATIVE VOLTAGE
`
`600
`
`10
`
`FIG. 13
`
`14
`
`
`
`N
`~
`Q
`O'I
`lo-"
`
`Q "'=
`
`Q
`"'"'I
`
`e
`
`rJ'J.
`
`\C
`N
`0 .....,
`'"""'
`,J;;..
`~ .....
`'Jl =(cid:173)~
`
`N c c
`'"""'
`~,J;;..
`?'
`~
`"'!"j
`
`O'I
`
`~ = ......
`~ ......
`~
`•
`\JJ.
`d •
`
`VOLTAGE
`REFERENCE
`POSITIVE
`
`Pad
`
`Pad
`
`1-1-REFERENCE
`
`NEGATIVE
`
`VOLTAGE
`
`66
`
`REGISTER
`TRIMMING
`
`VOLTAGE GENERATION
`
`CONTROL REGISTER
`
`Vss
`
`I
`REFERENCE
`
`VOLTAGE
`
`65
`
`61
`
`63
`
`66 71
`
`64
`
`BOOSTING SECTION
`POSITIVE VOLTAGE
`
`60
`
`REGISTER
`TRIMMING
`
`VOLTAGE GENERATION
`
`CONTROL REGISTER
`
`70
`
`65
`
`61
`
`VOLT AGE ___,____.___..____,_
`
`REFERENCE
`
`18
`
`63
`
`64
`
`BOOSTING SECTION
`NEGATIVE VOLTAGE
`
`600
`
`FIG. 14
`
`15
`
`
`
`N
`~
`Q
`O'I
`lo-"
`
`Q "'=
`
`Q
`"'"'I
`
`e
`
`rJ'J.
`
`\C
`N
`0 .....,
`'"""' Ul
`~ .....
`'Jl =(cid:173)~
`
`N c c
`'"""'
`~,J;;..
`?'
`~
`"'!"j
`
`O'I
`
`~ = ......
`~ ......
`~
`•
`\JJ.
`d •
`
`PLS
`
`Pad3
`
`20
`
`17
`
`16
`
`3
`
`CONTROLLER
`
`SYSTEM
`
`4
`
`i------2
`15
`
`RAM
`
`REFERENCE
`
`PULSE
`
`EVALUATION
`
`DEVICE
`
`(WRITE PULSE GENERATION
`
`CIRCUIT) TCNT
`
`(WRITE DATA LATCH) DLA
`
`I
`
`I
`
`COMPARISON
`PULSE WIDTH I •
`
`CIRCUIT
`
`REGISTER
`DECISION
`
`TRIMMING REGISTER
`
`DIVISION RATIO
`
`78
`
`COMPARE PULSE
`
`29
`
`21
`
`WRITE CONTROL
`
`CLOCK
`
`77
`
`<Pim
`
`<Pin
`
`80
`
`START
`
`81
`
`FREQUENCY
`
`SECTION
`DIVIDING
`
`5
`
`18
`
`1
`
`10
`
`FIG. 15
`
`16
`
`
`
`U.S. Patent
`
`Feb.14,2006
`
`Sheet 16 of 29
`
`US 7,000,160 B2
`
`FIG. 16
`
`OSCILLATION
`FREQUENCY (f)
`
`SMALL
`
`LARGE
`
`Lg
`
`17
`
`
`
`U.S. Patent
`U.S. Patent
`
`Feb. 14, 2006
`Feb.14,2006
`
`92f071teehS
`Sheet 17 of 29
`
`US 7,000,160 B2
`US 7,000,160 B2
`
`.
`C) -u..
`
`-- --- ---
`-- --- --- -- --- --
`co
`co Ol
`.......
`N
`0
`""'"
`w w w w w
`l.1..1 w w w w
`z z z z z z z z z z
`::i
`::J
`::::::i
`::::::i
`::::::i
`::::::i
`::::::i
`::::::i
`::::::i
`I- I-
`t-
`I-
`I-
`I-
`I-
`I-
`I-
`ca ca
`co Cij
`co
`03 co
`co
`co
`
`T'""
`
`
`
`
`
`._._m _.mz:._._m0m2:
`
`(")
`
`
`
` mmz:._._mNm_z_._cm
`
`I.()
`
` .:mwmz:.:m_
`
`
`.:mmmz:
` Nm_Z_J_.:momz_._
`
`
`...J
`I-
`cc
`
`
`
`wmz:._._m
`
`
`
`mmz:._._m_
`
`WW
`I-(/,)
`-..J
`c::: ::::::>
`~a.
`
`....J
`0
`c:::
`I-
`z
`0
`(.)2
`Wu
`t::o
`0:: ...J
`~()
`.........
`i:::::
`-9-
`
`
`
`JompzoomtmzsEG
`
`--
`
`0.0040
`
`18
`
`
`
`N
`~
`Q
`O'I
`~
`Q
`Q
`b
`""-l
`rJ'J.
`
`e
`
`\C
`N
`0 .....,
`'"""' 00
`~ .....
`'Jl =-~
`
`N c c
`'"""'
`~,J;;..
`~
`"'!"j
`
`O'I
`
`~ = ......
`~ ......
`~
`•
`\JJ.
`d •
`
`I
`
`20
`
`15
`
`sus-----r1-----~r----__;r..._ __ -r---------+--..__... ____ __
`
`COMPARISON
`PULSE WIDTH
`
`CIRCUIT
`
`REGISTER
`DECISION
`
`TRIMMING REGISTER
`
`DIVISION RATIO
`
`78
`
`77
`
`START
`
`81
`
`<Pim
`
`<Pin
`
`FREQUENCY
`
`SECTION
`DIVIDING
`
`OSCILLATION I ¢
`
`CIRCUIT
`
`80
`
`10
`
`MEMORY MAT
`
`(WRITE PULSE GENERATION
`
`CIRCUIT) TCNT
`
`(WRITE DATA LATCH) DLA
`
`21
`
`5
`
`29
`
`COMPARE PULSE
`
`WRITE CONTROL
`
`CLOCK
`
`1
`
`FIG. 18
`
`19
`
`
`
`N
`~
`Q
`O'I
`~
`Q
`Q
`b
`""-l
`rJ'J.
`
`e
`
`\C
`N
`0 .....,
`'"""'
`\C
`~
`
`'Jl =(cid:173)~
`
`N c c
`'"""'
`~,J;;..
`~
`"'!"j
`
`O'I
`
`~ = ......
`~ ......
`~
`•
`\JJ.
`d •
`
`DECISION REGISTER=O
`
`1 DECISION REGISTER=1
`
`WIDTH
`DIVIDING CIRCUIT OUTPUT
`TIME ~FREQUENCY
`REFERENCE
`
`OUTPUT WIDTH
`DIVIDING CIRCUIT
`TIME < FREQUENCY
`REFERENCE
`
`S21
`
`END
`
`REGISTER VALUE
`UPDATE TRIMMING
`
`=O
`
`=1
`
`S20
`
`GENERATION BIT TO "o"
`SET REFERENCE TIME
`
`EXPECTED PULSE WIDTH VALUE
`
`PERIOD CORRESPONDING TO
`NOP INSTRUCTION FOR TIME
`
`CONTINUE EXECUTION OF
`
`AND START FREQUENCY
`
`DIVIDING OPERATION
`
`S14~~~~~~~~~~~_J_~~~~~~~--i
`
`DECISION CIRCUIT
`DECISION BY INTERNAL
`
`PROGRAM BY INTERNAL CPU
`EXECUTE TRIMMING
`
`GENERATION BIT TO "1''
`SET REFERENCE TIME
`
`RATIO IN TRIMMING REGISTER
`DESIGNATE MAXIMUM DIVISION
`
`FIG. 19
`
`512
`
`S11
`
`TRANSFERRED TRIMMING PROGRAM
`
`START EXECUTION OF
`
`PROGRAM TO INTERNAL MEMORY
`
`TRANSFER TRIMMING
`
`START
`
`20
`
`
`
`N
`~
`Q
`O'I
`lo-"
`
`Q "'=
`
`Q
`"'""-l
`
`e
`
`\JJ.
`
`\C
`N
`0 .....,
`N c
`~ .....
`'Jl =(cid:173)~
`
`N c c
`'"""'
`~,J;;..
`?'
`~
`"'!"j
`
`O'I
`
`~ = ......
`~ ......
`~
`•
`\JJ.
`d •
`
`36/36=1.0MHz
`
`40/ 40=1.0MHz
`
`44/44=1.0MHz
`
`48/ 48=1.0MHz
`
`52/52=1.0MHz
`
`56/56=1.0MHz
`
`60/60=1.0MHz
`
`64/64=1.0MHz
`
`1/36
`
`1/40
`
`1/44
`
`1/48
`
`1/52
`
`1/56
`
`1/60
`
`1/64
`
`(1,1,1)
`
`(1,1,0)
`
`(1,0,1)
`
`( 1,0,0)
`
`(0, 1, 1)
`
`(0,1,0)
`
`(0,0,1)
`
`(0,0,0)
`
`36MHz
`
`40MHz
`
`44MHz
`
`48MHz
`
`52MHz
`
`56MHz
`
`60MHz
`
`64MHz
`
`AFTER TRIMMING
`FREQUENCY (<Pin)
`
`DIVISION
`
`RATIO
`
`REGISTER
`TRIMMING
`
`TRIMMING
`
`RING OSCILLATOR
`
`FREQUENCY
`
`FIG. 20
`
`21
`
`
`
`N
`~
`Q
`O'I
`!>-"
`
`"'=
`
`Q
`Q
`"'"'I
`
`e
`
`rJ'J.
`
`\C
`N
`
`'"""' 0 .....,
`
`N
`~ .....
`'Jl =(cid:173)~
`
`N c c
`'"""'
`~,J;;..
`?'
`~
`"'!"j
`
`O'I
`
`~ = ......
`~ ......
`~
`•
`\JJ.
`d •
`
`DECISION REGISTER SET SIGNA~
`
`I
`
`I
`
`---l..___._! -----
`
`I
`
`I
`
`I <TRIMMING REGISTER= (0, 1, 1) >
`!
`
`__ __,
`
`OUTPUT)
`DIVIDING CIRCUIT
`(FREQUENCY
`<Pim
`GENERATION BIT) __ ___,
`(REFERENCE TIME
`REFERENCE PULSE)
`PLS1
`
`(
`
`CLEARED BY SOFTWARE
`
`SET BY SOFTWARE
`
`VALUE IN TRIMMING REGISTER IS UPDATED <TRIMMING REGISTER=(0,1,1)>
`
`FIG. 21 B
`
`DECISION REGISTER SET SIGNAL
`
`...___ ____ _
`_
`.. ,
`
`REFERENCE TIME
`
`PULSE)
`(COMPARATIVE
`</>Im
`
`GENERATION BIT) __ ___.
`(REFERENCE TIME
`_
`REFERENCE PULSE)
`j...
`PLS1
`
`(
`
`CLEARED BY SOFTWARE
`
`SET BY SOFTWARE
`
`IN TRIMMING REGISTER
`MAXIMUM DIVISION RATIO IS DESIGNATED <TRIMMING REGISTER=(O,O,O)>
`
`FIG. 21A
`
`22
`
`
`
`U.S. Patent
`
`Feb.14,2006
`
`Sheet 22 of 29
`
`US 7,000,160 B2
`US 7,000,160 B2
`
`It\
`~~~
`
`..f-..-_
`...
`
`I
`I
`I
`
`I
`
`! 11
`
`I
`I
`
`11
`11
`
`11 J
`1 I-
`ll
`
`111
`
`~JI
`~ ~
`
`:c
`(.)
`N
`-e-- I-
`~
`
`' - -
`
`1---- -.::f"
`<O
`
`N r
`
`-
`
`N
`N .
`(9
`u..
`
`=
`
`A H
`
`23
`
`
`
`N
`~
`Q
`O'I
`~
`Q
`Q
`b
`""-l
`rJ'J.
`
`e
`
`\C
`N
`0 .....,
`~
`N
`~ .....
`=-
`
`rF.J.
`
`~
`
`O'I
`c
`c
`N
`'"""'
`~,J;;..
`
`O'
`~
`"'!"j
`
`=
`......
`~
`~ ......
`~
`•
`\JJ.
`d •
`
`I
`I
`t
`
`I
`I
`I
`
`I
`I
`I
`
`I
`I
`t
`
`I
`I
`t
`
`I
`
`I
`I
`I
`
`I
`I
`I
`I
`I
`
`I
`
`t
`I
`I
`
`I
`I
`I
`I
`I
`
`I
`
`I
`I
`t
`
`I
`I
`I
`I
`I
`
`I
`
`I
`I
`I
`
`I
`
`I
`
`1
`
`1
`
`12
`
`1
`
`1
`
`1
`
`1
`
`1
`
`11
`
`10
`
`9
`
`8
`
`I
`i
`
`!
`I
`I
`
`I
`i
`
`!
`I
`I
`
`I
`I
`I
`
`I
`i
`
`I
`i
`
`'
`
`I
`
`I
`i
`
`'
`
`I
`I
`
`I
`I
`I
`
`I
`i
`
`I
`
`I
`I
`I
`t
`I
`
`I
`i
`
`•
`
`I
`
`I
`
`I
`
`I
`
`I
`
`I
`
`I
`
`l-J LJ u
`
`I
`I
`t
`I
`I
`
`I
`
`t
`I
`I
`
`t
`I
`t
`I
`I
`
`I
`
`I
`I
`I
`
`'
`'
`'
`
`I
`I
`
`t
`
`I
`I
`I
`
`t
`t
`t
`I
`I
`
`I
`
`I
`
`I
`I
`t
`I
`I
`
`t
`I
`I
`
`'
`'
`'
`
`I
`I
`
`'
`
`I
`
`I
`
`,----I
`
`n n n n n n n n n n ~
`13
`
`1
`
`1
`
`1
`
`1
`
`2
`
`1
`
`I
`i
`
`I
`I
`•
`
`I
`I
`I
`
`1
`
`I
`I
`
`1
`I
`
`7
`
`6
`
`5
`
`1
`
`1
`
`I
`i
`
`I
`I
`I
`
`I
`i
`
`t
`I
`I
`
`l-J
`
`t
`t
`I
`
`4
`
`i I i
`
`I
`
`I
`
`'ii
`
`I
`I
`I
`
`I
`I
`I
`
`!
`I
`I
`
`I
`I
`I
`
`! I !
`I
`I
`I
`I
`t
`I
`I
`
`t
`I
`I
`I
`I
`
`I
`
`I
`
`I
`I
`
`I
`
`I
`
`t
`
`I
`
`1 2 3 4 5 6 7 8 9 10 11 12@ 14 15 16 1 2 3 4 5 6 7 8 9 10
`
`I
`
`__J LJ LJ u u LJ LJ I LW u LJ
`1nnnnnnnnnnnnnnnr ............. I
`
`I
`I
`
`I
`I
`
`I
`
`I
`I
`I
`
`I
`I
`
`I
`I
`
`I
`
`I
`I
`
`I
`I
`
`t
`I
`I
`
`__ l ___ ---,
`
`t
`I
`
`I
`I
`
`I
`I
`I
`
`.-
`
`I
`t
`
`I
`I
`
`I
`I
`I
`
`I
`
`I
`
`1 1 1 11 n n n n n n n n n n n n n
`:1 2
`:
`
`5
`
`4
`
`3
`
`1
`
`1
`
`1
`
`1
`
`<I> /32 (2MHz)
`
`<f>/16(4MHz)
`
`c/J/8
`
`</>14
`
`c/J/2
`
`cP 1 (52MHz)
`
`TRIMMING
`
`AFTER
`
`I
`I
`
`I
`I
`
`'
`
`t
`
`I
`I
`
`I
`I
`I
`
`I
`I
`
`t
`I
`I
`
`I
`I
`I
`
`: I :
`
`'
`
`I
`I
`
`I
`t
`t
`
`<t> /32 ( 1.625MHz)
`
`</>/16(3.25MHz)
`
`</> 18 (6.5MHz)
`
`<I> 14 ( 16MHz)
`
`<I> 12 (26MHz)
`
`<I> 1 (52MHz)
`
`I
`
`I
`
`I
`
`I
`
`TRIMMING
`BEFORE
`
`I
`I
`
`1
`
`I
`I
`
`I
`I
`I
`I
`I
`
`I
`I
`
`I
`I
`I
`I
`I
`
`I
`
`1
`
`i Mr
`
`13
`
`1\12
`
`I
`t
`
`I
`I
`I
`I
`I
`
`I
`
`I
`I
`
`I
`
`----,
`
`I
`I
`
`I
`I
`
`I
`
`t
`I
`I
`
`I
`I
`
`I
`I
`
`I
`
`'
`I
`.---
`
`10
`
`1
`
`9
`
`1
`
`1
`
`1
`
`8
`
`7
`
`6
`
`I
`I
`
`I
`I
`:1
`.t
`I
`
`I
`I
`
`I
`I
`I
`
`I
`I
`I
`
`I
`I
`
`!
`I
`I
`
`I
`I
`
`!
`I
`I
`
`I
`I
`I
`
`I
`I
`
`I
`
`I
`I
`
`I
`
`I
`I
`
`I
`I
`t
`
`I
`I
`
`I
`
`I
`I
`
`I
`t
`I
`t
`
`I
`
`I
`
`I
`
`I
`
`t
`
`I
`
`I
`
`I
`
`FIG. 23
`
`24
`
`
`
`N
`~
`Q
`O'I
`~
`Q
`Q
`Q
`""-l
`rJ'J.
`
`e
`
`\C
`N
`0 .....,
`,J;;..
`N
`~
`
`'Jl =(cid:173)~
`
`N c c
`'"""'
`~,J;;..
`~
`"'!"j
`
`O'I
`
`~ = ......
`~ ......
`~
`•
`\JJ.
`d •
`
`I REf ~RENCE
`t--::::=:-;
`
`PULSE
`
`16
`
`17
`
`79
`
`3
`
`CONTROLLER
`
`SYSTEM
`
`2
`
`4
`
`REFERENCE TIME
`
`GENERATION
`
`REGISTER
`
`CPU
`
`RAM
`
`FLASH MEMORY
`
`MEMORY MAT
`
`15
`
`I 20
`
`GENERATION CIRCUIT
`
`WRITE PULSE
`
`WRITE DATA LATCH
`
`29
`
`COMPARE
`
`PULSE
`
`¢/m
`
`'I' n
`""I WRITE CONTROL
`
`CLOCK
`
`21
`
`I PULSE WIDTH 1 .. 1
`
`COMPARISON
`
`CIRCUIT
`
`REGISTER
`DECISION
`
`REGISTER
`TRIMMING
`FREQUENCY
`
`100
`
`78
`
`START
`
`FREQUENCY
`
`CIRCUIT
`DIVIDING
`
`77
`
`"'
`
`FREQUENCY TRIMMING
`HAVING OSCILLATION
`OSCILLATION CIRCUIT
`
`FUNCTION
`
`5
`
`BA
`
`10A
`
`1F
`
`FIG. 24
`
`25
`
`
`
`U.S. Patent
`
`Feb.14,2006
`
`Sheet 25 of 29
`
`US 7,000,160 B2
`
`FIG. 25
`
`1-------------------------------------------------------------1
`I '
`, Vref
`' I
`
`I
`I
`
`7A
`
`6A
`
`Pad2
`
`CBUS
`
`VOLTAGE TRIMMING CIRCUIT
`
`BOOSTING CIRCUIT
`
`Pad1
`
`CBUF
`
`TCNT
`
`51
`
`50
`
`24
`
`SDEC
`
`DLA
`
`ABUF
`
`MEMORY CELL
`ARRAY
`
`-----------------
`csw
`
`SAA
`
`WDEC
`
`CDEC
`
`25
`
`I
`
`I
`I
`I
`I
`I
`I
`I
`I
`~5A
`I
`I
`I
`I
`I
`I
`I
`I
`I
`I
`I
`I
`I
`I
`I
`I
`I
`I
`I
`I
`
`21 I
`
`20
`
`I
`I
`
`' I
`
`I
`I
`I
`I
`I
`I
`I
`I
`I
`I
`I
`I
`26:
`
`I
`I
`I
`
`22: I
`
`I
`I
`I
`,I
`I
`
`27: I
`
`I
`I
`I
`
`28
`
`I
`I
`I
`
`DBUF
`--------------------------------------------------------------'
`DBUS
`
`26
`
`
`
`N
`~
`Q
`O'I
`lo-"
`
`Q "'=
`
`Q
`"'"'I
`
`e
`
`rJ'J.
`
`\C
`N
`0 .....,
`O'I
`N
`~ .....
`'Jl =(cid:173)~
`
`N c c
`'"""'
`~,J;;..
`"?'
`~
`
`O'I
`
`~ = ......
`~ ......
`~
`•
`\JJ.
`d •
`
`18
`
`EVALUATION
`
`(TESTER)
`DEVICE
`
`SIGNAL
`
`70
`
`COMPARATOR! Pad1
`
`62
`
`j
`SEQUENCER
`: START CONTROL
`DEDICATED 1--J: ______ __,
`
`L-----------------r--------------------------
`,
`
`50 ,----~
`
`CIRCUIT
`
`I
`:
`',
`r-------------------------------,----------,
`
`FLASH FUSE
`
`71
`
`I
`
`66r
`
`REGISTER
`TRIMMING
`
`CONTROL REGISTER
`VOLTAGE GENERATION
`
`52
`
`Vss
`
`DECODER
`
`65
`
`61
`
`REFERENCE
`
`VOLTAGE
`
`I L ___ J ___ l ___ L __ :['" ______ ~
`: + I =i= I
`
`I
`
`I
`I
`I
`
`I
`r-----------------~----!
`
`63
`
`I
`I
`\
`I
`I
`
`64
`
`BOOSTING SECTION
`
`60---t
`
`FIG. 26
`
`5A
`
`27
`
`
`
`U.S. Patent
`
`Feb.14,2006
`
`Sheet 27 of 29
`
`US 7,000,160 B2
`
`FIG. 27
`
`START
`
`INPUT VOLTAGE OF
`EXPECTED VALUE
`(EVALUATION DEVICE)
`
`521
`
`SET VOLTAGE
`GENERATION CONTROL
`REGISTER
`
`DESIGNATE MINIMUM
`VOLTAGE IN TRIMMING
`REGISTER
`
`S22
`t.----CONTROL BY
`DEDICATED
`SEQUENCER
`
`$23
`
`DECISION BY
`INTERNAL DECISION
`CIRCUIT
`
`WAIT FOR
`STABILIZATION OF VOLTAGE
`.--------··-··-··-··-··-··-·· ··-··-··-··-··-·
`
`$24
`
`DECISION
`REGISTER=O
`
`DECISION
`REGISTER=1
`
`S25
`
`=1
`
`826
`
`END
`
`UPDATE VALUE IN
`TRIMMING REGISTER
`
`28
`
`
`
`N
`~
`Q
`O'I
`Q ;...
`Q
`Q
`""-l
`rJ'J.
`
`e
`
`\C
`N
`0 .....,
`QrO
`N
`~ .....
`'Jl =(cid:173)~
`
`N c c
`'"""'
`~,J;;..
`?'
`~
`"'!"j
`
`O'I
`
`~ = ......
`~ ......
`~
`•
`\JJ.
`d •
`
`18
`
`I
`
`I
`
`I
`
`5·1
`
`~
`!
`r-------------,------------------------------i
`
`I FLASH FUSE CIRCUIT ~52
`
`L--------------------------------------------~
`1
`I
`I
`I
`
`Pad1
`
`Vss
`
`70
`
`EVALUATION
`
`(TESTER)
`DEVICE
`
`71
`
`66
`
`REGISTER
`TRIMMING
`
`CONTROL REGISTER
`VOLTAGE GENERATION
`
`DECODER
`
`65
`
`61
`
`REFERENCE
`
`VOLTAGE
`
`______ ,
`
`I
`
`62
`
`----, 1
`
`~
`
`r _________________ l
`63
`
`I
`I
`I
`
`64
`
`BOOSTING SECTION
`
`60-----!
`
`FIG. 28
`
`58
`
`29
`
`
`
`U.S. Patent
`
`Feb.14,2006
`
`Sheet 29 of 29
`
`US 7,000,160 B2
`
`FIG. 29
`
`i.------ CONTROL BY
`EVALUATION DEVICE
`
`START
`
`INPUT VOLTAGE OF
`EXPECTED VALUE
`(EVALUATION DEVICE)
`
`SET VOLTAGE
`GENERATION CONTROL
`REGISTER
`(EVALUATION DEVICE)
`
`DESIGNATE MINIMUM
`VOLTAGE IN TRIMMING
`REGISTER
`(EVALUATION DEVICE)
`
`WAIT FOR STABILIZATION
`OF VOLTAGE
`(EVALUATION DEVICE)
`
`.---------<..i-··-··-··-··-··-··-··
`
`DECISION BY INTERNAL
`DECISION CIRCUIT
`
`DECISION
`REGISTER=O
`
`DECISION
`REGISTER=1
`
`=1
`
`END
`
`UPDATE VALUE IN
`TRIMMING REGISTER
`(EVALUATION DEVICE)
`
`30
`
`
`
`1
`SEMICONDUCTOR INTEGRATED CIRCUIT
`AND A METHOD OF TESTING THE SAME
`
`US 7,000,160 B2
`
`2
`between the voltage obtained by trimming and the target
`voltage value is simply stated but no notice is taken of the
`difference between the two cases. In contrast, the inventors
`of the present invention took note of the following points.
`5 That is, trimming on a plurality of LSis with one evaluation
`device is effective in reducing the time required for testing
`including a measuring operation for voltage trimming or the
`like, but this voltage trimming cannot be performed in a
`parallel manner because the external evaluation device mea-
`10 sures the voltage. Only a limited effect may be obtained by
`performing voltage measurement and trimming register
`value adjustment while successively changing the objects by
`switching with a relay. The same can be said with respect to
`trimming for adjustment of the write pulse width and the
`15 erase pulse width determined by dividing a clock frequency
`generated from an internal oscillator, or the current through
`a MOS transistor determined by LSI manufacturing condi(cid:173)
`tions. Thus, any process in which LSis undergoes trimming
`one after another requires a considerably long test time.
`The technique disclosed in JP-A-5-265579 has no means
`for changing the trimmed value since it uses a counter in
`hardware form and a fuse. In the case of an application to
`trimming for adjustment of a boosted voltage, however, a
`need arises to correct the trimmed value after adjustment of
`25 the voltage value, for example, if a write time target value
`is not reached.
`An object of the present invention is to provide a semi(cid:173)
`conductor integrated circuit capable of setting control infor(cid:173)
`mation for determining a voltage or a pulse width in a
`30 self-completion manner and also capable of easily correcting
`the control information.
`Another object of the present invention is to provide a
`semiconductor integrated circuit testing method in which
`control information for determining a voltage or a pulse
`width can be set with facility in overlapping manner and can
`easily be corrected.
`[1] The present invention will be outlined below with
`respect to its typical aspects.
`For example, to test a plurality of semiconductor inte(cid:173)
`grated circuits each including a CPU and a flash memory, a
`voltage is supplied as an expected voltage to the semicon(cid:173)
`ductor integrated circuits in a parallel manner from an
`evaluation device outside the semiconductor integrated cir(cid:173)
`cuits. Accordingly, each semiconductor integrated circuit
`incorporates a decision circuit which compares the expected
`voltage value and a boosted (step-down) voltage generated
`in the integrated circuit. The semiconductor integrated cir(cid:173)
`cuit also has a register for storing the result of comparison
`made by the decision circuit, and has a system capable of
`making a decision about the comparison result by means of
`a control circuit such as an internal CPU. For example, a
`data register (trimming register) for changing a boosted
`(step-down) voltage value is incorporated and an internal
`CPU enables to rewrite the value in the trimming register.
`The internal CPU controls the comparator and the register to
`perform trimming in a self-completion manner. A self(cid:173)
`trimming program transferred to memories (e.g., RAMs) in
`a plurality of memory LSis arranged as described above can
`be executed in a parallel manner. In this program, a value is
`set in the trimming register, determination of the result of
`comparison made by the voltage decision circuit is awaited,
`and a decision is made about the value in the trimming
`register representing the comparison result. According to the
`65 decision result, the value in the trimming register is updated.
`These steps are repeated until the voltage generated in the
`circuit becomes equal to the expected voltage value input
`
`BACKGROUND OF THE INVENTION
`The present invention relates to a trimming technique for
`finely adjusting a voltage, the width of a pulse, etc., pro(cid:173)
`duced in a semiconductor integrated circuit (large-scale
`integrated circuit (LSI)) in accordance with characteristics
`of LSI, and relates to a semiconductor integrated circuit such
`as a microcomputer incorporating a flash memory and to a
`testing method of performing trimming on such a semicon(cid:173)
`ductor integrated circuit.
`There are some nonvolatile memories such as flash
`memories generating a particular programming voltage in
`LSis. This voltage varies because of manufacturing varia(cid:173)
`tion and there is a need to perform trimming or fine
`adjustment for correcting the programming voltage in each
`LSI. The memory programming time characteristic also
`varies. Therefore, the programming voltage is changed
`according to the memory characteristics to constantly main- 20
`tain memory programming characteristics.
`In fine adjustment (hereinafter referred to as "voltage
`trimming") of a programming voltage (e.g., an internal
`boosted voltage) generated in such a nonvolatile memory,
`the voltage generated in the LSI is measured with an external
`evaluation device (tester or the like). Therefore, parallel
`trimming cannot be performed on a plurality of such
`memory LSis. For example, it is difficult to use a parallel
`testing method in which a program for testing flash memo(cid:173)
`ries incorporated in microcomputers is transferred to internal
`random access memories (RAMs) and parallel executions of
`the program are carried out by the internal central processing
`units (CPUs) provided in each of the microprocessors. For
`this reason, a sequential method in which trimming is
`performed on one LSI at a time to adjust an internal boosted 35
`voltage or the like has been practiced, requiring an increased
`test time. A tester having the function of performing parallel
`measurement on a plurality of LSis is considerably high(cid:173)
`priced and it is not practical to use such a high-priced tester
`only for voltage trimming or the like.
`Some flash memories or microcomputers incorporating
`flash memories require use of a trimming technique with
`respect to the width of write pulses for setting the write
`voltage application time to a specified value or with respect
`to the current through a MOST transistor as well as use of 45
`a trimming technique for voltage trimming. Use of a trim(cid:173)
`ming technique in such a case also entails the same consid(cid:173)
`eration as that described above since there is also a need to
`separately measure the object of measurement.
`JP-A-5-265579 describes an example of prior art contain- 50
`ing a description of voltage trimming. This document relates
`to a method of performing trimming for adjustment of a
`reference voltage in such a manner that a series from which
`a trimmed value is obtained is generated while a counter is
`being incremented, and the trimmed value is written to a 55
`programmable read only memory (PROM) circuit when a
`reference voltage output coincides with a target value. The
`counter and a circuit for incrementing the counter are
`provided in the form of hardware and the PROM circuit has
`a fuse configuration. According to this document, an on-chip 60
`comparator or a comparator on a tester may be used as a
`comparator for comparison between the voltage obtained by
`trimming and the target voltage value.
`
`40
`
`SUMMARY OF THE INVENTION
`In JP-A-5-265579, use of an on-chip comparator or a
`comparator on a tester as a comparator for comparison
`
`31
`
`
`
`US 7,000,160 B2
`
`3
`from the evaluation device outside the LSis, or until the
`desired condition is attained. The value in the trimming
`register when the expected value is reached is stored as a
`trimmed value. This storage may be realized by writing the
`information in a trimming area of the flash memory, for
`example.
`Similarly, with respect to the current through a MOS
`transistor in a plurality of LSis, current trimming may be
`performed by externally applying a reference current simul(cid:173)
`taneously to the plurality of LSis and by comparing the
`reference current and the current through the internal MOS
`transistor in each LSI. To externally supply a constant
`current to the plurality of LSis in a parallel manner, a
`method may be used in which a constant resistor is con(cid:173)
`nected to an input terminal of each LSI and a constant
`voltage is applied to the resistor to produce the constant
`current.
`Also, with respect to a control clock for producing a write
`pulse width and an erase pulse width, trimming for adjust(cid:173)
`ment of the frequency of the control clock may be performed
`by comparing a reference time and a time generated in an
`internal oscillator. The reference time may be internally
`produced on the basis of a clock of a particular frequency
`externally supplied at the time of testing or may be directly
`supplied externally as a reference pulse.
`As described above, a trimmed value which coincides
`with a voltage or a current of an expected value can be
`obtained by only supplying the expected voltage or current
`value externally and executing a trimming program by
`means of an internal CPU. The same effect is also ensured 30
`with respect to trimming for adjustment of the frequency of
`a control clock for generating write and erase pulses. A
`voltage, a current or a pulse of an expected value externally
`provided can be supplied in common to a plurality of LSis.
`Since a trimming program is executed by means of an 35
`internal CPU, it can be executed in the plurality of LSis in
`a parallel manner. Thus, parallel trimming can be performed
`on a plurality of LSis with facility and the total test time can
`be reduced. Also, there is no need to provide a switching
`device such as a relay in the evaluation device.
`[2] The present invention will be described in more detail
`with respect to its several aspects. According to a first aspect
`of the present invention, a semiconductor integrated circuit
`such as a data processor including a CPU and a flash
`memory or the like as on-chip components may be provided.
`<<Data Processor>>
`The semiconductor integrated circuit includes, on one
`semiconductor substrate, voltage generation means capable
`of generating a voltage on the basis of control data loaded
`into a data register, nonvolatile storage means in which the
`control data is held, and a processing circuit used to prepare
`the control data held in the nonvolatile storage means. The
`processing circuit includes a decision circuit which deter(cid:173)
`mines the relationship between a reference voltage supplied
`from the outside of the semiconductor substrate and the
`voltage generated by the voltage generation means, and a
`control circuit which determines the control data on the data
`register with reference to an output from the decision circuit,
`and which stores the determined control data in the non-
`volatile storage means by reading out the data from the data 60
`register. The operation of the control circuit is determined by
`a program.
`The decision circuit which determines the relationship
`between a reference voltage supplied from the outside of the
`semiconductor substrate and the voltage generated by the 65
`voltage generation means may have a configuration for
`directly comparing the reference voltage and the voltage
`
`4
`generated by the voltage generation means, or configuration
`for comparing the reference voltage and a voltage on a path
`where the current is controlled according to the voltage
`generated by the voltage generation means. The former
`5 configuration is most suitabl