Hardware Verification 2IMF20
|
|
- Laurel Jones
- 6 years ago
- Views:
Transcription
1 Hrdwre Verifition 2IMF20 Julien Shmltz Leture 02: Boolen Funtions, ST, CEC
2 Course ontent - Forml tools Temporl Logis (LTL, CTL) Domin Properties System Verilog ssertions demi & Industrils Proessors Networks Che oherene Sum-of-Produts (SoP) Conjuntive Norml Form (CNF) Binry Deision Digrms (BDDs) nd-inverter Grphs (IGs) Forml Tools RTL Code Forml Model OK! NOK! Witness nd ounter-exmples 2
3 Gol: Reson out hrdwre» Given two iruits: do they ompute the sme funtion?» Equivlene heking» Comintoril nd Sequentil (next leture)» Notion of Miter (XOR etween outputs)» Given property nd iruit: prove tht the iruit stisfies the property» Forml Property Verifition (FPV) (some letures from now)» In ll se, mthemtil representtion of the iruit is needed. 3
4 Importnt onepts» The need to represent Boolen funtions effiiently» Different representtions hve different pros nd ons» Get to know the min representtions used in prtie» SoP» DNF nd CNF» DG» IG» BDD» Hve feeling out how good/d they re» Know how they re used in Comintoril Equivlene Cheking» Bsi priniple of ST solvers» Note: representing Boolen funtions is tive reserh» Cyli Boolen Ciruits y Riedel nd Bruk, Disrete pplied Mthemtis (2012) 4
5 Progrm for tody» Boolen funtions» Boolen Stisfiility» Comintoril Equivlene Cheking 5
6 Hrdwre to Forml Representtion» The first step efore pplying ny forml nlysis tehnique is to otin forml representtion of the design.» from 4 vlued logi to Boolens» Symoli Boolen expressions of the wires.» Different representtions of these expressions» Direted yli Grphs (DG)» Sum-of-Produts (SoP)» Conjuntive Norml Form (CNF)» Disjuntive Norml Form» Binry Deision Digrms (BDD s)» nd-inverter Grphs (IG s) 6
7 Boolen funtions Mthes most digitl hrdwre, other hrdwre n e trnslted into Boolen funtions. For exmple, Verilog HDL hs 0, 1, nd lso: X (unknown / error) Z (not driven, open wire) To trnslte, simply use two its, or Boolen vlues: (Flse,Flse): 0 (Flse,True): X (True,Flse): Z (True,True): 1 (ny other hoie will lso do) 7
8 Why Boolen funtions For this leture, we ssume two vlued logi without X or Z s Boolen vlue, we write: 0 for Flse, nd 1 for True We tlk out & for nd, for or,! for not, et. We n ssume we re tlking out the logil funtions: 1 & 1 = 1, x & 0 = 0, 0 & x = = 0, x 1 = 1, 1 x = 1!0 = 1,!1 = 0 8
9 Expressing Boolen funtions: Dt struture should e: Effiient to onstrut Esy to reson out 9
10 How ompt n we store funtion? Truth tle: for Boolen funtion on N inputs 2 N possile input ssignments So, 2 N rows in the truth tle s most Boolen funtions re not ny Boolen funtion : we n hve smller representtions, most of the time. For instne, only represent rows for whih n output is 1 10
11 Direted yli grph (DG) direted yli grph is wy to represent Boolen funtion, it is often used s synonym for iruit. More ompt thn the funtion written out! d e ND d&e OR (d&e) ND d&e& OR ND (d&e&) ((d&e) )&((d&e&) ) 11
12 Direted yli grph (DG) DG is list of gtes. gte t position i hs: Boolen funtion ssigned to it Eh Boolen funtion gets list of pointers to other gtes, from whih it gets its input vlues Eh of those numers need to point kwrds Vriles re represented s gtes without inputs d e ND OR ND OR ND 12
13 Direted yli grph (DG) 0: vrile 1: vrile 2: vrile 3: vrile d 4: vrile e 5: nd [3,4] 6: or [5,2] 7: nd [5,1] 8: or [7,0] 9: nd [6,8] d e ND 5 6 OR ND 7 OR 8 9 ND 13
14 Direted yli grph (DG) DG is esy to onstrut (follows hrdwre diretly) Lrge mount of different gtes: mkes it hrd to write nd mintin progrms tht reson with DGs lterntive: nd-inverter Grph (IG) Uses just two gtes: ND nd NOT 14
15 nd-inverter Grph (IG) Every gte n e onverted into fixed mount of IG gtes ND OR XOR 15
16 IG Every gte n e onverted into fixed mount of IG gtes OR OR XOR OR d ND XOR 16
17 IG Every gte n e onverted into fixed mount of IG gtes OR XOR OR d ND XOR 17
18 IG Cnnot put two inverters etween two gtes XOR OR d ND XOR 18
19 IG Sometimes, ND gtes re the sme OR d ND 19
20 IG We my shre ND gtes tht hve the sme input OR d ND 20
21 IG Two inverters in row re removed (not not is identity) d 21
22 IG Coneptully, inverters elong with the next gte d 22
23 IG IG storge is relly ompt: ll nodes get even numers First node, 0, stnds for Flse To negte node, use its numer +1 23
24 IG d 26 output !&! d
25 dvntges of IG Liner size ompred to DG Useful s intermedite struture for synthesis: NND gte hs 4 trnsistors in CMOS NOT hs 2 IG Struture gives good re nd lok-speed estimtes Exmple tool tht uses IGs: BC, System for Sequentil Synthesis nd Verifition Berkeley Logi Synthesis nd Verifition Group 25
26 Dt strutures, so fr: DG IG (Is roughly the sme, ut with few onditions) Next: onjuntive norml form d
27 Conjuntive norml form (CNF) Simple grmmr: CNF = (Disjuntion) & CNF CNF = (Disjuntion) CNF = True Disjuntion = Term Disjuntion Disjuntion = Term Disjuntion = Flse Term = Vrile Term =! Vrile Exmple: (x y) & (!z x!y) & (z -x) Rules: ll vriles within n disjuntion must e unique. Inluding x nd!x: they do not our in the sme disjuntion 27
28 Creting CNF Nive wy: Proedure for ND nd NOT, trnslte from IG ND is trivil: ND of [( )&(d e f)&(i j)] [(g h)&(i j)] eomes: [( )&(d e f)&(g h)&(i j)] or even [( )&(d e f)&(i j)&(g h)&(i j)] NOT is prolemti: goes from CNF to DNF k to CNF [( )&(d e f)&(i j)] eomes: [ (- -d -i)&(- -d -j)&(- -e -i)&(- -e -j)&(- -f -i)&(- -f -j) &(- -d -i)&(- -d -j)&(- -e -i)&(- -e -j)&(- -f -i)&(- -f -j) &(- -d -i)&(- -d -j)&(- -e -i)&(- -e -j)&(- -f -i)&(- -f -j)] This is not going to sle! 28
29 nother wy to rete CNF - ND» Consider C = ND(,B)» Gol: rete CNF formul f suh tht f(,,) == (C = &B)» if is flse, then C is flse»! implies!c, logilly equivlent to the luse!c» similrly for B: B!C» If nd B re true, then C is true» & B implies C, logilly we get!! B C» Finlly, the enoding for n ND-gte is:» (!C) & (B!C) & (!!B C)» Liner expnsion: 3 luses for eh ND-gte 29
30 nother exmple: XOR» Consider C = XOR(,B)» Gol: rete CNF formul f suh tht f(,,) == (C = XOR B)» if nd B re flse, then C is flse»! nd!b implies!c, logilly equivlent to B!C» If is true nd B is flse, then C is true» &!B implies C, logilly we get! B C» Symmetri se:!b C» If nd B re true, then C is flse» &B implies!c, logilly we get!! B!C» Finlly, the enoding for n XOR-gte is:» ( B!C) & (! B C) & (!B C) & (!! B!C) 30
31 CNF Like IG, CNF is liner in the size of the originl DG, ut only if we dd helper vriles. CNF is used s the internl struture of most ST solvers, inluding MiniST CNF is the input formt in the ST ompetition, nd in mny of its vritions Some optimistions re esier on IGs, so tools uilt on ST solvers sometimes trnslte Boolen primitives to IG to CNF, for exmple: Booletor. Other tools trnslte Boolen primitives to CNF diretly, suh s Yies 31
32 CNF: typil optimistions Never hve disjuntions with one vrile: ( v10) & (- -v10) & (- -v10) & (- - v12) & ( -v12) & ( -v12) & (- -d v14) & ( -v14) & (d -v14) & (v10 v12 v16) & (-v10 -v16) & (-v12 -v16) & (-v10) -v10 is neessrily True, so v10 is Flse (-) & (-) & (- - v12) & ( -v12) & ( -v12) & (- -d v14) & ( -v14) & (d -v14) & (v12 v16) & (-v12 -v16) New single vrile disjuntions: nd re Flse (-v12) & (-v12) & (- -d v14) & ( -v14) & (d -v14) & (v12 v16) & (-v12 -v16) New single vrile disjuntions: v12 is Flse (- -d v14) & ( -v14) & (d -v14) & (v16) New single vrile disjuntions: v16 is True 32
33 CNF: typil optimistions (2) Remove stritly lrger disjuntions: ( ) implies ( ), so ( ) is redundnt. Reple ( ) & ( ) y ( ). If vrile only ours positively/negtively, remove it: (- -d v14) & ( -v14) eomes: ( -v14) y ssigning d to Flse, whih then eomes: True y ssigning to True (or v14 to Flse) If vrile ours twie, positively in one luse, nd negtively in nother luse, we n merge these luses: (- -d v14) & ( ) eomes ( -d v14) (if does not our elsewhere!) Rell the rule: Never hve -x nd x in one disjuntion (it is lwys True) 33
34 CNF: summry Cn e onstruted in liner size if we llow for dditionl vriles Esy to reson with Common file formt for mny purposes 34
35 Dt strutures, so fr: DG IG CNF Next: inry deision digrm d
36 Binry Deision Digrm (BDD) Cnonil form exists: two strutures re equivlent if they re equl. Drwk: usully very lrge strutures 36
37 Binry Deision Digrm (BDD) DG with the following nodes Constnt 0 Constnt 1 If-then-else with vrile s ondition Rules for Ordered-BDD: Vriles re ordered, gtes must our in tht order: if >>>d>e>f, then the if then.. else.. gte n ontin gtes with nd, ut not with d, e nd f. Rules for Redued-BDD: ll gtes must e different (no two gtes with the sme vriles nd inputs, e.g. if x then y else z ) gte nnot hve the sme then nd else luse Theorem: if BDD is Redued ND Ordered, it is nonil. 37
38 Binry Deision Digrm (BDD) IG node 10: IG node 12: d
39 Binry Deision Digrm (BDD) IG node 11: IG node 13: d IG node 16:
40 Binry Deision Digrm (BDD) IG node 14: d IG node 15: d d IG node 17:
41 Binry Deision Digrm (BDD) IG node 18: d IG node 15: IG node 17: d
42 Binry Deision Digrm (BDD) IG node 18: d 1 d IG node 15: IG node 17: d
43 Binry Deision Digrm (BDD) Cnonil form: ROBDD ND of two BDDs introdues lowup Used in model hekers Usully ST-sed (CNF/IG) model heking is fster Not lwys We will ome k with more detils out BDD s lter when we will tlk out Symoli Model Cheking 43
44 Dt strutures, so fr: DG IG CNF BDD Up next: Sum of produts d
45 Sum of produts lot like CNF, ut opertions re hosen suh tht SOP is nonil. Most ommon hoie of opertions: ND (produt) + XOR (sum) ND is innermost, XOR is outermost opertion d
46 Sum of produts not : True XOR ND of {} ND of {} (True XOR ) & (True XOR ) = True & True XOR True & XOR & True XOR & = True XOR XOR XOR & d
47 Sum of produts (SOP) Unlike CNF, do not introdue helper vriles Negtion of x is simply x XOR 1 SOP is nonil, if ND- nd XOR- luses re onsidered s sets: Sort vriles within ND luse, no duplites Sort vrile-sets within XOR luse, no duplites ND of two SOPs introdues lowup d
48 Sum of produts (SOP) 10: True XOR XOR XOR & 12: & 11: XOR XOR & 13: True XOR & 16: True& XOR True& XOR True&& XOR && XOR && XOR &&& = XOR XOR & XOR & XOR & XOR & = XOR 17: True XOR XOR 14: &d 15: True XOR &d 18: True XOR XOR XOR &d XOR &d& XOR &d& d
49 Dtstrutures, so fr: DG IG CNF BDD SOP Up next: IG (gin!) d
50 IGs vs. SoP x1 x2 x3 x4 x5 y x1 x2 x3 x4 y x5 50
51 IGs vs. BDDs» IGs lwys size proportionl to input» BDDs lwys exponentil size for some ses (e.g. multiplier iruits) 51
52 ST solving» One we hve Boolen funtions, we n do ST solving.» This is n NP-Hrd prolem, ut effiient in prtie» t the sis of lmost ll modern FV methods.» t the next leture, we will go through the si lgorithm for ST solving. 52
53 CEC with SoP» SoP is norml form» CEC otined y normlising expressions to SoP» Then hek for syntti equlity 53
54 CEC with BDDs» ROBDDs is norml form.» Compute the two ROBDDs.» Chek for syntti equlity. 54
55 CEC with ST nd CNF» Tke two iruits» Crete CNF representtion of eh one of them» XOR ll outputs pirwise» ssert one XOR output is 1» Look t ode skeleton for ssignment 1 55
56 CEC with IGs» Step 1: rndom simultion» Step 2: uild IG» Step 3: ST sweeping (slides tken from Sen Wever, see ourse wepge) 56
57 Equivlene Cheking x y 57
58 nother exmple (1) y 58
59 nother exmple (2) y 1 nnd-gte to strt 59
60 nother exmple (3) y 1 or gte 60
61 nother exmple (3) y 1 nnd gte 61
62 nother exmple y finlly 1 or gte with negted inputs 62
63 IGs» Pros simple to uild nd mnipulte unifying mong synthesis, verifition, tehnology mpping ompt representtion» Cons struturlly not effiient (see FRIG) non nonil 63
64 Equivlene Cheking O 1 O
65 Rndom Simultion (1) Equivlene lsses 1,4,7,8 5 O 1 O 2 8 0,2,3,5,6 3 Rndom Vetor: ssign T to ll inputs. = = = T 65
66 Rndom Simultion (2) Equivlene lsses 1,4 5 7,8 O 1 O 2 8 2,3,5,6 3 Rndom Vetor: ssign F to ll inputs. = = = F 66
67 Rndom Simultion (3) Equivlene lsses 1,4 5 7,8 O 1 O 2 8 2,6 3,5 3 Rndom Vetor: = = F nd = T 67
68 Rndom Simultion (4) Equivlene lsses 5 7,8 O 1 O 2 8 2,6 3,5 3 Rndom Vetor: = = T nd = F 68
69 IG (1) O 1 O
70 IG (2)
71 IG (3)
72 IG (4)
73 IG (4)
74 IG (5)
75 ST Sweeping (1) Equivlene lsses 1 2 7,8 2,6 8 3,5 3 ST solver: 3 = 5 ( ^ ) ^ = (( ^ ) ^ ) ^ 75
76 ST Sweeping (2) Equivlene lsses ,8 2,6 8 3,5 3 ST solver: 3 = 5 Merge nodes 3 nd 5 76
77 ST Sweeping (3) Equivlene lsses 1 2 7,8 2,6 8 3,5 3 ST solver: 2 = 6 77
78 ST Sweeping (4) Equivlene lsses ,8 2,6 8 3,5 3 ST solver: 2 = 6 Merge nodes 2 nd 6 78
79 ST Sweeping (5) Equivlene lsses ,8 2,6 8 3,5 3 7 struturlly hshes to 8 So, iruits re equivlent 79
80 FRIGS» Insted of ST sweeping» On-the-fly uild Funtionlly Redued IG» Struturl hshing, one or two-levels» Simultion with test-vetors» Cll ST for possily equivlent nodes» Keep funtionl equivlent nodes, ut re-use just one of them 80
81 Simple exerises to prtie» See reder (Chpter 2) on the wesite 81
Unit 4. Combinational Circuits
Unit 4. Comintionl Ciruits Digitl Eletroni Ciruits (Ciruitos Eletrónios Digitles) E.T.S.I. Informáti Universidd de Sevill 5/10/2012 Jorge Jun 2010, 2011, 2012 You re free to opy, distriute
More informationCS 573 Automata Theory and Formal Languages
Non-determinism Automt Theory nd Forml Lnguges Professor Leslie Lnder Leture # 3 Septemer 6, 2 To hieve our gol, we need the onept of Non-deterministi Finite Automton with -moves (NFA) An NFA is tuple
More informationPropositional models. Historical models of computation. Application: binary addition. Boolean functions. Implementation using switches.
Propositionl models Historil models of omputtion Steven Lindell Hverford College USA 1/22/2010 ISLA 2010 1 Strt with fixed numer of oolen vriles lled the voulry: e.g.,,. Eh oolen vrile represents proposition,
More informationNON-DETERMINISTIC FSA
Tw o types of non-determinism: NON-DETERMINISTIC FS () Multiple strt-sttes; strt-sttes S Q. The lnguge L(M) ={x:x tkes M from some strt-stte to some finl-stte nd ll of x is proessed}. The string x = is
More information1. Logic verification
. Logi verifition Bsi priniples of OBDD s Vrile ordering Network of gtes => OBDD s FDD s nd OKFDD s Resoning out iruits Struturl methods Stisfiility heker Logi verifition The si prolem: prove tht two iruits
More informationLogic Synthesis and Verification
Logi Synthesis nd Verifition SOPs nd Inompletely Speified Funtions Jie-Hong Rolnd Jing 江介宏 Deprtment of Eletril Engineering Ntionl Tiwn University Fll 2010 Reding: Logi Synthesis in Nutshell Setion 2 most
More informationChapter 4 State-Space Planning
Leture slides for Automted Plnning: Theory nd Prtie Chpter 4 Stte-Spe Plnning Dn S. Nu CMSC 722, AI Plnning University of Mrylnd, Spring 2008 1 Motivtion Nerly ll plnning proedures re serh proedures Different
More informationEngr354: Digital Logic Circuits
Engr354: Digitl Logi Ciruits Chpter 4: Logi Optimiztion Curtis Nelson Logi Optimiztion In hpter 4 you will lern out: Synthesis of logi funtions; Anlysis of logi iruits; Tehniques for deriving minimum-ost
More informationProject 6: Minigoals Towards Simplifying and Rewriting Expressions
MAT 51 Wldis Projet 6: Minigols Towrds Simplifying nd Rewriting Expressions The distriutive property nd like terms You hve proly lerned in previous lsses out dding like terms ut one prolem with the wy
More information1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.
1 PYTHAGORAS THEOREM 1 1 Pythgors Theorem In this setion we will present geometri proof of the fmous theorem of Pythgors. Given right ngled tringle, the squre of the hypotenuse is equl to the sum of the
More informationLecture 11 Binary Decision Diagrams (BDDs)
C 474A/57A Computer-Aie Logi Design Leture Binry Deision Digrms (BDDs) C 474/575 Susn Lyseky o 3 Boolen Logi untions Representtions untion n e represente in ierent wys ruth tle, eqution, K-mp, iruit, et
More informationTechnische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution
Tehnishe Universität Münhen Winter term 29/ I7 Prof. J. Esprz / J. Křetínský / M. Luttenerger. Ferur 2 Solution Automt nd Forml Lnguges Homework 2 Due 5..29. Exerise 2. Let A e the following finite utomton:
More informationReview of Gaussian Quadrature method
Review of Gussin Qudrture method Nsser M. Asi Spring 006 compiled on Sundy Decemer 1, 017 t 09:1 PM 1 The prolem To find numericl vlue for the integrl of rel vlued function of rel vrile over specific rnge
More informationMetodologie di progetto HW Technology Mapping. Last update: 19/03/09
Metodologie di progetto HW Tehnology Mpping Lst updte: 19/03/09 Tehnology Mpping 2 Tehnology Mpping Exmple: t 1 = + b; t 2 = d + e; t 3 = b + d; t 4 = t 1 t 2 + fg; t 5 = t 4 h + t 2 t 3 ; F = t 5 ; t
More informationAlgorithms & Data Structures Homework 8 HS 18 Exercise Class (Room & TA): Submitted by: Peer Feedback by: Points:
Eidgenössishe Tehnishe Hohshule Zürih Eole polytehnique fédérle de Zurih Politenio federle di Zurigo Federl Institute of Tehnology t Zurih Deprtement of Computer Siene. Novemer 0 Mrkus Püshel, Dvid Steurer
More informationLecture Notes No. 10
2.6 System Identifition, Estimtion, nd Lerning Leture otes o. Mrh 3, 26 6 Model Struture of Liner ime Invrint Systems 6. Model Struture In representing dynmil system, the first step is to find n pproprite
More informationexpression simply by forming an OR of the ANDs of all input variables for which the output is
2.4 Logic Minimiztion nd Krnugh Mps As we found ove, given truth tle, it is lwys possile to write down correct logic expression simply y forming n OR of the ANDs of ll input vriles for which the output
More informationExercise 3 Logic Control
Exerise 3 Logi Control OBJECTIVE The ojetive of this exerise is giving n introdution to pplition of Logi Control System (LCS). Tody, LCS is implemented through Progrmmle Logi Controller (PLC) whih is lled
More informationLinear Algebra Introduction
Introdution Wht is Liner Alger out? Liner Alger is rnh of mthemtis whih emerged yers k nd ws one of the pioneer rnhes of mthemtis Though, initilly it strted with solving of the simple liner eqution x +
More informationParse trees, ambiguity, and Chomsky normal form
Prse trees, miguity, nd Chomsky norml form In this lecture we will discuss few importnt notions connected with contextfree grmmrs, including prse trees, miguity, nd specil form for context-free grmmrs
More informationSolutions - Homework 1 (Due date: September 9:30 am) Presentation and clarity are very important!
ECE-238L: Computer Logi Design Fll 23 Solutions - Homework (Due dte: Septemer 2th @ 9:3 m) Presenttion nd lrity re very importnt! PROBLEM (5 PTS) ) Simpliy the ollowing untions using ONLY Boolen Alger
More informationChapter 8 Roots and Radicals
Chpter 8 Roots nd Rdils 7 ROOTS AND RADICALS 8 Figure 8. Grphene is n inredily strong nd flexile mteril mde from ron. It n lso ondut eletriity. Notie the hexgonl grid pttern. (redit: AlexnderAIUS / Wikimedi
More informationNondeterministic Automata vs Deterministic Automata
Nondeterministi Automt vs Deterministi Automt We lerned tht NFA is onvenient model for showing the reltionships mong regulr grmmrs, FA, nd regulr expressions, nd designing them. However, we know tht n
More informationAP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals
AP Clulus BC Chpter 8: Integrtion Tehniques, L Hopitl s Rule nd Improper Integrls 8. Bsi Integrtion Rules In this setion we will review vrious integrtion strtegies. Strtegies: I. Seprte the integrnd into
More information22: Union Find. CS 473u - Algorithms - Spring April 14, We want to maintain a collection of sets, under the operations of:
22: Union Fin CS 473u - Algorithms - Spring 2005 April 14, 2005 1 Union-Fin We wnt to mintin olletion of sets, uner the opertions of: 1. MkeSet(x) - rete set tht ontins the single element x. 2. Fin(x)
More informationFast Boolean Algebra
Fst Boolen Alger ELEC 267 notes with the overurden removed A fst wy to lern enough to get the prel done honorly Printed; 3//5 Slide Modified; Jnury 3, 25 John Knight Digitl Circuits p. Fst Boolen Alger
More informationConvert the NFA into DFA
Convert the NF into F For ech NF we cn find F ccepting the sme lnguge. The numer of sttes of the F could e exponentil in the numer of sttes of the NF, ut in prctice this worst cse occurs rrely. lgorithm:
More informationDiscrete Structures, Test 2 Monday, March 28, 2016 SOLUTIONS, VERSION α
Disrete Strutures, Test 2 Mondy, Mrh 28, 2016 SOLUTIONS, VERSION α α 1. (18 pts) Short nswer. Put your nswer in the ox. No prtil redit. () Consider the reltion R on {,,, d with mtrix digrph of R.. Drw
More informationBoolean algebra.
http://en.wikipedi.org/wiki/elementry_boolen_lger Boolen lger www.tudorgir.com Computer science is not out computers, it is out computtion nd informtion. computtion informtion computer informtion Turing
More informationLecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations.
Lecture 3 3 Solving liner equtions In this lecture we will discuss lgorithms for solving systems of liner equtions Multiplictive identity Let us restrict ourselves to considering squre mtrices since one
More informationCS12N: The Coming Revolution in Computer Architecture Laboratory 2 Preparation
CS2N: The Coming Revolution in Computer Architecture Lortory 2 Preprtion Ojectives:. Understnd the principle of sttic CMOS gte circuits 2. Build simple logic gtes from MOS trnsistors 3. Evlute these gtes
More informationHow do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?
XII. LINEAR ALGEBRA: SOLVING SYSTEMS OF EQUATIONS Tody we re going to tlk out solving systems of liner equtions. These re prolems tht give couple of equtions with couple of unknowns, like: 6= x + x 7=
More informationLogic Synthesis and Verification
Logi Synthesis nd Verifition SOPs nd Inompletely Speified Funtions Jie-Hong Rolnd Jing 江介宏 Deprtment of Eletril Engineering Ntionl Tiwn University Fll 22 Reding: Logi Synthesis in Nutshell Setion 2 most
More informationBoolean Algebra. Boolean Algebra
Boolen Alger Boolen Alger A Boolen lger is set B of vlues together with: - two inry opertions, commonly denoted y + nd, - unry opertion, usully denoted y ˉ or ~ or, - two elements usully clled zero nd
More information2. Binary Decision Diagrams Fachgebiet Rechnersysteme1
2. Binry Deision Digrms Fhgeiet Rehnersysteme 2. Binry Deision Digrms Verifition Tehnology Content 2. BDD onepts 2.22 Vrile orderings 2.3 OBDD lgorithms 2.4 FDD s nd OKFDD s 2.5 Integer vlued deision digrms
More informationELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700: Digital Logic Design Fall Notes - Unit 1
INTRODUTION TO LOGI IRUITS Notes - Unit 1 OOLEN LGER This is the oundtion or designing nd nlyzing digitl systems. It dels with the cse where vriles ssume only one o two vlues: TRUE (usully represented
More informationEECS 141 Due 04/19/02, 5pm, in 558 Cory
UIVERSITY OF CALIFORIA College of Engineering Deprtment of Electricl Engineering nd Computer Sciences Lst modified on April 8, 2002 y Tufn Krlr (tufn@eecs.erkeley.edu) Jn M. Rey, Andrei Vldemirescu Homework
More informationFault Modeling. EE5375 ADD II Prof. MacDonald
Fult Modeling EE5375 ADD II Prof. McDonld Stuck At Fult Models l Modeling of physicl defects (fults) simplify to logicl fult l stuck high or low represents mny physicl defects esy to simulte technology
More informationResources. Introduction: Binding. Resource Types. Resource Sharing. The type of a resource denotes its ability to perform different operations
Introduction: Binding Prt of 4-lecture introduction Scheduling Resource inding Are nd performnce estimtion Control unit synthesis This lecture covers Resources nd resource types Resource shring nd inding
More informationI1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3
2 The Prllel Circuit Electric Circuits: Figure 2- elow show ttery nd multiple resistors rrnged in prllel. Ech resistor receives portion of the current from the ttery sed on its resistnce. The split is
More informationCS 491G Combinatorial Optimization Lecture Notes
CS 491G Comintoril Optimiztion Leture Notes Dvi Owen July 30, August 1 1 Mthings Figure 1: two possile mthings in simple grph. Definition 1 Given grph G = V, E, mthing is olletion of eges M suh tht e i,
More information6.5 Improper integrals
Eerpt from "Clulus" 3 AoPS In. www.rtofprolemsolving.om 6.5. IMPROPER INTEGRALS 6.5 Improper integrls As we ve seen, we use the definite integrl R f to ompute the re of the region under the grph of y =
More informationCHENG Chun Chor Litwin The Hong Kong Institute of Education
PE-hing Mi terntionl onferene IV: novtion of Mthemtis Tehing nd Lerning through Lesson Study- onnetion etween ssessment nd Sujet Mtter HENG hun hor Litwin The Hong Kong stitute of Edution Report on using
More informationAlgorithm Design and Analysis
Algorithm Design nd Anlysis LECTURE 5 Supplement Greedy Algorithms Cont d Minimizing lteness Ching (NOT overed in leture) Adm Smith 9/8/10 A. Smith; sed on slides y E. Demine, C. Leiserson, S. Rskhodnikov,
More informationGlobal alignment. Genome Rearrangements Finding preserved genes. Lecture 18
Computt onl Biology Leture 18 Genome Rerrngements Finding preserved genes We hve seen before how to rerrnge genome to obtin nother one bsed on: Reversls Knowledge of preserved bloks (or genes) Now we re
More informationCS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014
S 224 DIGITAL LOGI & STATE MAHINE DESIGN SPRING 214 DUE : Mrh 27, 214 HOMEWORK III READ : Relte portions of hpters VII n VIII ASSIGNMENT : There re three questions. Solve ll homework n exm prolems s shown
More informationwhere the box contains a finite number of gates from the given collection. Examples of gates that are commonly used are the following: a b
CS 294-2 9/11/04 Quntum Ciruit Model, Solovy-Kitev Theorem, BQP Fll 2004 Leture 4 1 Quntum Ciruit Model 1.1 Clssil Ciruits - Universl Gte Sets A lssil iruit implements multi-output oolen funtion f : {0,1}
More informationThe Word Problem in Quandles
The Word Prolem in Qundles Benjmin Fish Advisor: Ren Levitt April 5, 2013 1 1 Introdution A word over n lger A is finite sequene of elements of A, prentheses, nd opertions of A defined reursively: Given
More informationPart 4. Integration (with Proofs)
Prt 4. Integrtion (with Proofs) 4.1 Definition Definition A prtition P of [, b] is finite set of points {x 0, x 1,..., x n } with = x 0 < x 1
More information(a) A partition P of [a, b] is a finite subset of [a, b] containing a and b. If Q is another partition and P Q, then Q is a refinement of P.
Chpter 7: The Riemnn Integrl When the derivtive is introdued, it is not hrd to see tht the it of the differene quotient should be equl to the slope of the tngent line, or when the horizontl xis is time
More information8 THREE PHASE A.C. CIRCUITS
8 THREE PHSE.. IRUITS The signls in hpter 7 were sinusoidl lternting voltges nd urrents of the so-lled single se type. n emf of suh type n e esily generted y rotting single loop of ondutor (or single winding),
More informationELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-378: Computer Hardware Design Winter Notes - Unit 1
ELETRIL ND OMPUTER ENGINEERING DEPRTMENT, OKLND UNIVERSIT EE-78: omputer Hrdwre Design Winter 016 INTRODUTION TO LOGI IRUITS Notes - Unit 1 OOLEN LGER This is the oundtion or designing nd nlyzing digitl
More informationComputational Biology Lecture 18: Genome rearrangements, finding maximal matches Saad Mneimneh
Computtionl Biology Leture 8: Genome rerrngements, finding miml mthes Sd Mneimneh We hve seen how to rerrnge genome to otin nother one sed on reversls nd the knowledge of the preserved loks or genes. Now
More informationDiscrete Structures Lecture 11
Introdution Good morning. In this setion we study funtions. A funtion is mpping from one set to nother set or, perhps, from one set to itself. We study the properties of funtions. A mpping my not e funtion.
More informationNondeterministic Finite Automata
Nondeterministi Finite utomt The Power of Guessing Tuesdy, Otoer 4, 2 Reding: Sipser.2 (first prt); Stoughton 3.3 3.5 S235 Lnguges nd utomt eprtment of omputer Siene Wellesley ollege Finite utomton (F)
More informationConnected-components. Summary of lecture 9. Algorithms and Data Structures Disjoint sets. Example: connected components in graphs
Prm University, Mth. Deprtment Summry of lecture 9 Algorithms nd Dt Structures Disjoint sets Summry of this lecture: (CLR.1-3) Dt Structures for Disjoint sets: Union opertion Find opertion Mrco Pellegrini
More informationPAIR OF LINEAR EQUATIONS IN TWO VARIABLES
PAIR OF LINEAR EQUATIONS IN TWO VARIABLES. Two liner equtions in the sme two vriles re lled pir of liner equtions in two vriles. The most generl form of pir of liner equtions is x + y + 0 x + y + 0 where,,,,,,
More informationIntroduction to Olympiad Inequalities
Introdution to Olympid Inequlities Edutionl Studies Progrm HSSP Msshusetts Institute of Tehnology Snj Simonovikj Spring 207 Contents Wrm up nd Am-Gm inequlity 2. Elementry inequlities......................
More informationInterpreting Integrals and the Fundamental Theorem
Interpreting Integrls nd the Fundmentl Theorem Tody, we go further in interpreting the mening of the definite integrl. Using Units to Aid Interprettion We lredy know tht if f(t) is the rte of chnge of
More informationAlgorithm Design and Analysis
Algorithm Design nd Anlysis LECTURE 8 Mx. lteness ont d Optiml Ching Adm Smith 9/12/2008 A. Smith; sed on slides y E. Demine, C. Leiserson, S. Rskhodnikov, K. Wyne Sheduling to Minimizing Lteness Minimizing
More informationp-adic Egyptian Fractions
p-adic Egyptin Frctions Contents 1 Introduction 1 2 Trditionl Egyptin Frctions nd Greedy Algorithm 2 3 Set-up 3 4 p-greedy Algorithm 5 5 p-egyptin Trditionl 10 6 Conclusion 1 Introduction An Egyptin frction
More informationSection 1.3 Triangles
Se 1.3 Tringles 21 Setion 1.3 Tringles LELING TRINGLE The line segments tht form tringle re lled the sides of the tringle. Eh pir of sides forms n ngle, lled n interior ngle, nd eh tringle hs three interior
More informationCombinational Circuits Verification. 2. Verification by Equivalence Checking. Combinational Equivalence Checking (con t)
Comintionl Ciruits Verifition 2. Verifition y Equivlene Cheking Pge Comintionl Ciruits Verifition 2.2 Propositionl Logi (Clulus) 2.5 Propositionl Resolution 2. Stålmrk s Proedure 2.9 Redued Ordered Binry
More informationComparing the Pre-image and Image of a Dilation
hpter Summry Key Terms Postultes nd Theorems similr tringles (.1) inluded ngle (.2) inluded side (.2) geometri men (.) indiret mesurement (.6) ngle-ngle Similrity Theorem (.2) Side-Side-Side Similrity
More informationLecture 9: LTL and Büchi Automata
Lecture 9: LTL nd Büchi Automt 1 LTL Property Ptterns Quite often the requirements of system follow some simple ptterns. Sometimes we wnt to specify tht property should only hold in certin context, clled
More informationFirst Midterm Examination
Çnky University Deprtment of Computer Engineering 203-204 Fll Semester First Midterm Exmintion ) Design DFA for ll strings over the lphet Σ = {,, c} in which there is no, no nd no cc. 2) Wht lnguge does
More informationLecture 6: Coding theory
Leture 6: Coing theory Biology 429 Crl Bergstrom Ferury 4, 2008 Soures: This leture loosely follows Cover n Thoms Chpter 5 n Yeung Chpter 3. As usul, some of the text n equtions re tken iretly from those
More informationLecture 6. CMOS Static & Dynamic Logic Gates. Static CMOS Circuit. PMOS Transistors in Series/Parallel Connection
NMOS Trnsistors in Series/Prllel onnetion Leture 6 MOS Stti & ynmi Logi Gtes Trnsistors n e thought s swith ontrolled y its gte signl NMOS swith loses when swith ontrol input is high Peter heung eprtment
More informationA Functorial Query Language
A Funtoril Query Lnguge Ryn Wisnesky, Dvid Spivk Deprtment of Mthemtis Msshusetts Institute of Tehnology {wisnesky, dspivk}@mth.mit.edu Presented t Boston Hskell April 16, 2014 Outline Introdution to FQL.
More informationEE 108A Lecture 2 (c) W. J. Dally and P. Levis 2
EE08A Leture 2: Comintionl Logi Design EE 08A Leture 2 () 2005-2008 W. J. Dlly n P. Levis Announements Prof. Levis will hve no offie hours on Friy, Jn 8. Ls n setions hve een ssigne - see the we pge Register
More informationCS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6
CS311 Computtionl Strutures Regulr Lnguges nd Regulr Grmmrs Leture 6 1 Wht we know so fr: RLs re losed under produt, union nd * Every RL n e written s RE, nd every RE represents RL Every RL n e reognized
More informationIntermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4
Intermedite Mth Circles Wednesdy, Novemer 14, 2018 Finite Automt II Nickols Rollick nrollick@uwterloo.c Regulr Lnguges Lst time, we were introduced to the ide of DFA (deterministic finite utomton), one
More informationBİL 354 Veritabanı Sistemleri. Relational Algebra (İlişkisel Cebir)
BİL 354 Veritnı Sistemleri Reltionl lger (İlişkisel Ceir) Reltionl Queries Query lnguges: llow mnipultion nd retrievl of dt from dtse. Reltionl model supports simple, powerful QLs: Strong forml foundtion
More informationOverview of Today s Lecture:
CPS 4 Computer Orgniztion nd Progrmming Lecture : Boolen Alger & gtes. Roert Wgner CPS4 BA. RW Fll 2 Overview of Tody s Lecture: Truth tles, Boolen functions, Gtes nd Circuits Krnugh mps for simplifying
More informationENGR 3861 Digital Logic Boolean Algebra. Fall 2007
ENGR 386 Digitl Logi Boole Alger Fll 007 Boole Alger A two vlued lgeri system Iveted y George Boole i 854 Very similr to the lger tht you lredy kow Sme opertios ivolved dditio sutrtio multiplitio Repled
More informationInstructions. An 8.5 x 11 Cheat Sheet may also be used as an aid for this test. MUST be original handwriting.
ID: B CSE 2021 Computer Orgniztion Midterm Test (Fll 2009) Instrutions This is losed ook, 80 minutes exm. The MIPS referene sheet my e used s n id for this test. An 8.5 x 11 Chet Sheet my lso e used s
More informationset is not closed under matrix [ multiplication, ] and does not form a group.
Prolem 2.3: Which of the following collections of 2 2 mtrices with rel entries form groups under [ mtrix ] multipliction? i) Those of the form for which c d 2 Answer: The set of such mtrices is not closed
More informationAlpha Algorithm: Limitations
Proess Mining: Dt Siene in Ation Alph Algorithm: Limittions prof.dr.ir. Wil vn der Alst www.proessmining.org Let L e n event log over T. α(l) is defined s follows. 1. T L = { t T σ L t σ}, 2. T I = { t
More informationChapter 3. Vector Spaces. 3.1 Images and Image Arithmetic
Chpter 3 Vetor Spes In Chpter 2, we sw tht the set of imges possessed numer of onvenient properties. It turns out tht ny set tht possesses similr onvenient properties n e nlyzed in similr wy. In liner
More informationLecture 3. Introduction digital logic. Notes. Notes. Notes. Representations. February Bern University of Applied Sciences.
Lecture 3 Ferury 6 ern University of pplied ciences ev. f57fc 3. We hve seen tht circuit cn hve multiple (n) inputs, e.g.,, C, We hve lso seen tht circuit cn hve multiple (m) outputs, e.g. X, Y,, ; or
More informationCS 275 Automata and Formal Language Theory
CS 275 utomt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Prolem (II) Chpter II.5.: Properties of Context Free Grmmrs (14) nton Setzer (Bsed on ook drft y J. V. Tucker nd K. Stephenson)
More informationCombinational Logic. Precedence. Quick Quiz 25/9/12. Schematics à Boolean Expression. 3 Representations of Logic Functions. Dr. Hayden So.
5/9/ Comintionl Logic ENGG05 st Semester, 0 Dr. Hyden So Representtions of Logic Functions Recll tht ny complex logic function cn e expressed in wys: Truth Tle, Boolen Expression, Schemtics Only Truth
More informationCS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS
CS 310 (sec 20) - Winter 2003 - Finl Exm (solutions) SOLUTIONS 1. (Logic) Use truth tles to prove the following logicl equivlences: () p q (p p) (q q) () p q (p q) (p q) () p q p q p p q q (q q) (p p)
More informationLogical Algebra 1. By Vern Crisler Copyright 2000; 2013
Logil Alger 1 By Vern Crisler Copyright 2000; 2013 1. Introdution 2. Addition in Logil Alger 3. Bsi Rules for Logil Alger 4. Exerises: Solve Using the Rules 5. Sommers & Term Logi 6. Logil Arithmeti &
More informationCMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014
CMPSCI 250: Introduction to Computtion Lecture #31: Wht DFA s Cn nd Cn t Do Dvid Mix Brrington 9 April 2014 Wht DFA s Cn nd Cn t Do Deterministic Finite Automt Forml Definition of DFA s Exmples of DFA
More informationMid-Term Examination - Spring 2014 Mathematical Programming with Applications to Economics Total Score: 45; Time: 3 hours
Mi-Term Exmintion - Spring 0 Mthemtil Progrmming with Applitions to Eonomis Totl Sore: 5; Time: hours. Let G = (N, E) e irete grph. Define the inegree of vertex i N s the numer of eges tht re oming into
More informationThings to Memorize: A Partial List. January 27, 2017
Things to Memorize: A Prtil List Jnury 27, 2017 Chpter 2 Vectors - Bsic Fcts A vector hs mgnitude (lso clled size/length/norm) nd direction. It does not hve fixed position, so the sme vector cn e moved
More informationDesigning finite automata II
Designing finite utomt II Prolem: Design DFA A such tht L(A) consists of ll strings of nd which re of length 3n, for n = 0, 1, 2, (1) Determine wht to rememer out the input string Assign stte to ech of
More informationANALYSIS AND MODELLING OF RAINFALL EVENTS
Proeedings of the 14 th Interntionl Conferene on Environmentl Siene nd Tehnology Athens, Greee, 3-5 Septemer 215 ANALYSIS AND MODELLING OF RAINFALL EVENTS IOANNIDIS K., KARAGRIGORIOU A. nd LEKKAS D.F.
More informationLecture 2 : Propositions DRAFT
CS/Mth 240: Introduction to Discrete Mthemtics 1/20/2010 Lecture 2 : Propositions Instructor: Dieter vn Melkeeek Scrie: Dlior Zelený DRAFT Lst time we nlyzed vrious mze solving lgorithms in order to illustrte
More informationClosure Properties of Regular Languages
Closure Properties of Regulr Lnguges Regulr lnguges re closed under mny set opertions. Let L 1 nd L 2 e regulr lnguges. (1) L 1 L 2 (the union) is regulr. (2) L 1 L 2 (the conctention) is regulr. (3) L
More informationThe Regulated and Riemann Integrals
Chpter 1 The Regulted nd Riemnn Integrls 1.1 Introduction We will consider severl different pproches to defining the definite integrl f(x) dx of function f(x). These definitions will ll ssign the sme vlue
More informationA Differential Approach to Inference in Bayesian Networks
Dierentil pproh to Inerene in Byesin Networks esented y Ynn Shen shenyn@mi.pitt.edu Outline Introdution Oeriew o lgorithms or inerene in Byesin networks (BN) oposed new pproh How to represent BN s multi-rite
More information1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.
York University CSE 2 Unit 3. DFA Clsses Converting etween DFA, NFA, Regulr Expressions, nd Extended Regulr Expressions Instructor: Jeff Edmonds Don t chet y looking t these nswers premturely.. For ech
More information6.004 Computation Structures Spring 2009
MIT OpenCourseWre http://ocw.mit.edu 6.004 Computtion Structures Spring 009 For informtion out citing these mterils or our Terms of Use, visit: http://ocw.mit.edu/terms. Cost/Performnce Trdeoffs: cse study
More informationMinimal DFA. minimal DFA for L starting from any other
Miniml DFA Among the mny DFAs ccepting the sme regulr lnguge L, there is exctly one (up to renming of sttes) which hs the smllest possile numer of sttes. Moreover, it is possile to otin tht miniml DFA
More information5. (±±) Λ = fw j w is string of even lengthg [ 00 = f11,00g 7. (11 [ 00)± Λ = fw j w egins with either 11 or 00g 8. (0 [ ffl)1 Λ = 01 Λ [ 1 Λ 9.
Regulr Expressions, Pumping Lemm, Right Liner Grmmrs Ling 106 Mrch 25, 2002 1 Regulr Expressions A regulr expression descries or genertes lnguge: it is kind of shorthnd for listing the memers of lnguge.
More informationm2 m3 m1 (a) (b) (c) n2 n3
Outline LOGIC SYNTHESIS AND TWO-LEVEL LOGIC OPTIMIZATION Giovnni De Miheli Stnford University Overview of logi synthesis. Comintionl-logi design: { Bkground. { Two-level forms. Ext minimiztion. Covering
More informationHow do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?
XII. LINEAR ALGEBRA: SOLVING SYSTEMS OF EQUATIONS Tody we re going to tlk bout solving systems of liner equtions. These re problems tht give couple of equtions with couple of unknowns, like: 6 2 3 7 4
More informationLecture 3: Equivalence Relations
Mthcmp Crsh Course Instructor: Pdric Brtlett Lecture 3: Equivlence Reltions Week 1 Mthcmp 2014 In our lst three tlks of this clss, we shift the focus of our tlks from proof techniques to proof concepts
More information