Electronics and Communication Engineering (इलेक्ट्रॉनिक्स और संचार इंजीनियरिंग)‹⌂ 0:00 पढ़ाई

Module 13 · 23 मिनट पढ़ाई · मुफ़्त chapter

VLSI design flow और testing: design styles, timing, scan, BIST और yield

संक्षेप में

ROM में स्थिर AND और programmable OR plane, PLA में दोनों programmable और PAL में programmable AND है। Flow, RTL से synthesis, placement, clock tree, routing, timing analysis और DRC/LVS होते हुए tape-out तक चलता है। Clock period, clock-to-Q, logic और setup के जोड़ से ज़्यादा होना चाहिए। Scan chains और BIST chips को testable बनाते हैं, और yield e^(−AD) है।

आप किस exam की तैयारी कर रहे हैं? हम आपके exam के practice और पिछले साल के सवाल दिखाएँगे।

शून्य से शुरू: chip कैसे design होता है

आधुनिक chip में अरबों transistors होते हैं। कोई उन्हें एक-एक करके नहीं बनाता। Engineers, hardware description language में बर्ताव लिखते हैं, और software tools उस विवरण को ऐसे layout में बदलते हैं जिसे fabrication plant बना सके।

यह VLSI (very large scale integration) design flow महीनों और सैकड़ों की टीमें लेता है, और बनने के बाद मिली गलती करोड़ों और महीनों की देरी की कीमत ले सकती है। इसलिए flow जाँचों से भरा है, और chips शुरू से testable बनाए जाते हैं।

यह chapter design styles और programmable logic, design flow के कदम, timing और pipelining, manufacturing tests और design for testability, और yield, interconnect व packaging लेता है।

यह CMOS design की बुनियाद, sequential circuits और state machines और IC fabrication पर टिका है।

यह क्यों ज़रूरी है? Design styles, PLA और ROM design, timing, stuck-at faults, scan और BIST मानक ESE और राज्य-सेवा सवाल हैं।

Design styles और programmable logic

|---|---|---|---|

Chips कई design styles में बनते हैं, जो प्रदर्शन का लागत और design समय से सौदा करते हैं:

Style क्या customise होता है ताकत आम उपयोग
Full custom हर transistor और तार सबसे अच्छी गति, क्षेत्रफल और power processor cores, analogue blocks, memories
Standard cell पहले से बने cells का placement और wiring अच्छे नतीजे, स्वचालित ज़्यादातर ASICs
Gate array स्थिर array के ऊपर सिर्फ़ metal wiring जल्दी तैयार पुराने और कम मात्रा वाले designs
FPGA configuration bits, fabrication नहीं तुरंत, फिर से programmable prototypes, कम मात्रा वाले उत्पाद

FPGA (field-programmable gate array) में हज़ारों से लाखों configurable logic blocks हैं, हर एक छोटे look-up tables (LUTs) और flip-flops के इर्द-गिर्द बना, जो programmable routing से जुड़े हैं। kk-input LUT, 2k2^k bits की छोटी memory है जो kk चरों का कोई भी function बना सकती है। FPGAs, masks की ऊँची एक-बार (NRE) लागत से बचते हैं, पर हर unit, ASIC से महँगी पड़ती है और ज़्यादा power लेती है, इसलिए ऊँची मात्रा पर ASICs जीतते हैं।

सरल logic, sum-of-products रूप बनाने वाले नियमित programmable arrays से भी बन सकता है:

  • ROM में स्थिर AND plane (सारे 2n2^n minterms बनाने वाला पूरा decoder) और programmable OR plane है। nn inputs का कोई भी function आ जाता है, पर हर input पर आकार दुगना होता है।
  • PLA (programmable logic array) में दोनों planes programmable हैं, इसलिए सिर्फ़ ज़रूरी product terms बनते हैं और outputs में बँटते हैं।
  • PAL में programmable AND plane और स्थिर OR plane है, जो हर output को तय संख्या के product terms देता है; यह PLA से तेज़ और सस्ता है।

Multiplexer भी सार्वभौमिक building block है: 2n2^n-to-1 MUX, nn चरों का कोई भी function बनाता है, या n+1n + 1 चरों का अगर आख़िरी चर और उसका पूरक data inputs पर दिए जाएँ।

हल किया उदाहरण। ROM में 3-input, 2-output function को 2 bits के 23=82^3 = 8 words, कुल 16 bits, चाहिए। उसी function के PLA को सिर्फ़ उतने product terms चाहिए जितने न्यूनतम रूपों में हैं, शायद चार।

यह क्यों ज़रूरी है? Design styles की तुलना, और ROM, PLA और PAL में कौन-से planes programmable हैं, आम सवाल हैं; PLA और ROM से बनाने वाले सवाल लिखित papers में आते हैं।

ASIC design flow

Chip design तीन दृश्यों से गुज़रता है, जिन्हें अक्सर Y-chart की तरह बनाया जाता है: behavioural (यह क्या करता है), structural (कौन-से blocks और gates) और physical (वे silicon पर कहाँ बैठते हैं)। Flow एक दृश्य को अगले में बदलता है, हर कदम पर जाँच के साथ।

  1. Specification और architecture: functions, प्रदर्शन, power और क्षेत्रफल के लक्ष्य, और blocks में बँटवारा।
  2. RTL design: बर्ताव, register-transfer स्तर पर Verilog या VHDL में लिखा जाता है, जो registers और उनके बीच के logic को बताता है।
  3. Functional verification: simulations और formal जाँचें पक्का करती हैं कि RTL, specification के अनुसार चलता है। Verification अक्सर design से ज़्यादा मेहनत लेता है।
  4. Logic synthesis: एक tool, timing, क्षेत्रफल और power की शर्तों के लिए सुधारते हुए, RTL को standard-cell library के gates पर बिठाता है और gate-level netlist बनाता है।
  5. Design-for-test जोड़ना: scan chains और BIST जोड़े जाते हैं (testing हिस्सा देखिए)।
  6. Floorplanning: बड़े blocks, input–output pads और power वितरण die पर रखे जाते हैं।
  7. Placement: standard cells पंक्तियों में सजाए जाते हैं।
  8. Clock-tree synthesis: buffers का संतुलित पेड़, न्यूनतम skew के साथ हर flip-flop तक clock पहुँचाता है।
  9. Routing: metal परतें सब कुछ जोड़ती हैं।
  10. Static timing analysis (STA): हर रास्ता, बिना simulation vectors के, setup और hold के लिए जाँचा जाता है।
  11. Physical verification: DRC (design rule check) पक्का करता है कि layout, process के नियम मानता है, LVS (layout versus schematic) पक्का करता है कि वह netlist से मेल खाता है, और विद्युत जाँचें antenna प्रभाव जैसी समस्याएँ ढूँढती हैं।
  12. Tape-out: आख़िरी layout, GDSII या OASIS format में, masks बनाने के लिए foundry भेजा जाता है।

Fabrication के बाद chips जाँचे जाते हैं, package होते हैं और फिर जाँचे जाते हैं।

यह क्यों ज़रूरी है? Flow का क्रम और synthesis, STA, DRC और LVS का मतलब आम छोटे सवाल हैं।

Timing और pipelining

लगभग सारे digital chips synchronous हैं: flip-flops, clock किनारों पर data पकड़ते हैं, और उनके बीच का combinational logic एक clock period में स्थिर होना चाहिए।

एक flip-flop से अगले तक के रास्ते में data, clock-to-Q delay tcqt_{cq} के बाद निकलता है, tcombt_{\text{comb}} delay वाले logic से गुज़रता है, और उसे अगले किनारे से setup time tsetupt_{\text{setup}} पहले पहुँचना चाहिए। Setup शर्त न्यूनतम clock period तय करती है:

T≥tcq+tcomb,max+tsetup+tskewT \geq t_{cq} + t_{\text{comb,max}} + t_{\text{setup}} + t_{\text{skew}}

Hold शर्त माँगती है कि नया data इतनी जल्दी न आए कि पकड़ी जा रही कीमत बिगाड़ दे:

tcq+tcomb,min≥thold+tskewt_{cq} + t_{\text{comb,min}} \geq t_{\text{hold}} + t_{\text{skew}}

Setup उल्लंघन धीमे clock या तेज़ logic से ठीक होते हैं; hold उल्लंघन clock period पर निर्भर नहीं और छोटे रास्तों में delay जोड़कर ठीक होते हैं।

Pipelining लंबे combinational रास्ते को registers से अलग stages में तोड़ता है। हर stage छोटा है, इसलिए clock तेज़ हो सकता है, और हर चक्र नया input आ सकता है। Throughput बढ़ता है, पर हर नतीजा कई चक्रों बाद निकलता है, इसलिए latency बढ़ती है, और अतिरिक्त registers क्षेत्रफल और power लेते हैं। Processors, DSP filters और graphics units सब गहरे pipelines पर टिके हैं।

Control logic, finite state machines की तरह design होता है, या तो Moore machines, जिनके outputs सिर्फ़ state पर निर्भर हैं, या Mealy machines, जिनके outputs inputs पर भी निर्भर हैं और एक चक्र पहले प्रतिक्रिया दे सकते हैं।

हल किया उदाहरण। tcq=100t_{cq} = 100 ps, tcomb=700t_{\text{comb}} = 700 ps और tsetup=50t_{\text{setup}} = 50 ps के साथ Tmin⁡=850T_{\min} = 850 ps, इसलिए fmax⁡≈1.18f_{\max} \approx 1.18 GHz। Logic को दो 350 ps stages में बाँटने से Tmin⁡=500T_{\min} = 500 ps और fmax⁡=2f_{\max} = 2 GHz मिलता है, दो चक्रों की latency के साथ।

यह क्यों ज़रूरी है? Setup timing से अधिकतम clock आवृत्ति और throughput व latency पर pipelining का असर मानक numericals हैं।

Testing और design for testability

हर बना हुआ chip जाँचना पड़ता है, क्योंकि धूल के कण, shorts और opens जैसे छोटे defects कुछ dies तोड़ देते हैं। Testing यह साबित नहीं करती कि design सही है; वह verification है। यह जाँचती है कि हर नकल ठीक बनी है।

भौतिक defects, fault models से दर्शाए जाते हैं। सबसे ज़्यादा लगने वाला single stuck-at fault model है: माना जाता है कि एक line 0 (s-a-0) या 1 (s-a-1) पर अटकी है। nn lines वाले circuit में ऐसे 2n2n faults हैं।

Fault पकड़ने के लिए test vector को दो काम करने होते हैं:

  • उसे control (activate) करना: खराब line को अटकी कीमत से उल्टी कीमत पर चलाना।
  • उसे observe (propagate) करना: दूसरे inputs ऐसे रखना कि अंतर किसी output तक पहुँचे।

उदाहरण। Input AA के 0 पर अटके दो-input NAND gate के लिए A=1A = 1, B=1B = 1 दीजिए। अच्छा gate 0 देता है; खराब gate A=0A = 0 देखता है और 1 देता है, इसलिए fault पकड़ में आता है।

Automatic test pattern generation (ATPG) tools लाखों faults के लिए vectors ढूँढते हैं, और fault coverage, vectors से पकड़े गए modelled faults का प्रतिशत है; production tests 95–99% या ज़्यादा का लक्ष्य रखते हैं। बड़े circuits में सारे 2n2^n input मेलों से पूरी जाँच असंभव है, और sequential circuits और भी कठिन हैं, क्योंकि अंदरूनी flip-flops को set करना और पढ़ना कठिन है।

Design for testability (DFT), chips को जाँचना आसान बनाने के लिए circuitry जोड़ता है:

  • Scan design: हर flip-flop के input पर multiplexer लगता है। Test mode में flip-flops एक लंबे shift register (scan chain) में जुड़ते हैं। Test state scan-in से अंदर खिसकाई जाती है, सामान्य काम का एक clock चक्र दिया जाता है, और पकड़ा गया नतीजा scan-out से बाहर खिसकाया जाता है। यह sequential testing समस्या को combinational में बदल देता है।
  • Built-in self-test (BIST): chip पर LFSR (linear-feedback shift register) pseudo-random patterns बनाता है, और MISR (multiple-input signature register) outputs को छोटे signature में दबाता है, जिसकी अपेक्षित कीमत से तुलना होती है। BIST, memories में आम है और chip को उपयोग के दौरान भी जाँच सकता है।
  • Boundary scan (JTAG, IEEE 1149.1): chip के pins के चारों ओर scan chain, TDI, TDO, TCK और TMS signals से नियंत्रित, बिना भौतिक probes के circuit board पर chips के बीच के connections जाँचती है।

यह क्यों ज़रूरी है? Stuck-at test vectors, controllability और observability, scan, BIST और JTAG मानक ESE विषय हैं।

Yield, interconnect और packaging

Wafer का हर die काम नहीं करता। Yield, अच्छे dies का हिस्सा है। अगर defects, प्रति इकाई क्षेत्रफल DD घनत्व से अनियत बिखरे हों, तो सरल Poisson model, AA क्षेत्रफल के die का yield देता है

Y=e−ADY = e^{-AD}

इसलिए बड़े dies का yield बहुत कम है, यह एक कारण है कि बड़े processors अब एक package में जुड़े कई छोटे chiplets से बनते हैं।

Transistors छोटे होने पर तार रुकावट बनते हैं। तार का प्रतिरोध उसका cross-section घटने पर बढ़ता है, और पास-पास भरे तारों की capacitance ज़्यादा है, इसलिए gate delay गिरते हुए भी interconnect RC delay बढ़ता है। Chips 1990 के दशक के अंत में aluminium से copper wiring पर गए, capacitance घटाने के लिए तारों के बीच low-k dielectrics लेते हैं, और दस या ज़्यादा metal परतें रखते हैं, लंबे global तारों और power के लिए मोटी ऊपरी परतों के साथ।

लंबे तारों पर repeaters (buffers) लगते हैं ताकि delay लंबाई के साथ वर्ग के बजाय रैखिक रहे। Electromigration, यानी ऊँचे current घनत्व में metal परमाणुओं का धीमा खिसकना, तय करता है कि power तार कितने पतले हो सकते हैं।

Fabrication ख़ुद, lithography, etching, deposition और doping के साथ, IC fabrication में आ चुका है।

आख़िर में die को बचाने, board से जोड़ने और गर्मी निकालने के लिए package किया जाता है:

  • DIP (dual in-line): through-hole pins की दो पंक्तियाँ; सस्ता, कम pins।
  • QFP (quad flat pack): surface mounting के लिए चारों ओर leads।
  • BGA (ball grid array): package के नीचे जाल में solder balls, सैकड़ों या हज़ारों connections देते हुए।
  • Flip-chip: die उलटकर solder bumps से मुँह नीचे जोड़ा जाता है, जिससे छोटे connections और अच्छे गर्मी रास्ते मिलते हैं; processors में लगता है।

भारत के पहले OSAT (assembly, testing और packaging) plants और उसका पहला व्यावसायिक fab, Gujarat के Dholera में, India Semiconductor Mission के तहत बन रहे हैं।

हल किया उदाहरण। प्रति cm² 0.5 defects के साथ, 1 cm² die का Y=e−0.5≈61%Y = e^{-0.5} \approx 61\% है, जबकि 2 cm² die का Y=e−1≈37%Y = e^{-1} \approx 37\%।

यह क्यों ज़रूरी है? Yield सूत्र, copper और low-k interconnect और package प्रकार ESE और technology हिस्सों में छोटे सवालों की तरह पूछे जाते हैं।

Descriptive lens

लिखित papers इस विषय को चार तरह से पूछते हैं:

  1. Design styles की तुलना करना और ROM, PLA, PAL या multiplexers से functions बनाना।
  2. RTL से tape-out तक ASIC design flow बताना।
  3. Setup timing से अधिकतम clock आवृत्ति निकालना और pipelining समझाना।
  4. Fault models, test generation, scan design, BIST और boundary scan समझाना।

अभ्यास सवाल (हमारे अपने, पिछले वर्षों के सवाल नहीं)।

  1. Full-custom, standard-cell और FPGA design styles की तुलना कीजिए। ASIC की जगह FPGA कब बेहतर है? (10 अंक)
  2. एक रास्ते का clock-to-Q delay 80 ps, logic delay 920 ps और setup time 40 ps है। अधिकतम clock आवृत्ति निकालिए, और logic को दो बराबर stages में pipeline करने पर नई आवृत्ति भी। (10 अंक)
  3. Stuck-at fault model समझाइए। Scan design क्या है और यह testability कैसे सुधारता है? दो-input AND gate में input A के 1 पर अटकने का test ढूँढिए। (12 अंक)

सवाल 3 का answer plan।

  • s-a-0 और s-a-1 faults और fault को control व observe करने की ज़रूरत परिभाषित कीजिए।
  • Scan flip-flops, scan chain, shift-in, capture और shift-out बताइए।
  • AA के 1 पर अटके AND gate के लिए: A=0A = 0, B=1B = 1 दीजिए। अच्छा gate 0 देता है, खराब gate 1 देता है।
  • निष्कर्ष दीजिए कि scan हर flip-flop को छद्म-input और छद्म-output बनाता है, इसलिए combinational ATPG लग सकता है।

Quick revision

  • Styles: full custom, standard cell, gate array, FPGA (LUTs, fabrication की देरी नहीं, ऊँची unit लागत)।
  • ROM: स्थिर AND, programmable OR; PLA: दोनों programmable; PAL: programmable AND, स्थिर OR।
  • Flow: spec, RTL (Verilog/VHDL), simulation, synthesis, DFT, floorplan, placement, clock tree, routing, STA, DRC/LVS, tape-out।
  • Setup: T≥tcq+tcomb+tsetupT \geq t_{cq} + t_{\text{comb}} + t_{\text{setup}}; hold, delay जोड़कर ठीक होता है, clock धीमा करके नहीं।
  • Pipelining, throughput और clock दर बढ़ाता है, latency जोड़ता है।
  • Moore outputs state से; Mealy, state और inputs से।
  • Stuck-at faults: nn lines के लिए 2n2n; test को control और observe करना होता है।
  • DFT: scan chains, BIST (LFSR और MISR), boundary scan JTAG (TDI, TDO, TCK, TMS)।
  • Yield Y=e−ADY = e^{-AD}; copper और low-k interconnect; DIP, QFP, BGA, flip-chip।

ख़ुद को परखें

इस chapter पर exam जैसे सवाल। जवाब चुनिए, फिर उसकी व्याख्या देखिए। 12 में से 0 हल किए

  1. PLA में कौन-से arrays programmable हैं?

  2. Logic functions बनाने में लगे ROM में होता है:

  3. ASIC की तुलना में FPGA में आम तौर पर:

  4. VLSI flow में RTL code को gate-level netlist में बदलने वाला कदम है:

  5. Layout versus schematic (LVS) जाँच पक्का करती है कि:

  6. एक रास्ते में tcq=50t_{cq} = 50 ps, logic delay 400 ps और setup time 50 ps है, skew नहीं। अधिकतम clock आवृत्ति है:

  7. Hold-time उल्लंघन सबसे अच्छे ढंग से कैसे ठीक होता है?

  8. Datapath को pipeline करने से मुख्य रूप से उसका क्या बढ़ता है?

  9. दो-input NAND gate में input A के 0 पर अटकने को पकड़ने का test vector (A, B) है:

  10. एक circuit में 50 signal lines हैं। Single stuck-at faults की संख्या है:

  11. BIST में test patterns आम तौर पर किससे बनते हैं?

  12. प्रति cm² 1 defect घनत्व के साथ 0.5 cm² die का Poisson yield लगभग है:

पिछले साल के सवाल (PYQ)

UPSC CSE के पिछले साल के सवाल यहाँ तभी दिखेंगे, जब हर सवाल को official question paper से शब्दशः मिला लिया जाएगा।

AI के साथ सीखें

ऐसा tutor जो बताने की जगह पूछता है, ऐसा साथी जो दूसरा पक्ष रखता है, और यह chapter आपके अपने ज़िले के उदाहरणों से।

Tutor को बताइए कहाँ अटके हैं। वह सवालों से रास्ता दिखाएगा और कुछ कोशिशों के बाद जवाब देगा।

🙋 Doubt पूछें या feedback दें

कहीं अटके, या कोई गलती दिखी? ExamHike team को लिखिए। आम तौर पर एक दिन में जवाब आता है, और जवाब आपके My progress page पर दिखेगा।

Doubt पूछने या feedback देने के लिए login करें →

अक्सर पूछे जाने वाले सवाल

PLA और PAL में क्या अंतर है?

PLA में AND और OR दोनों arrays programmable हैं, इसलिए product terms बँट सकते हैं; PAL में programmable AND array और स्थिर OR array है, जो उसे तेज़ और सस्ता बनाता है।

Timing से अधिकतम clock आवृत्ति कैसे निकलती है?

न्यूनतम period, clock-to-Q delay, सबसे बुरा logic delay, setup time और skew का जोड़ है; उसका व्युत्क्रम अधिकतम आवृत्ति है।

Stuck-at fault क्या है?

एक fault model जिसमें एक line हमेशा 0 या 1 रहती है; n lines वाले circuit में 2n single stuck-at faults हैं, और test को fault चालू करके उसे output तक पहुँचाना होता है।

Scan design क्या करता है?

यह test mode में chip के flip-flops को shift-register chains में जोड़ता है, ताकि कोई भी अंदरूनी state अंदर और नतीजे बाहर खिसकाए जा सकें, जिससे sequential testing, combinational बन जाती है।

इस module के और chapter: VLSI की बुनियाद

Official स्रोत

इस chapter के तथ्य इन official स्रोतों से मिलाकर जाँचे गए हैं।

  1. MPSC syllabus, Deputy Superintendent of Police / Assistant Commissioner of Police, Communication and Information Technology Department: VLSI technology, processing, lithography, interconnects, packaging, testing, VLSI design principles, MUX/ROM/PLA-based design, Moore and Mealy circuits, pipelining, design for testability