Basics of Digital Logic
|
|
- Cameron Chambers
- 5 years ago
- Views:
Transcription
1 ECE-78: Computer Hrdre Design Winter 7 Bsics o Digitl Logic BOOLEAN ALGEBRA AND LOGIC GATES This is the oundtion or design nd nlsis o digitl sstems. It dels ith the cse here vriles ssume onl one o to vlues: TRUE (usull represented the smol ''), nd ALSE (usull represented the smol ''). BASIC OPERATIONS X nd Y: Boolen vriles. Boolen vriles re used to represent the inputs or outputs o digitl circuit. These three re the sic logicl opertions. All the other opertions re derived rom these three. OPERATION BOOLEAN EXPRESSION OPERATION NOT X ( or X ) Logicl negtion AND X. Y Logicl conjunction o to sttements OR X + Y Logicl disjunction o to sttements TRUTH TABLES AND LOGIC GATES Truth Tle: A tulr listing o unction vlues or ll possile comintions o vlues on its input rguments. I there re n inputs, there re n possile comintions. Logic Gtes: Hrdre components tht produce logic or logic depending on the stte o inputs. Boolen unctions cn e implemented ith logic gtes. NOT gte: X = X' X = X' -input AND gte: X Y = X.Y X Y = X.Y -input OR gte: X Y = X+Y X Y = X+Y Logic Gtes (AND, OR, etc.) cn hve multiple inputs: X X Y Z = X.Y.Z Y Z = X+Y+Z+ AXIOMS THEOREMS. =. =. =. = = += + = + = + = = Vrile dominnt rule X. = X X + = X Commuttive rule X. Y = Y. X X + Y = Y + X Complement rule X. X = X + X = Idempotenc X. X = X X + X = X Identit Element X. = X + = Doule negtion X = X Associtive rule X. (Y. Z) = (X. Y). Z X + (Y + Z) = (X + Y) + Z Distriutive rule X. (Y + Z) = X. Y + X. Z X + Y. Z = (X + Y). (X + Z) Instructor: Dniel Llmocc
2 ECE-78: Computer Hrdre Design Winter 7 Other Theorems Asorption Adjcenc Consensus DeMorgn Simpliiction X. (X + Y) = X. X + X. Y = X + X. Y = X. ( + Y) = X X + X. Y = X. ( + Y) = X X. Y + X. Y = X (X + Y)(X + Y ) = X X. Y + X Z + YZ = XY + X Z (X + Y)(X + Z)(Y + Z) = (X + Y)(X + Z) Corollr: (X + Y)(X + Z) = X Y + XZ X. Y = X + Y, X. Y. Z = X + Y + Z + X + Y = X. Y, X + Y + Z+... = X. Y. Z X. (X + Y) = X. Y X + X Y = X + Y A useul ppliction o the theorems is on the simpliiction o Boolen unctions hich leds to the reduction o the mount o logic gtes. or emple: = (A + B C + D + E)(A + B C + D ) + E = (X + Y)(X + Y ), X = A + B C, Y = D + E = (X + Y)(X + Y ) = X = A + B C = (X + Y)(X + Y ) X = XX + XY + YX + YY Y = X + X(Y + Y) = X + X = X = (X )Z + Y + XY Z = X Y Z + XY Z = Y Z(X + X ) = Y Z = Y + Z X = + + = + ( + ) = + = + = ( + )( + ) = + = A(B + C ) + A = A(B. + C ) A = (A + B ). + C A = (B ). + C A = AB C DERIVING BOOLEAN UNCTIONS ROM TRUTH TABLES: Using s: A B C A B C = A BC + AB C + ABC Using s: A B C A B C = (A + B + C)(A + B + C ) Instructor: Dniel Llmocc
3 ECE-78: Computer Hrdre Design Winter 7 Other Logic Gtes -input NAND gte A B -input NOR gte A B -input XOR gte A B X Y X Y = X Y + XY = XY -input XNOR gte: A B X Y X Y = XY + X Y = XY SUM O PRODUCTS (SOP) AND PRODUCT O SUMS (POS) USING MINTERMS AND MAXTERMS: MINTERMS nd MAXTERMS ( vrile unction) Minterms Mterms m = M = + + m = M = + + m = M = + + m = M = m 4 = M 4 = m 5 = M 5 = + + m = M = m 7 = M 7 = + + or unction ith n vriles, there re n minterms (or n mterms) rom m to m n (or rom M to M n ) Note tht: m i = M i. A unction cn e epressed s sum o minterms or s product o mterms: A minterm cn e or. When the minterm is, the minterm is term o the unction. A mterm cn e or. When the mterm is, the mterm is term o the unction. Cnonicl orms: Sum o products (SOP) tht includes onl minterms or Product o sums (POS) contining onl mterms. Non-cnonicl orms: SOP tht includes terms tht re not minterms (or POS tht includes terms tht re not mterms). or emple: (,, ) = + (,, ) = ( + + )( + ) (,, ) = ( + + ) Instructor: Dniel Llmocc
4 ECE-78: Computer Hrdre Design Winter 7 Emple: X Y Z Sum o Products = X Y Z + XY Z + XY Z + XYZ (X, Y, Z) = (m, m 4, m 5, m ). (X, Y, Z) = m(,4,5,) Also: (X, Y, Z) = m(,,,7) Product o Sums = (X + Y + Z)(X + Y + Z)(X + Y + Z )(X + Y + Z ) (X, Y, Z) = (M, M, M, M 7 ). (X, Y, Z) = M(,,,7) Also: (X, Y, Z) = M(,4,5,) Note: (X, Y, Z) = m(,4,5,) = M(,,,7). TIMING DIAGRAMS A A B G B C C G PRACTICE EXERCISES Simpli the olloing unctions: = X Y Z + XY Z + XY Z + XYZ (X, Y, Z) = (m, m, m ) (X, Y, Z) = (M, M 4, M 7 ) = (X + Y + Z)(X + Y + Z ) = (A B + C + D)(A B + D) = A(C + D B) + A Provide the Boolen unctions nd sketch the logic circuit. Use the to representtions: i) Sum o Products, ii) Product o Sums. Also, provide the minterms nd mterms representtions. A B C Otin the logic unction (nd minimie i possile) o the olloing circuits: C C B Y B Y A A Dr the timing digrm o the olloing circuit: 4 Instructor: Dniel Llmocc
5 ECE-78: Computer Hrdre Design Winter 7 Design circuit tht veriies the logicl opertion o the OR gte. = '' (LED ON) i the OR gte orks properl. Assumption: hen the OR gte is not orking, it is generting 's insted o 's nd vice vers. Tip: irst, generte the truth tle.? Securit comintion: We hve lock tht onl opens hen e set eight (8) sitches s in the igure. Ech sitch represents Boolen vrile. Get the unction tht opens the lock ( logicl '' is generted) hen the sitches re conigured s in the igure. Here, n open lock is represented n LED tht is ON. ON () O () Design logic circuit (simpli our circuit) tht opens lock (= ) henever one presses the correct numer on ech numpd. We encode ech deciml numer on the numpd using BCD encoding. We epect tht ech group o 4 its e in the rnge rom to, the vlues rom to re ssumed not to occur. Tip: crete to circuits: one tht veriies the irst numer (9), nd the other tht veriies the second numer (5). Then perorm the AND opertion on the to outputs. This voids creting truth tle ith 8 inputs!? Numpd SIMPLIICATION O UNCTIONS USING KARNAUGH MAPS Numpd vriles: vriles: m m m m m m m m m m m m m 4 m 5 m m 7 m m m m m m 4 m 7 m 5 = ' + ' = m + m = ' + = '' + '' + = ' + ' = ' + ' 5 Instructor: Dniel Llmocc
6 ECE-78: Computer Hrdre Design Winter 7 4 vriles: m m m m m 4 m 5 m m 7 m 8 m 9 m m m m m 4 m 5 m m 4 m m 5 m m 7 m m m m m 8 m 9 m 5 m m 4 m = ''' + ' + '' = '' + = ' + ' Don t cre outputs X X X = ' = ' Instructor: Dniel Llmocc
7 ECE-78: Computer Hrdre Design Winter 7 PRACTICAL ASPECTS Digitl circuits re nlog circuits! PROPAGATION DELAY t P: Propgtion del. t P t P A A TRI-STATE BUERS Buers: The cn drive more current (e.g.: motors, highpoer LEDs) thn simple logic gtes. A common implementtion uses OPAMPs. A =A A =A' Tri-stte Buers: Z Stte: This is high impednce, hich eectivel mens tht is disconnected rom A. Applictions: Multipleors, Bidirectionl pins, Microprocessor Buses. Emple: Bi-directionl port (4 its): IN_DATA A OE OUT_DATA 4 OE = = Z OE = = A 4 A OE DATA OE = = Z OE = = A OE OE DATA IN_DATA OUT_DATA HAZARDS A digitl circuit cn generte glitches, hich re st spikes, usull unnted. Glitches cused the propgtion dels nd/or the structure o the circuit re knon s hrds. To tpes o hrd eist: o Sttic Hrds: The occur hen the propgtion dels re unlnced. It cn e ddressed dding ll prime implicnts to unction. These hrds hppen hen inputs chnge, ut the output is not supposed to chnge. To tpes:, or. Emple: All gtes hve propgtion del o 5 ns. 5 ns p c n c n q p q 7 Instructor: Dniel Llmocc
8 ECE-78: Computer Hrdre Design Winter 7 o Dnmic hrds: The re cused the structure o the circuit. The re diicult to detect nd ddress. The usull occur in multilevel circuits. To void, use onl to-level circuits nd ensure tht there re not sttic hrds. To tpes:, or. Signiicnce o hrds: o Asnchronous circuits: The re ver vulnerle to hrds nd ill usull render the circuits unusle. o Snchronous circuits: Hrds do not pose prolem here, s e use registers to sel ignore hrds. o Comintionl circuits: Hrds re usull not prolem ecuse the outputs solel depend on the current inputs (s long s the durtion eteen input chnges is greter thn the propgtion del, hich is usull the cse). UNSIGNED INTEGER NUMBERS: BINARY REPRESENTATION BINARY NUMBER SYSTEM Binr numers re ver prcticl s the re used digitl computers. or inr numers, the counterprt o the deciml digit (tht cn tke vlues rom to 9) is the inr digit, or it (tht cn tke the vlue o or ). Bit: Unit o inormtion tht computer uses to process nd retrieve dt. It cn lso e used s Boolen vrile. DIGIT Binr numer: This is represented string o its using the positionl numer representtion: n n CONVERTING A BINARY NUMBER INTO A DECIMAL NUMBER: Positionl numer representtion or inr numer ith n its: Most signiicnt (letmost) it (rightmost) it The inr numer cn e converted to positive deciml numer using the olloing ormul: D = i=n i i = n n + n n i= To void conusion, e usull rite inr numer nd ttch sui : ( n n ) Emple: its: () D = = 4 4 its: () D = = Mimum vlue nd rnge or given numer o its: Numer o its Mimum vlue Rnge n- n- Lest signiicnt n n - n - BIT Mimum vlue or n its: The mimum inr numer is given n n-it string o s:. Then, the mimum deciml numer is given : D = = n- + n = n - n its With n its, e cn represent n positive integer numers rom to n -. The cse n=8 its is o prticulr interest, s string o 8 its is clled te. or 8-it numers, e hve 5 numers in the rnge to 8 - to 55. Most signiicnt (letmost) it Lest signiicnt (rightmost) it 8 Instructor: Dniel Llmocc
9 ECE-78: Computer Hrdre Design Winter 7 CONVERTING A DECIMAL NUMBER (INTEGER POSITIVE) INTO A BINARY NUMBER Emples: Numer in se 5 Numer in se???? Numer in se Numer in se???? 5 Reminder Reminder stop here! Note tht some numers require eer its thn others. I e nt to use speciic it representtion, e.g., 8-it, e just need to ppend eros to the let until the 8 its re completed. or emple: (8-it numer) (8-it numer) CONVERSION O A NUMBER IN ANY BASE INTO A DECIMAL NUMBER To convert numer o se 'r' (r =,,4, ) to deciml, e use the olloing ormul: Numer in se 'r': (r n r n r r ) r D = i=n r i r i = r n r n + r n r n + + r r + r r i= stop here! Also, the mimum deciml vlue or numer in se 'r' ith 'n' digits is: D = rrr rrr = r r n + r n r n + + r r + r r = r n Emple: Bse-8: Numer o digits Mimum vlue Rnge n n n - 9 Instructor: Dniel Llmocc
10 ECE-78: Computer Hrdre Design Winter 7 Emples: (5) 8 : Numer in se 8 (octl sstem) Numer o digits: n = 5. Conversion to deciml: D = = 89 () 4 : Numer in se 4 (quternr sstem) Numer o digits: n = 4. Conversion to deciml: D = = CONVERTING A DECIMAL NUMBER (INTEGER POSITIVE) INTO A NUMBER IN ANY BASE This is generlition o the method to convert deciml Numer in numer into inr numer. or emple, i ou nt to convert se it into se-8 numer, just divide 8 nd group the reminders. Emple: Converting deciml numer to se-8: Reminder Numer in se 8???? stop here! HEXADECIMAL NUMBER SYSTEM This is ver useul sstem s it provides short-hnd nottion or inr numers. A hedeciml digit (lso clled nile) cn tke vlue rom to 5. To void conusion, the numers to 5 re represented letter (A-): Hedeciml digits A B C D E Deciml digits CONVERTING A HEXADECIMAL NUMBER INTO A DECIMAL NUMBER: Positionl numer representtion or hedeciml numer ith n niles (hedeciml digits): Most signiicnt (letmost) nile h n- h n- h h Lest signiicnt (rightmost) nile To convert hedeciml numer into deciml, e ppl the olloing ormul: D = i=n h i i = h n n + h n n + + h + h i= To void conusion, it is sometimes customr to ppend the prei to hedeciml numer: hn-hn- hh Emples: DA9: DA9 5 + D A B87C: B87C 5 + B C The tle presents the mimum ttinle vlue or the given numer o niles (hedeciml digits). Numer o niles Mimum vlue Rnge n n - n - Instructor: Dniel Llmocc
11 ECE-78: Computer Hrdre Design Winter 7 Mimum vlue or n niles: The mimum deciml vlue ith n niles is given : D = = n- + n n- + 5 n = n - n niles With n niles, e cn represent positive integer numers rom to n -. ( n numers) UNITS O INORMATION Nile Bte KB MB GB TB 4 its 8 its tes tes tes 4 tes Note tht the nile (4 its) is one hedeciml digit. Also, one te (8 its) is represented to hedeciml digits. While KB, MB, GB, TB (nd so on) should e poers o in the Interntionl Sstem, it is customr in digitl jrgon to use poers o to represent them. In microprocessor sstems, memor sie is usull poer o since it is determined the numer o ddresses the ddress us cn hndle (hich is poer o ). As result, it is ver useul to use the deinition provided here or KB, MB, GB, TB (nd so on). Digitl computers usull represent numers utiliing numer o its tht is multiple o 8. The st hedeciml to inr conversion llos us to quickl convert string o its tht is multiple o 8 into string o hedecimls digits. The sie o the dt us in processor represents the computing cpcit o processor, s the dt us sie is the numer o its the processor cn operte in one opertion (e.g.: 8-it, -it, -it processor). This is lso usull epressed s numer o its tht is multiple o 8 CONVERTING BETWEEN HEXADECIMAL AND BINARY NUMBERS Conversions eteen hedeciml nd inr sstems re commonplce hen deling ith digitl computers: Hedeciml to inr: We lred kno ho to convert hedeciml numer into deciml numer. We cn then convert the deciml numer into inr numer (using successive divisions). Binr to hedeciml: We cn irst convert the inr numer to deciml numer. Then, using n lgorithm similr to the one tht converts decimls into inr, e cn convert our deciml numer into hedeciml numer. These to conversion processes re too tedious. ortuntel, hedeciml numers hve n interesting propert tht llos quick conversion o inr numers to hedecimls nd vicevers: Binr to hedeciml: We group the inr numers in groups o 4 (strting rom the rightmost it). I the lst group hs eer thn our its, e ppend eros to the let. Then, e independentl convert ech 4-it group to its deciml vlue. Note tht 4 its cn onl tke deciml vlues eteen nd 4 - to 5, hence 4 its represent onl one hedeciml digit, i.e., 4-it group cn represent up to hedeciml digits. The igure elo shos n emple. inr dec he Binr: deciml: hedeciml: Then: Veriiction: = 5D 5 5 D = = 9 5D = 5 + D = A B C D 4 E 5 Hedeciml to inr: It is the reverse process o converting inr into hedeciml numers. We pick ech hedeciml digit nd convert it (ls using 4 its) to its 4-it inr representtion. The inr numer is the conctention o ll resulting 4-it groups. A C A = C = DO NOT discrd these eros hen conctening! Instructor: Dniel Llmocc
12 ECE-78: Computer Hrdre Design Winter 7 APPLICATIONS O BINARY AND HEXADECIMAL REPRESENTATIONS INTERNET PROTOCOL ADDRESS (IP ADDRESS): Hedeciml numers represent compct o representing inr numers. The IP ddress is deined s -it numer, ut it is displed s conctention o our deciml vlues seprted dot (e.g., ). The olloing igure shos ho -it IP ddress epressed s inr numer is trnsormed into the stndrd IP ddress nottion. IP ddress (inr): Conversion to hedeciml: IP ddress (he): 8A54C IP ddress nottion: A 5 4 C Gr pirs o hedeciml numers nd convert ech o them to deciml. The -it IP ddress epressed s inr numer is ver diicult to red. So, e irst convert the -it inr numer to hedeciml numer. The IP ddress epressed s hedeciml (8A54C) is compct representtion o -it IP ddress. This should suice. Hoever, it s decided to represent the IP ddress in 'humn-redle' nottion. In this nottion, e gr pirs o hedeciml numers nd convert ech o them individull to deciml numers. Then e conctente ll the vlues nd seprte them dot. Importnt: Note tht the IP ddress nottion (deciml numers) is NOT the deciml vlue o the inr numer. It is rther series o our deciml vlues, here ech deciml vlue is otined independentl converting ech to hedeciml digits to its deciml vlue. Given tht ech deciml numer in the IP ddress cn e represented hedeciml digits (or 8 its), ht is the rnge (min. vlue, m. vlue) o ech deciml numer in the IP ddress? With 8 its, e cn represent 8 = 5 numers rom to 55. An IP ddress represents unique device connected to the Internet. Given tht the IP ddress hs its (or 8 hedeciml digits), the ho mn numers cn e represented (i.e., ho mn devices cn connect to the Internet)? = devices. The numer o devices tht cn e connected to the Internet is huge, ut considering the numer o Internet-cple devices tht eists in the entire orld, it is ecoming cler tht its is not going to e enough. Tht is h the Internet Protocol is eing currentl etended to ne version (IPv) tht uses 8 its or the ddresses. With 8 its, ho mn Internet-cple devices cn e connected to the Internet? devices REPRESENTING GRAYSCALE PIXELS A grscle piel is commonl represented ith 8 its. So, grscle piel vlue vries eteen nd 55, eing the drkest (lck) nd 55 eing the rightest (hite). An vlue in eteen represents shde o gr. 55 MEMORY ADDRESSES The ddress us sie in processors is usull determined the numer o memor positions it cn ddress. or emple, i e hve microprocessor ith n ddress us o its, e cn hndle up to ddresses. I the memor content is one te ide, then the processor cn hndle up to tes = 4KB. Here, e use its per ddress, or 4 niles. The loest ddress (in he) is nd highest ddress (in he) is. Address : : : 8 its Instructor: Dniel Llmocc
13 ECE-78: Computer Hrdre Design Winter 7 Emples: A microprocessor cn onl hndle memor ddresses rom to 7. Wht is the ddress us sie? I ech memor position is one te ide, ht is the mimum sie (in tes) o the memor tht e cn connect? 8 its Address We nt to cover ll the cses rom to 7: The rnge rom to 7 is kin to ll possile cses ith 5 its. Thus, the ddress us sie is 5 its. We cn hndle 5 tes = KB o memor. : : : 7 A microprocessor cn onl hndle memor ddresses rom to. Wht is the ddress us sie? I ech memor position is one te ide, ht is the mimum sie (in tes) o the memor tht e cn connect? 8 its Address We nt to cover ll the cses rom to : : The rnge rom to is kin to ll possile cses : ith 4 its. Thus, the ddress us sie is 4 its. We cn hndle 4 tes = KB o memor. : A microprocessor hs 4-it ddress line. We connect memor chip to the microprocessor. The memor chip ddresses re ssigned the rnge 8 to B. Wht is the minimum numer o its required to represent ddresses in tht individul memor chip? I ech memor position is one te ide, ht is the memor sie (in tes)? B looking t the inr numers rom 8 to B, e notice tht the ddresses in tht rnge require 4 its. But ll those ddresses shre the sme irst to MSBs:. Thus, i e ere to use onl tht memor chip, e do not need those its, nd e onl need its. We cn hndle tes = 4MB o memor. Address : 8 : 8 : B A memor hs sie o 5KB, here ech memor content is 8-its ide. Ho mn its do e need to ddress the contents o this memor? Recll tht: 5KB = 9 tes. So e need 9 its to ddress the contents o this memor (ddress us sie = 9 its) In generl, or memor ith N ddress positions, the numer o its to ddress those positions is given : log N 8 its A -it ddress line in microprocessor ith n 8-it dt us hndles MB ( tes) o dt. We nt to connect our 5 KB memor chips to the microprocessor. Provide the ddress rnges tht ech memor device ill occup. Address : : : 8 its 5KB Ech memor chip cn hndle 5KB o memor. 5KB = 8 tes, requiring 8 its or its ddress. or -it ddress: e hve 5 hedeciml digits tht go rom to ( memor positions). We divide the memor positions into 4 contiguous groups, ech ith 8 memor positions. The igure shos the optiml o doing so: or ech group, the 8 LSBs o the memor ddresses correspond to the memor rnge o 5 KB memor. And the MSBs o the memor ddresses re the sme ithin group. or given memor ddress, e cn quickl determine hich group it elongs to looking t its MSBs. : 4 : 4 : 7 : 8 : 8 : B : C : C : 4 5KB 5KB 5KB Instructor: Dniel Llmocc
14 ECE-78: Computer Hrdre Design Winter 7 BINARY CODES We kno tht ith n its, e cn represent n numers, rom to n. This is commonl used rnge. Hoever, ith n its, e cn lso represent n numers in n rnge. Moreover, ith n its e cn represent n dierent smols. or emple, in 4-it color, ech color is represented 4 its, providing 4 distinct colors. Ech color is sid to hve inr code. N = 5 smols. With its, onl 4 smols cn e represented. With its, 8 smols cn e represented. Thus, the numer o its required is n = = log 5 = log 8. Note tht 8 is the poer o closest to N=5 tht is greter thn or equl to 5. In generl, i e hve N smols to represent, the numer o its required is given log N. or emple: Minimum numer o its to represent 7, colors: Numer o its: log 7 = 7 its. Minimum numer o its to represent numers eteen 5, nd 9,9: There re 9,9-5,+=497. Then, numer o its: log 497 = its. 7-it US-ASCII chrcter-encoding scheme: Ech chrcter is represented 7 its. Thus, the numer o chrcters tht cn e represented is given 7 = 8. Ech chrcter is sid to hve inr code. Unicode: This code cn represent more thn, chrcters nd ttempts to cover ll orld s scripts. A common chrcter encoding is UT-, hich uses pir o -it units: or most purposes, it unit suices ( = 55 chrcters): (Greek thet smol) = D (Greek cpitl letter Omeg): A9 Ж (Crillic cpitl letter he): 4 4 Instructor: Dniel Llmocc
15 ECE-78: Computer Hrdre Design Winter 7 BCD Code: In this coding scheme, deciml numers re represented in inr orm independentl encoding ech deciml digit in inr orm. Ech digit requires 4 its. Note tht onl vlues rom re 9 re represented here. This is ver useul code or input devices (e.g.: kepd). But it is not coding scheme suitle or rithmetic opertions. Also, notice tht the inr numers () to (5) re not used. Onl out o vlues re used to encode ech deciml digit. Emples: Deciml numer 47: This deciml numer cn e represented s inr numer:. In BCD ormt, this ould e: Deciml numer 58: This deciml numer cn e represented s inr numer:. In BCD ormt, the inr representtion ould e: The BCD code is not the sme s the inr numer! BCD deciml # There eist mn other inr codes (e.g., relective gr code, --- code, -out-o-5 code) to represent deciml numers. Usull, ech o them is tilored to n speciic ppliction. RELECTIVE GRAY CODE: Deciml g g Numer g g g g g g g n- n g n- g n- g g g n- g n- g g n- n- Appliction: Mesuring ngulr position ith 4-it RGC. 4 ems re emitted long n is. When light em psses (trnsprent spots, represented s hites), e get logicl, otherise. The RGC encoding mkes tht eteen res onl one it chnges, there reducing the possiilit o n incorrect reding (especill hen the em eteen djcent res). or emple: rom to onl one it lips. I e used to, to its ould lip: tht ould e prone to more errors, especill hen the ems re close to the line here the to res meet EMITTER RECEPTOR g g g g Angle g g g g 5 Instructor: Dniel Llmocc
16 N inputs ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-78: Computer Hrdre Design Winter 7 COMBINATIONAL CIRCUITS: MULTIPLEXERS (MUXS) This logic circuit selects one o mn input signls nd orrds the selected input to the output line. Boolen equtions or MUX-to-, MUX4-to-, MUX8-to-: s s s N- = s + s n = log N s c d s = s h s s s + 7 s s c + s s d s = s s s + s s s + s s s c + s s s d + Normll, multipleer hs N = n inputs, one output, nd selector ith n its. But, i multipleer hs N inputs, here N is not poer o, the numer o its o the selector is given : log N. MULTIPLEXERS WITH ENABLE An enle input provides us ith n etr level o control. I the multipleer is enled, the circuit orks. I the multipleer is not enled, no input is lloed into the output, nd the multipleer output ecomes (i the output is ctive-high) or (i the output i ctive-lo). The enle input cn e either ctive-high or ctive-lo: ACTIVE HIGH ENABLE E s s c d X X c d E s c d e g 4 5 s s s e + s s s + s s s g + s s s h ACTIVE LOW ENABLE E s s c d X X c d E s LOGIC CIRCUITS WITH MUXs Multipleers cn e used to implement Boolen unctions. The selector cn e thought s the input vriles, the input its re ied vlues tht re pssed onto the output ccording to the selector. This multipleor ith ied inputs implements logic unction. The unctionlit o this circuit is similr to tht o Look-Up Tle (LUT), hich is ROMlike circuit hose vlues re otined ddressing them. PGAs implement Boolen unctions using LUTs. In the emple, -to- LUT is n LUT ith inputs, i.e., it contins = 8 ddresses. s s s unction to e implemented 8-to- MUX s = -to- Look-up Tle s = Instructor: Dniel Llmocc
17 N inputs ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-78: Computer Hrdre Design Winter 7 BUS MULTIPLEXERS Usull e nt input signls to contin more thn one it. In the igure, ech input signl contins m its. This us multipleer cn e uilt m multipleers, ech tking cre o onl one it or ll the inputs. I() I() I(N-) m m m N- m n = log N s I() m- I() m- I(N-) m- N- n I() m- I() m- I(N-) m- N- n m- m- We hve N inputs nd thereore the selector hs n = log N its. Note tht the selector is the sme or ll the multipleers. I() I() I(N-) N- s n = log N DEMULTIPLEXERS A demultipleer perorms the opposite opertion o the multipleer. s s s c d c d s s Appliction: Time Division Multipleing (TDM) Digitl Telephon: (4 KH ndidth) 8 smples per second, 8 its per smple. This requires 4 its per second. In the igure, there re 4 telephone lines (4 signls). To tke dvntge o the communiction chnnel, onl one signl is trnsmitted t time. We cn do this since e re onl required to trnsmit smples o prticulr signl t the rte o 8 smples per second (or 5 us eteen smples, this is controlled counters). ( ( ( ( COUNTER /8 s COUNTER ( ( ( ( 7 Instructor: Dniel Llmocc
18 ECE-78: Computer Hrdre Design Winter 7 DECODERS Generll speking, decoders re circuits tht trnsorm the inputs into outputs olloing certin rule, provided tht the numer o outputs is greter thn or equl to the numer o inputs. Here, e discuss stndrd decoders or hich speciic input/output rule eists. These decoders hve n inputs nd n outputs. We sho emples o: -to-4 decoder, -to-8 decoder, nd -to-4 decoder ith enle. The output i is ctivted hen the deciml vlue o the input is equl to i. n DECODER n DECODER DECODER 8 E X X E DECODER ith 4 enle LOGIC CIRCUITS WITH DECODERS Decoders cn e used to implement Boolen unctions. Note tht ech output is ctull minterm. In the emple, minterm is ctivted hen =, here onl is. Also: 5 is ctivted hen =, 7 is ctivted hen =. unction to e implemented Appliction: Memor Decoding A -it ddress line in processor hndles up to = MB o ddresses, ech ddress contining one-te o inormtion. We nt to connect our 5KB memor chips to the processor. The pink-shded circuit: i) ddresses the memor chips, nd ii) enles onl one memor chip (vi CE: chip enle) hen the ddress lls in the corresponding rnge. Emple: i ddress = 5, onl memor chip is enled (CE=). I ddress = D, onl memor chip 4 is enled. 4 5KB 5KB 5KB 5KB B C Memor spce Memor devices ddress 5 KB 5 KB 5 KB 4 CE CE CE ddress(7..) ddress(8) ddress(9) 5 KB CE 8 Instructor: Dniel Llmocc
19 ECE-78: Computer Hrdre Design Winter 7 ENCODERS Generll speking, encoders re circuits tht trnsorm the inputs into outputs olloing certin rule, provided tht the numer o outputs is loer thn the numer o inputs. Here, e discuss stndrd encoders or hich speciic input/output rule eists. These encoders hve n inputs nd n outputs. The opertion is the opposite o stndrd decoder: i n input i is ctivted, then the inde i ppers t the output (in inr orm). n ENCODER n 4 ENCODER PRIORITY ENCODERS Stndrd encoder: e check hether speciic input is ctivted or the output to hve vlue. Wht hppens hen more thn one input is ctivted? We cn include n etr output tht is ctivted to indicte thn n unepected condition hs occurred. An interesting lterntive is to crete priorit encoder: i more thn one input is ctivted, then e onl p ttention to the input it o the highest order. or emple i =, then e onl p ttention to () = ; i =, e onl p ttention to () =. This results in the olloing truth tle or 4-to- priorit encoder: Wht i no input is ctivted? Here e run out o output its in to represent this cse. Thus, e include n etr output tht it is hen no input ctivted, nd otherise. CODE CONVERTERS PRIORITY ENCODER BCD TO 7-SEGMENT DECODER It is decoder ecuse the numer o outputs is greter thn the numer o inputs The truth tle considers the inputs nd outputs to e ctive-high. c d e g X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X e 4: g 9: : d c 7: : : : BINARY TO GRAY AND GRAY TO BINARY DECODERS It is decoder ecuse the numer o outputs is equl to the numer o inputs. or smll input sies, e cn use the truth tle method. But or lrge input sies (e.g.: 8 its), the olloing circuits re more eicient: g 7 g g 5 g 4 g g g g g 7 g g 5 g 4 g g g g Instructor: Dniel Llmocc
20 ECE-78: Computer Hrdre Design Winter 7 PARITY GENERATORS AND PARITY CHECKERS This is deined in the contet o n error detection sstem ith trnsmission nd reception units. Dt to e trnsmitted: X = n n Trnsmitted strem: Y = n n p, p: prit it Prit deinition: Even Prit: Y hs n even numer o s p e=, otherise Odd Prit: Y hs n odd numer o s p o=, otherise. This deinition is prolemtic since p is not knon. An lterntive deinition, sed on the ctul dt X is: Even Prit: X hs n odd numer o s p e =, otherise Odd Prit: X hs n even numer o s p o =, otherise. Prit Genertor: Circuit tht genertes the prit it sed on the ctul dt X Prit Checker: Circuit tht veriies hether the strem Y hs the correct prit. Emple: or the olloing error detection sstem, X =, n =. The prit genertor nd checker re ls o the sme prit: Even Prit Genertor: It genertes the prit it p e. Odd Prit Genertor: It genertes the prit it p o. Even Prit Checker: It veriies tht the received Odd Prit Checker: It veriies tht the received strem strem Y hs even prit. I so, rp e =, otherise rp e= Y hs odd prit. I so, rp o=, otherise rp o= (to signl (to signl n error) n error) p e =, rp e = p e p o =, rp o = p o Even/Odd Prit Genertor p e p o Trnsmitted its Even/Odd Prit Checker rp e rp o Even Prit Genertor Even Prit Checker Odd Prit Genertor p e p e rp e p o p e rp e p o p o Odd Prit Checker p o rp o p o rp o In generl or X = n n : p e = n n. p o = n n I the # o s in n n-it strem is odd, the n-it input XOR gte ill return, otherise. I the # o s in n n-it strem is even, the n-it input XNOR gte ill return, otherise. rp e = n n p e. We epect the numer o s in Y to e even, n XNOR ill detect this. Hoever, e nt rp e to e hen this does not hppen (to signl n error). Hence, e use n n + -it input XOR gte. rp o =. n n p o We epect the numer o s in to e odd, n XOR ill detect this. Hoever, e nt rp o to e hen this does not hppen (to signl n error). Hence, e use n n + -it input XNOR gte. Instructor: Dniel Llmocc
21 4 ords o its column 5 column column MSBs LUT4 LUT4 LUT4 LUT4 ILUT ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-78: Computer Hrdre Design Winter 7 LOOK-UP TABLES (LUTS) The LUT contents re hrdired in this circuit. A 4-to- LUT cn e seen s ROM ith ddresses, ech ddress holding one it. It cn lso e seen s multipleor ith ied inputs. This is ho PGAs implement logic unctions. A 4-to- LUT cn implement n 4-input logic unction. ILUT() ILUT() ILUT() ILUT() LUT 4 to OLUT 4-to- Look-up Tle (Red-onl memor ith positions) ILUT ddress dt() dt() dt() dt() dt(4) dt(5) 4 dt() OLUT dt(7) dt(8) dt(9) dt() dt() dt() dt() dt() dt() dt() dt() dt(4) dt(5) dt() dt(7) dt(8) dt(9) dt() dt() dt() dt() dt(4) dt(5) OLUT dt(4) dt(5) 4 ILUT LARGER LUTS A lrger LUT cn e uilt uilding circuit tht llos or more ROM positions. Eicient method: A lrger LUT cn lso e uilt comining LUTs ith multipleers s shon in the igure. We cn uild NI-to- LUT ith this method. The igure elo shos the cse or LUT -to- uilt out o to LUT 5-to-. Ech LUT 5- to- is uild out o to LUT 4-to-. NI NI- LUT NI to 4 LSBs ILUT(..) LUT NI to ILUT(4) MUX MUX LUT NI-to- ILUT(5) MUX LUT5-to- OLUT(i) LUT-to- We cn uild NI-to-NO LUT using NO NI-to- LUTs. This cn e seen s ROM ith NI ddresses, ech ddress holding NO its. The igure shos ho LUT -to- is uilt: LUT to its 5 5 LUT to 4 LUT to LUT -to- LUT -to- Instructor: Dniel Llmocc
22 ECE-78: Computer Hrdre Design Winter 7 PRACTICE EXERCISES. Implement the olloing unctions using i) decoders nd ii) multipleers: = X + Y + ZY = (X + Y + Z)(X + Y + Z ) (X, Y, Z) = (m, m, m ). = XY + YZ + XZ (X, Y, Z) = (M, M 4, M 7 ) = XYZ. Using ONLY 4-to- MUXs, implement n 8-to- MUX.. Implement -to- MUX using i) onl NAND gtes, nd ii) onl NOR gtes. 4. Veri tht the olloing circuit mde o out o ive -to-4 decoders ith enle represents 4-to- decoder ith enle. Tip: Crete the truth tle. E 4 E E E E E Using onl -to- MUXs, implement the XOR nd XNOR gtes.. Using onl 4-to- MUX, implement the olloing unctions. (X, Y, Z) = (m, m, m 5, m 7 ). (X, Y, Z) = (m, m, m 5 ) (X, Y, Z) = (m, m 5, m 7 ). (X, Y, Z) = (m 5, m 7 ). 7. Complete the olloing timing digrm: DECODER E E P P s s P Unknon P P P P PRIORITY ENCODER P Instructor: Dniel Llmocc
ELECTRICAL 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 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 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 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 informationIntroduction to Electrical & Electronic Engineering ENGG1203
Introduction to Electricl & Electronic Engineering ENGG23 2 nd Semester, 27-8 Dr. Hden Kwok-H So Deprtment of Electricl nd Electronic Engineering Astrction DIGITAL LOGIC 2 Digitl Astrction n Astrct ll
More informationControl with binary code. William Sandqvist
Control with binry code Dec Bin He Oct 218 10 11011010 2 DA 16 332 8 E 1.1c Deciml to Binäry binry weights: 1024 512 256 128 64 32 16 8 4 2 1 71 10? 2 E 1.1c Deciml to Binäry binry weights: 1024 512 256
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 informationDigital Control of Electric Drives
igitl Control o Electric rives Logic Circuits - Comintionl Boolen Alger, escription Form Czech Technicl University in Prgue Fculty o Electricl Engineering Ver.. J. Zdenek Logic Comintionl Circuit Logic
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 informationChapter 3 Single Random Variables and Probability Distributions (Part 2)
Chpter 3 Single Rndom Vriles nd Proilit Distriutions (Prt ) Contents Wht is Rndom Vrile? Proilit Distriution Functions Cumultive Distriution Function Proilit Densit Function Common Rndom Vriles nd their
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 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 informationBoolean Algebra. Boolean Algebras
Boolen Algebr Boolen Algebrs A Boolen lgebr is set B of vlues together with: - two binry opertions, commonly denoted by + nd, - unry opertion, usully denoted by or ~ or, - two elements usully clled zero
More informationLogic Optimization 1. Logic Optimization. Optimization vs. Tradeoff. Two-level Logic Optimization. ECE 474A/57A Computer-Aided Logic Design
ECE 474A/57A Computer-Aided Logic Design Logic Optimition Logic Optimition We now know how to build digitl circuits How cn we build better circuits? Let s consider two importnt design criteri Del the time
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 informationFachgebiet Rechnersysteme1. 1. Boolean Algebra. 1. Boolean Algebra. Verification Technology. Content. 1.1 Boolean algebra basics (recap)
. Boolen Alger Fchgeiet Rechnersysteme. Boolen Alger Veriiction Technology Content. Boolen lger sics (recp).2 Resoning out Boolen expressions . Boolen Alger 2 The prolem o logic veriiction: Show tht two
More informationARITHMETIC OPERATIONS. The real numbers have the following properties: a b c ab ac
REVIEW OF ALGEBRA Here we review the bsic rules nd procedures of lgebr tht you need to know in order to be successful in clculus. ARITHMETIC OPERATIONS The rel numbers hve the following properties: b b
More informationThe Trapezoidal Rule
_.qd // : PM Pge 9 SECTION. Numericl Integrtion 9 f Section. The re of the region cn e pproimted using four trpezoids. Figure. = f( ) f( ) n The re of the first trpezoid is f f n. Figure. = Numericl Integrtion
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 informationCHAPTER1: Digital Logic Circuits Combination Circuits
CS224: Computer Organization S.KHABET CHAPTER1: Digital Logic Circuits Combination Circuits 1 PRIMITIVE LOGIC GATES Each of our basic operations can be implemented in hardware using a primitive logic gate.
More informationLogarithms. Logarithm is another word for an index or power. POWER. 2 is the power to which the base 10 must be raised to give 100.
Logrithms. Logrithm is nother word for n inde or power. THIS IS A POWER STATEMENT BASE POWER FOR EXAMPLE : We lred know tht; = NUMBER 10² = 100 This is the POWER Sttement OR 2 is the power to which the
More informationLecture 2 Review on Digital Logic (Part 1)
Lecture 2 Review on Digital Logic (Part 1) Xuan Silvia Zhang Washington University in St. Louis http://classes.engineering.wustl.edu/ese461/ Grading Engagement 5% Review Quiz 10% Homework 10% Labs 40%
More informationHomework 3 Solutions
CS 341: Foundtions of Computer Science II Prof. Mrvin Nkym Homework 3 Solutions 1. Give NFAs with the specified numer of sttes recognizing ech of the following lnguges. In ll cses, the lphet is Σ = {,1}.
More informationSUMMER KNOWHOW STUDY AND LEARNING CENTRE
SUMMER KNOWHOW STUDY AND LEARNING CENTRE Indices & Logrithms 2 Contents Indices.2 Frctionl Indices.4 Logrithms 6 Exponentil equtions. Simplifying Surds 13 Opertions on Surds..16 Scientific Nottion..18
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 informationUnit 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 informationBases for Vector Spaces
Bses for Vector Spces 2-26-25 A set is independent if, roughly speking, there is no redundncy in the set: You cn t uild ny vector in the set s liner comintion of the others A set spns if you cn uild everything
More informationECE223. R eouven Elbaz Office room: DC3576
ECE223 R eouven Elz reouven@uwterloo.c Office room: DC3576 Outline Decoders Decoders with Enle VHDL Exmple Multiplexers Multiplexers with Enle VHDL Exmple From Decoder to Multiplexer 3-stte Gtes Multiplexers
More informationIntroduction to Algebra - Part 2
Alger Module A Introduction to Alger - Prt Copright This puliction The Northern Alert Institute of Technolog 00. All Rights Reserved. LAST REVISED Oct., 008 Introduction to Alger - Prt Sttement of Prerequisite
More informationChapter 6 Techniques of Integration
MA Techniques of Integrtion Asst.Prof.Dr.Suprnee Liswdi Chpter 6 Techniques of Integrtion Recll: Some importnt integrls tht we hve lernt so fr. Tle of Integrls n+ n d = + C n + e d = e + C ( n ) d = ln
More informationCombinational Logic. Mantıksal Tasarım BBM231. section instructor: Ufuk Çelikcan
Combinational Logic Mantıksal Tasarım BBM23 section instructor: Ufuk Çelikcan Classification. Combinational no memory outputs depends on only the present inputs expressed by Boolean functions 2. Sequential
More informationPROPERTIES OF AREAS In general, and for an irregular shape, the definition of the centroid at position ( x, y) is given by
PROPERTES OF RES Centroid The concept of the centroid is prol lred fmilir to ou For plne shpe with n ovious geometric centre, (rectngle, circle) the centroid is t the centre f n re hs n is of smmetr, the
More informationCalculus Module C21. Areas by Integration. Copyright This publication The Northern Alberta Institute of Technology All Rights Reserved.
Clculus Module C Ares Integrtion Copright This puliction The Northern Alert Institute of Technolog 7. All Rights Reserved. LAST REVISED Mrch, 9 Introduction to Ares Integrtion Sttement of Prerequisite
More informationPreview 11/1/2017. Greedy Algorithms. Coin Change. Coin Change. Coin Change. Coin Change. Greedy algorithms. Greedy Algorithms
Preview Greed Algorithms Greed Algorithms Coin Chnge Huffmn Code Greed lgorithms end to e simple nd strightforwrd. Are often used to solve optimiztion prolems. Alws mke the choice tht looks est t the moment,
More informationGenetic Programming. Outline. Evolutionary Strategies. Evolutionary strategies Genetic programming Summary
Outline Genetic Progrmming Evolutionry strtegies Genetic progrmming Summry Bsed on the mteril provided y Professor Michel Negnevitsky Evolutionry Strtegies An pproch simulting nturl evolution ws proposed
More informationSection 4: Integration ECO4112F 2011
Reding: Ching Chpter Section : Integrtion ECOF Note: These notes do not fully cover the mteril in Ching, ut re ment to supplement your reding in Ching. Thus fr the optimistion you hve covered hs een sttic
More informationSCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics
SCHOOL OF ENGINEERING & BUIL ENVIRONMEN Mthemtics An Introduction to Mtrices Definition of Mtri Size of Mtri Rows nd Columns of Mtri Mtri Addition Sclr Multipliction of Mtri Mtri Multipliction 7 rnspose
More information6.5 Plate Problems in Rectangular Coordinates
6.5 lte rolems in Rectngulr Coordintes In this section numer of importnt plte prolems ill e emined ug Crte coordintes. 6.5. Uniform ressure producing Bending in One irection Consider first the cse of plte
More informationELCT201: DIGITAL LOGIC DESIGN
ELCT2: DIGITAL LOGIC DESIGN Dr. Eng. Haitham Omran, haitham.omran@guc.edu.eg Dr. Eng. Wassim Alexan, wassim.joseph@guc.edu.eg Lecture 4 Following the slides of Dr. Ahmed H. Madian محرم 439 ه Winter 28
More informationGood Review book ( ) ( ) ( )
7/31/2011 34 Boolen (Switching) Algebr Review Good Review book BeBop to the Boolen Boogie: An Unconventionl Guide to Electronics, 2 nd ed. by Clive Mxwell Hightext Publictions Inc. from Amzon.com for pprox.
More informationMC9211 Computer Organization
MC92 Computer Organization Unit : Digital Fundamentals Lesson2 : Boolean Algebra and Simplification (KSB) (MCA) (29-2/ODD) (29 - / A&B) Coverage Lesson2 Introduces the basic postulates of Boolean Algebra
More informationNAME: MR. WAIN FUNCTIONS
NAME: M. WAIN FUNCTIONS evision o Solving Polnomil Equtions i one term in Emples Solve: 7 7 7 0 0 7 b.9 c 7 7 7 7 ii more thn one term in Method: Get the right hnd side to equl zero = 0 Eliminte ll denomintors
More informationLecture 6. Notes. Notes. Notes. Representations Z A B and A B R. BTE Electronics Fundamentals August Bern University of Applied Sciences
Lecture 6 epresenttions epresenttions TE52 - Electronics Fundmentls ugust 24 ern University of pplied ciences ev. c2d5c88 6. Integers () sign-nd-mgnitude representtion The set of integers contins the Nturl
More information4.6 Numerical Integration
.6 Numericl Integrtion 5.6 Numericl Integrtion Approimte definite integrl using the Trpezoidl Rule. Approimte definite integrl using Simpson s Rule. Anlze the pproimte errors in the Trpezoidl Rule nd Simpson
More information2.4 Linear Inequalities and Interval Notation
.4 Liner Inequlities nd Intervl Nottion We wnt to solve equtions tht hve n inequlity symol insted of n equl sign. There re four inequlity symols tht we will look t: Less thn , Less thn or
More information8 factors of x. For our second example, let s raise a power to a power:
CH 5 THE FIVE LAWS OF EXPONENTS EXPONENTS WITH VARIABLES It s no time for chnge in tctics, in order to give us deeper understnding of eponents. For ech of the folloing five emples, e ill stretch nd squish,
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 informationLinear Systems with Constant Coefficients
Liner Systems with Constnt Coefficients 4-3-05 Here is system of n differentil equtions in n unknowns: x x + + n x n, x x + + n x n, x n n x + + nn x n This is constnt coefficient liner homogeneous system
More informationCS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata
CS103B ndout 18 Winter 2007 Ferury 28, 2007 Finite Automt Initil text y Mggie Johnson. Introduction Severl childrens gmes fit the following description: Pieces re set up on plying ord; dice re thrown or
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 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 informationAlgebra Readiness PLACEMENT 1 Fraction Basics 2 Percent Basics 3. Algebra Basics 9. CRS Algebra 1
Algebr Rediness PLACEMENT Frction Bsics Percent Bsics Algebr Bsics CRS Algebr CRS - Algebr Comprehensive Pre-Post Assessment CRS - Algebr Comprehensive Midterm Assessment Algebr Bsics CRS - Algebr Quik-Piks
More informationHomework Solution - Set 5 Due: Friday 10/03/08
CE 96 Introduction to the Theory of Computtion ll 2008 Homework olution - et 5 Due: ridy 10/0/08 1. Textook, Pge 86, Exercise 1.21. () 1 2 Add new strt stte nd finl stte. Mke originl finl stte non-finl.
More informationLOGIC GATES. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.
Basic Eperiment and Design of Electronics LOGIC GATES Ho Kyung Kim, Ph.D. hokyung@pusan.ac.kr School of Mechanical Engineering Pusan National University Outline Boolean algebra Logic gates Karnaugh maps
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 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 informationEC-121 Digital Logic Design
EC-121 Digital Logic Design Lecture 2 [Updated on 02-04-18] Boolean Algebra and Logic Gates Dr Hashim Ali Spring 2018 Department of Computer Science and Engineering HITEC University Taxila!1 Overview What
More informationTotal Time = 90 Minutes, Total Marks = 100. Total /10 /25 /20 /10 /15 /20
University of Waterloo Department of Electrical & Computer Engineering E&CE 223 Digital Circuits and Systems Midterm Examination Instructor: M. Sachdev October 30th, 2006 Total Time = 90 Minutes, Total
More informationContinuous Random Variable X:
Continuous Rndom Vrile : The continuous rndom vrile hs its vlues in n intervl, nd it hs proility distriution unction or proility density unction p.d. stisies:, 0 & d Which does men tht the totl re under
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 informationNetwork Analysis and Synthesis. Chapter 5 Two port networks
Network Anlsis nd Snthesis hpter 5 Two port networks . ntroduction A one port network is completel specified when the voltge current reltionship t the terminls of the port is given. A generl two port on
More informationChapter 10: Symmetrical Components and Unbalanced Faults, Part II
Chpter : Symmetricl Components nd Unblnced Fults, Prt.4 Sequence Networks o Loded Genertor n the igure to the right is genertor supplying threephse lod with neutrl connected through impednce n to ground.
More information8.6 The Hyperbola. and F 2. is a constant. P F 2. P =k The two fixed points, F 1. , are called the foci of the hyperbola. The line segments F 1
8. The Hperol Some ships nvigte using rdio nvigtion sstem clled LORAN, which is n cronm for LOng RAnge Nvigtion. A ship receives rdio signls from pirs of trnsmitting sttions tht send signls t the sme time.
More informationCoalgebra, Lecture 15: Equations for Deterministic Automata
Colger, Lecture 15: Equtions for Deterministic Automt Julin Slmnc (nd Jurrin Rot) Decemer 19, 2016 In this lecture, we will study the concept of equtions for deterministic utomt. The notes re self contined
More information0.1 THE REAL NUMBER LINE AND ORDER
6000_000.qd //0 :6 AM Pge 0-0- CHAPTER 0 A Preclculus Review 0. THE REAL NUMBER LINE AND ORDER Represent, clssify, nd order rel numers. Use inequlities to represent sets of rel numers. Solve inequlities.
More informationOperations with Matrices
Section. Equlit of Mtrices Opertions with Mtrices There re three ws to represent mtri.. A mtri cn be denoted b n uppercse letter, such s A, B, or C.. A mtri cn be denoted b representtive element enclosed
More informationChapter 2: Combinational Logic Design. Instructor: Dr. Hyunyoung Lee. Based on the slides by Frank Vahid
Chpter 2: Comintionl Logic Design Instructor: Dr. Hunoung Lee Bsed on the slides rnk Vhid Copright 2 rnk Vhid Instructors of courses requiring Vhid's Digitl Design tetook (pulished John Wile nd Sons) hve
More informationECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part A Combinational Logic Building Blocks
ECE 545 Digital System Design with VHDL Lecture Digital Logic Refresher Part A Combinational Logic Building Blocks Lecture Roadmap Combinational Logic Basic Logic Review Basic Gates De Morgan s Law Combinational
More informationTotal Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18
University of Waterloo Department of Electrical & Computer Engineering E&CE 223 Digital Circuits and Systems Midterm Examination Instructor: M. Sachdev October 23rd, 2007 Total Time = 90 Minutes, Total
More informationQuantum Nonlocality Pt. 2: No-Signaling and Local Hidden Variables May 1, / 16
Quntum Nonloclity Pt. 2: No-Signling nd Locl Hidden Vriles My 1, 2018 Quntum Nonloclity Pt. 2: No-Signling nd Locl Hidden Vriles My 1, 2018 1 / 16 Non-Signling Boxes The primry lesson from lst lecture
More informationT 1 T 2 T 3 T 4 They may be illustrated by triangular patterns of numbers (hence their name) as shown:
TOPIC 3: VISUAL EXPLANATIONS (PROOFS) (Pge references to Proof re to Bndll, P R et l, Proof in Mthemtics, KMEP, 2002). 3. The tringulr numbers form the sequence, 3, 6, 0,, 2,... T T 2 T 3 T 4 The m be
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 informationSeptember 13 Homework Solutions
College of Engineering nd Computer Science Mechnicl Engineering Deprtment Mechnicl Engineering 5A Seminr in Engineering Anlysis Fll Ticket: 5966 Instructor: Lrry Cretto Septemer Homework Solutions. Are
More information1 2 : 4 5. Why Digital Systems? Lesson 1: Introduction to Digital Logic Design. Numbering systems. Sample Problems 1 5 min. Lesson 1-b: Logic Gates
Leon : Introduction to Digitl Logic Deign Computer ided Digitl Deign EE 39 meet Chvn Fll 29 Why Digitl Sytem? ccurte depending on numer of digit ued CD Muic i digitl Vinyl Record were nlog DVD Video nd
More informationDIGITAL LOGIC CIRCUITS
DIGITAL LOGIC CIRCUITS Introduction Logic Gates Boolean Algebra Map Specification Combinational Circuits Flip-Flops Sequential Circuits Memor Components Integrated Circuits BASIC LOGIC BLOCK - GATE - Logic
More informationState space systems analysis (continued) Stability. A. Definitions A system is said to be Asymptotically Stable (AS) when it satisfies
Stte spce systems nlysis (continued) Stbility A. Definitions A system is sid to be Asymptoticlly Stble (AS) when it stisfies ut () = 0, t > 0 lim xt () 0. t A system is AS if nd only if the impulse response
More informationThomas Whitham Sixth Form
Thoms Whithm Sith Form Pure Mthemtics Unit C Alger Trigonometry Geometry Clculus Vectors Trigonometry Compound ngle formule sin sin cos cos Pge A B sin Acos B cos Asin B A B sin Acos B cos Asin B A B cos
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 informationMidterm Examination # 1 Wednesday, February 25, Duration of examination: 75 minutes
Page 1 of 10 School of Computer Science 60-265-01 Computer Architecture and Digital Design Winter 2009 Semester Midterm Examination # 1 Wednesday, February 25, 2009 Student Name: First Name Family Name
More informationLet's start with an example:
Finite Automt Let's strt with n exmple: Here you see leled circles tht re sttes, nd leled rrows tht re trnsitions. One of the sttes is mrked "strt". One of the sttes hs doule circle; this is terminl stte
More informationDHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN
DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN UNIT I : BOOLEAN ALGEBRA AND LOGIC GATES PART - A (2 MARKS) Number
More informationCOMPUTER SCIENCE TRIPOS
CST.2011.2.1 COMPUTER SCIENCE TRIPOS Prt IA Tuesdy 7 June 2011 1.30 to 4.30 COMPUTER SCIENCE Pper 2 Answer one question from ech of Sections A, B nd C, nd two questions from Section D. Submit the nswers
More informationQuotient Rule: am a n = am n (a 0) Negative Exponents: a n = 1 (a 0) an Power Rules: (a m ) n = a m n (ab) m = a m b m
Formuls nd Concepts MAT 099: Intermedite Algebr repring for Tests: The formuls nd concepts here m not be inclusive. You should first tke our prctice test with no notes or help to see wht mteril ou re comfortble
More informationand that at t = 0 the object is at position 5. Find the position of the object at t = 2.
7.2 The Fundmentl Theorem of Clculus 49 re mny, mny problems tht pper much different on the surfce but tht turn out to be the sme s these problems, in the sense tht when we try to pproimte solutions we
More informationClass Website:
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #5 Instructor: Andrew B. Kahng (lecture) Email: abk@ece.ucsd.edu Telephone: 858-822-4884 office, 858-353-0550 cell Office:
More information1B40 Practical Skills
B40 Prcticl Skills Comining uncertinties from severl quntities error propgtion We usully encounter situtions where the result of n experiment is given in terms of two (or more) quntities. We then need
More informationELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700: Digital Logic Design Winter Notes - Unit 2
ECE-7: Digital Logic Design Winter 8 Notes - Unit OPTIMIZED IMPLEMENTATION OF LOGIC FUNCTIONS BASIC TECHNIQUES: We can alas minimie logic unctions using the Boolean theorems. Hoever, more poerul methods
More informationNumber System conversions
Number System conversions Number Systems The system used to count discrete units is called number system. There are four systems of arithmetic which are often used in digital electronics. Decimal Number
More informationA-Level Mathematics Transition Task (compulsory for all maths students and all further maths student)
A-Level Mthemtics Trnsition Tsk (compulsory for ll mths students nd ll further mths student) Due: st Lesson of the yer. Length: - hours work (depending on prior knowledge) This trnsition tsk provides revision
More informationUNIVERSITI TENAGA NASIONAL. College of Information Technology
UNIVERSITI TENAGA NASIONAL College of Information Technology BACHELOR OF COMPUTER SCIENCE (HONS.) FINAL EXAMINATION SEMESTER 2 2012/2013 DIGITAL SYSTEMS DESIGN (CSNB163) January 2013 Time allowed: 3 hours
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 informationLogic Design Combinational Circuits. Digital Computer Design
Logic Design Combinational Circuits Digital Computer Design Topics Combinational Logic Karnaugh Maps Combinational uilding locks Timing 2 Logic Circuit logic circuit is composed of: Inputs Outputs Functional
More informationLecture Solution of a System of Linear Equation
ChE Lecture Notes, Dept. of Chemicl Engineering, Univ. of TN, Knoville - D. Keffer, 5/9/98 (updted /) Lecture 8- - Solution of System of Liner Eqution 8. Why is it importnt to e le to solve system of liner
More informationBefore we can begin Ch. 3 on Radicals, we need to be familiar with perfect squares, cubes, etc. Try and do as many as you can without a calculator!!!
Nme: Algebr II Honors Pre-Chpter Homework Before we cn begin Ch on Rdicls, we need to be fmilir with perfect squres, cubes, etc Try nd do s mny s you cn without clcultor!!! n The nth root of n n Be ble
More informationDuality # Second iteration for HW problem. Recall our LP example problem we have been working on, in equality form, is given below.
Dulity #. Second itertion for HW problem Recll our LP emple problem we hve been working on, in equlity form, is given below.,,,, 8 m F which, when written in slightly different form, is 8 F Recll tht we
More informationChapter 2 Boolean Algebra and Logic Gates
Chapter 2 Boolean Algebra and Logic Gates The most common postulates used to formulate various algebraic structures are: 1. Closure. N={1,2,3,4 }, for any a,b N we obtain a unique c N by the operation
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 informationChapter 6 Continuous Random Variables and Distributions
Chpter 6 Continuous Rndom Vriles nd Distriutions Mny economic nd usiness mesures such s sles investment consumption nd cost cn hve the continuous numericl vlues so tht they cn not e represented y discrete
More information( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function
Question Paper Digital Electronics (EE-204-F) MDU Examination May 2015 1. (a) represent (32)10 in (i) BCD 8421 code (ii) Excess-3 code (iii) ASCII code (b) Design half adder using only NAND gates. ( c)
More informationare fractions which may or may not be reduced to lowest terms, the mediant of ( a
GENERATING STERN BROCOT TYPE RATIONAL NUMBERS WITH MEDIANTS HAROLD REITER AND ARTHUR HOLSHOUSER Abstrct. The Stern Brocot tree is method of generting or orgnizing ll frctions in the intervl (0, 1 b strting
More information