1pll$jffi s.':,'ece.uprm.edu/~jrosado/oldexams/4076/spring2009/hambley_3.pdf · zg pue...

8
390 Chapter 7 Logic Circuits ,,,,|1Pll$jffi s.':,' Section 7.1: Basic Logic Circuit Concepts *P7.1. State three advantages of digital technology compared with analog technology. P7.2. Define theseterms: bit, byte, andnibble. P7.3. Explain the difference betweenpositive logic andnegative Iogic. P7.4. What are noisemargins? Why are they impor- tant? P7.5. How is serial transmission of a digital word differentfrom parallel transmission? Section7.2: Representationof Numerical Data in Binary Form P7.6. Convert the following binary numbers to dec- imal form: a.* 101.101; b. 0111.11; c. 1010.01; d. 111.111; e. 1000.0101; f.* 10101.011. P7.7. Express the following decimalnumbers in bi- nary form and in binary-coded-decimal form: a. 17 ; b. 8.5; c.* 9.7 5; d. 73.03125; e. 67.37 5. P7.8. How many bits per word are neededto rep- resent the decimal integers 0 through 100?0 through 1000? 0 through 106? P7.9.Add these pairs of binary numbers: a.* 1101.11 and 101.111; b. 1011 and 101: c. 10001.111 and 0101.001. P7.10.Find the result (in BCD format) of adding the BCD numbers:a. * 10010011.0101 and 00110111.0001;b. 01011000.1000 and 10001001.1001. P7.lL Express the following decimalnumbers in bi- nary, octal, and hexadecimal forms: a. I73: b.299.5; c.735.75; d.. 313.0625: e.112.25. P7.12. Write each of the following decimalnumbers as an eight-bitsigned two's-complement number: a. 19; b. -19; c.* 75; d.* -87; e. -95; f.99. P7.13.Express each of the following hexadecimal numbersin binary, octal, and decimalforms: a. FA.F16 ; b. 2A.16;' c.777 .7 6. P7.14. Express each of the following octal numbers in binary, hexadecimal, and decimal forms: a.777.7 s', b. 123.5s; c.24.4s. P7.15. What number follows 777 when countine in a. decimal; b. octal; c. hexadecimal? P7.16. What range of decimal integers can be repre- sented by a. three-bit binary numbers; b. three- digit octal numbers; c. three-digit hexadecimal numbers? "P7.17. Starting with the three-bit Gray code listed in Figure 7.9, construct a four-bit Gray code. For what applications is a Gray code advantageous? whv? P7.18. Convert the following numbers to decimal form: a. x FA5.616; b.* 725.3s; c. 3F4.816; d.73.25s; e. FF.F016. P7.19. Find the one's and two's complements of the binary numbers: a. * 11101000; b. 00000000; c. 10101010; d. 11111100; e. 11000000. P7.20. Perform these operations by using 8-bit signed two's-complement arithmetic: a. I71p * 1516; b. 17rc - 15ro; c.* 331s -37rc; d. 15ro - 63rc; e.49rc - 44n. P7.21. Describe how to test whether overfiow or un- derflow has occurred in adding signed two's- complement numbers. Section 7.3: Combinatorial Logic Circuits P7.22. What is a truth table? *P7.23. State De Morgan's laws. P7.24. Draw the circuit symbol and list the truth table for the following: an AND gate, an OR gate. an inverter, a NAND gate, a NOR gate, and an XOR gate. Assume two inputs for each gate (except the inverter). P7.25. Describe a method for proving the validity of a Boolean algebra identity. Denotes that answers can be found on the OrCAD CD and on the website www. myengi neeri ng1 ab. com

Upload: others

Post on 23-May-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1Pll$jffi s.':,'ece.uprm.edu/~jrosado/oldexams/4076/spring2009/Hambley_3.pdf · zg pue 'raqurnu puoces aql Jo l1q u8rs eq1 s1 z5 'reqrunu lsru eql ;o 1rq u8rs eql sr 15 'pappB uaeq

390 Chapter 7 Logic Circuits

,,,,|1Pll$jffi s.':,'Section 7.1: Basic Logic Circuit Concepts*P7.1. State three advantages of digital technology

compared with analog technology.P7.2. Define these terms: bit, byte, and nibble.P7.3. Explain the difference between positive logic

and negat ive Iogic.P7.4. What are noise margins? Why are they impor-

tant?P7.5. How is serial transmission of a digital word

different from parallel transmission?

Section 7.2: Representation of Numerical Datain Binary Form

P7.6. Convert the following binary numbers to dec-imal form: a.* 101.101; b. 0111.11; c. 1010.01;d. 111.111; e. 1000.0101; f .* 10101.011.

P7.7. Express the following decimal numbers in bi-nary form and in binary-coded-decimal form:a. 17 ; b. 8.5; c.* 9.7 5; d. 73.03125; e. 67.37 5.

P7.8. How many bits per word are needed to rep-resent the decimal integers 0 through 100? 0through 1000? 0 through 106?

P7.9. Add these pairs of binary numbers: a.* 1101.11and 101.111; b. 1011 and 101: c. 10001.111 and0101.001.

P7.10. Find the result (in BCD format) of addingthe BCD numbers: a. * 10010011.0101 and00110111.0001; b. 01011000.1000 and10001001.1001.

P7.lL Express the following decimal numbers in bi-nary, octal, and hexadecimal forms: a. I73:b.299.5; c.735.75; d.. 313.0625: e.112.25.

P7.12. Write each of the following decimal numbers asan eight-bit signed two's-complement number:a. 19; b. -19; c.* 75; d.* -87; e. -95; f .99.

P7.13. Express each of the following hexadecimalnumbers in binary, octal, and decimal forms:a. FA.F16 ; b. 2A.16;' c.777 .7 6.

P7.14. Express each of the following octal numbersin binary, hexadecimal, and decimal forms:a.777.7 s ' , b . 123.5s; c .24.4s.

P7.15. What number follows 777 when countine ina. decimal; b. octal; c. hexadecimal?

P7.16. What range of decimal integers can be repre-sented by a. three-bit binary numbers; b. three-digit octal numbers; c. three-digit hexadecimalnumbers?

"P7.17. Starting with the three-bit Gray code listed inFigure 7.9, construct a four-bit Gray code. Forwhat applications is a Gray code advantageous?whv?

P7.18. Convert the following numbers to decimalform: a. x FA5.616; b.* 725.3s; c. 3F4.816;d.73.25s; e. FF.F016.

P7.19. Find the one's and two's complements of thebinary numbers: a. * 11101000; b. 00000000;c. 10101010; d. 11111100; e. 11000000.

P7.20. Perform these operations by using 8-bit signedtwo's-complement arithmetic: a. I71p * 1516;b. 17rc - 15ro; c .* 331s -37rc; d. 15ro - 63rc;e.49rc - 44n.

P7.21. Describe how to test whether overfiow or un-derflow has occurred in adding signed two's-complement numbers.

Section 7.3: Combinatorial Logic Circuits

P7.22. What is a truth table?*P7.23. State De Morgan's laws.P7.24. Draw the circuit symbol and list the truth table

for the following: an AND gate, an OR gate.an inverter, a NAND gate, a NOR gate, andan XOR gate. Assume two inputs for each gate(except the inverter).

P7.25. Describe a method for proving the validity of aBoolean algebra identity.

Denotes that answers can be found on the OrCAD CD and on the website www. myengi neeri ng1 ab. com

Page 2: 1Pll$jffi s.':,'ece.uprm.edu/~jrosado/oldexams/4076/spring2009/Hambley_3.pdf · zg pue 'raqurnu puoces aql Jo l1q u8rs eq1 s1 z5 'reqrunu lsru eql ;o 1rq u8rs eql sr 15 'pappB uaeq

'g€'td ernSrdur u,roqs lrncJrc eql roJ gt.rd uelqord leedeu

se.ld ernEld

\-- 1 or8ol

.lrnJJrJ eqlroJ alqel qlnrl eql lcnrlsuo] .elqerre^ lndlno3q1 roJ uorsseJdxe crSol B elrJ^\ .oraz sr a8ello^lndlno eql Jr ̂\ol sr elqerJ€̂ lndlno eql pue .A gsr a8ello^ lndlno ogl Jr q8q sr alqerre^ lndlnoeql 'pesolc sr €r pelaqel qJlr^\s aql ,^\ol sr BrJI pue 'uodo sr g peleqel rlrlr,rs eql .q8rq srg ;r ',{1esra,luo3-.uedo sr y qJlrl\s .l\ol s} yJI pue 'pesolc sr y qclr1r\s .q8lq q y JI .leqlqJns salqerJun c6o1 ,(q pegorluoJ eJu seq31r^\seqJ'St'td arn8rg ur u/r\oqs llnJrro eqt reprsuoJ .g€.1,d

eluercwnssr e1u3;o edfl reqlo 1uq16 ;cr8o1 lurroluurqruoJtol ruatcgffns eq ot prBS sele8 qpyp eru ,(q6 .nE LiI

JSV+JgV+J&V:I *'ao + 8 +V)o+ g + ilo + s + il : .{ *.P

6+g)v+)sv:J.r0+O*ilV:.{'Q

o(v+J)+sv:.,t.E:suorsserdxe eseql

Jo qcue ol s^\el s.ue8roprq eq Bul{1dde ,{q esre,rerrl pue slIO ^q suorleredo CINV eql eceyda11 .et LiI(J + g + flo + s +v)o + tr +v) : JI *.r

JgV + JgV + JgV : lI 'q

Jg+V:1'B:sJeue^Ur

pue 'se1e3 gg 'se1e8 q51y Sursn suorsserdxa3urmo11o; er{l Jo r{Jea ezrleat ol lrnJJrc e ̂auJC .ZE LA

L6tsurelqold

V:)gV+)gV+)gV+){IV

.{1r1uepr aql a,rord ot elqel qtnrl e esn .I€.ld

g+v:gv+v

.{1r1uepr eq1 e,r,ord ol elqel qlnrt e esn .ge.td

g:(gv+v)@+v)

flrluepr eql e,rord ot elqul qlnrt e osn .6Z.Lil

)s+v:(J+v)@+v),{1r1uepr eqt e,rord ol elqel qtnrl B esn .gz.ld_

1,9'44 a.rn8;g(c)

'LZ'Lderndr1 ur u,roqs slrnJrrc cr3ol eql Jo qJea;o lnd1no oql JoJ uorssardxe ueeloog e alrJl\ .LZ.L1I

og+v):ct -eJ+gV+V:(I'P

(r+A)+xht:z.tAJ+JgV+gV:7 *'q

8V+JSV:CI'e:suorsserdxa

ueeloog eseql Jo qcee roJ elqBl qlnrl aql elrJl[ .gz.Lil

d

va,

Page 3: 1Pll$jffi s.':,'ece.uprm.edu/~jrosado/oldexams/4076/spring2009/Hambley_3.pdf · zg pue 'raqurnu puoces aql Jo l1q u8rs eq1 s1 z5 'reqrunu lsru eql ;o 1rq u8rs eql sr 15 'pappB uaeq

392 Chapter 7 Logic Circuits

Figure P7.36

P7.37. Sometimes "bubbles" are used to indicate in-verters on the input lines to a gate, as illustratedin Figure P7.37. What are the equivalent gatesfor those of Figure P7 '37? Justify your answers.

a ----ft s_a + aB -----4-/

D-----ff r=DFr ---4-)-

(b )

Figure P7.37

Section 7.4: Synthesis of Logic Circuits

P7.38. Using the sum-of-products approach, describethe synthesis of a logic expression from atruth table. Repeat for the product-of-sumsapproach.Give an example of a decoder.Consider TableP'l .40. A, B, and C representlogic-variable input signals; F through K are

Table P7.40

B C

(a)

outputs. Using the product-of-sums approach,write a Boolean expression for F in terms ofthe inputs. Repeat by using the sum-of-productsapproach.

P7.4\. Repeat Problem P7.40 for G 'P7.42. Repeat Problem P7.40for H .P7,43. Repeat Problem P7.40for I .P7.4. Repeat Problem P7.40 for J .P7.45. Repeat Problem P7.40for K.P7.6. Show how to implement the sum-of-products

circuit shown in Figure P7.46 by using onlyNAND gates.

A

B

P7.47. Show how tocircuit shownNOR gates.

Figure P7.46

implement the product-of-sumsin Figure P7.47 by using onlY

(A+B) (C+D)

P7.48.

Figure P7.47

Design a logic circuit to control electrical powerto the engine ignition of a speed boat. Logic out-put 1 is to become high if ignition power is to beapplied and is to remain low otherwise. Gaso-line fumes in the engine compartment presenta serious hazard of explosion. A sensor pro-vides a logic input F that is high if fumes arepresent. Ignition power should not be appliedif fumes are present. To help prevent accidents,ignition power should not be applied while theoutdrive is in gear. Logic signal G is high ifthe outdrive is in gear and is low otherwise.

P7.39.*P7.40.

B

L

D

KHG

000011I

11

0011001T

0,|0T0T0I

10100101

10010000

111011I1.

11000011

0 00 10 01 10 00 11 11 1

Page 4: 1Pll$jffi s.':,'ece.uprm.edu/~jrosado/oldexams/4076/spring2009/Hambley_3.pdf · zg pue 'raqurnu puoces aql Jo l1q u8rs eq1 s1 z5 'reqrunu lsru eql ;o 1rq u8rs eql sr 15 'pappB uaeq

'selets

ION Pue'UO 'CINY Sursn 'uorlcunJ 3ql ezlle

-aJ pup uorssardxe SOd runurulu aql pulg'J'saleB

ION pue'UO'61NV Sursn'uorlcunJ aql ezrlv-aJ puB uorssardxe dOS runururu aql pul.il .q

Jg+JSV+JSV+JgV:Q

uorlcunJrr3o1 aql ro1 deu q8nuure;tr u lcnrlsuoJ .v .gg.Li1

'uorsserdxe SOd unrururu eql pul.{ .J

'uorsserdxe dOS runtururru oql pul.{ .q

'C roJ deru q8nuum) eql trnJlsuoJ .u

(e.r.r .t\wu: a,(q ua,rr8 sr lrnJJrJ eql 1o 1nd1no

eql'J pue'g'y slndur seq lrnrrrc cr3o1 y.gg.ld'suorsserd

-xe SOd runrururru pooS fpnba olrrl purC .J

'uorsserdxe dOS runtururu eql pul.{ .q

'O roJ deru q8nuure) eql lcnJlsuoJ .B

ft't'uut 3 : o

,(q ue,u8 sr lrnJJrJ eql;o lnd1noeqJ'J pue'g'y s1ndur seq lrnrrrr cr3o1 y .tg.Li1

'uorsserdxe SOd runururu eql

pulC'J'uorsserdxe dOS runtururu eql pulC.q

QJgv+oJsv+oJsv+

A)gV+OJSV+CIJgV:..1

uorlcunJ

c6o1 eql ro; deru q8neurey B lcnrlsuo3 'B .!S.rd*

sllnrrlJ rpol yo uollu4rulull J :S.l uolpes

'sa1e8 ;951 pue 'UO

'CINV Sursn'g sp1er,{ leql lrnoJrc E 1rrer6[.J'!r

roJ stuJelultu;o pesoduroc uorsserdxe dOS ue

pul.:I 'q 'elq!l qlnrl eql alrrlA 'B '^\ol ureruer

ol sl g 'esr^AJoqlo :peJJnJco seq a,ouJepun Jo

,{,lrogrelo raqlre Jr qAH sl wql g 1nd1no qlr.r

lrncJrc c6o1 e luelrr e,tr luqt esoddns 'plol eqt

;o 1rq u8rs eql sl zg pue 'raqurnu puoces aql Jol1q u8rs eq1 s1 z5 'reqrunu

lsru eql ;o 1rq u8rs

eql sr 15 'pappB uaeq e^Bq uJoJ luerusldruoc-s,o,tr1 pau8rs ur sreqrunu o^\l teql esoddns .ZS.td*

E6E suralqord

'g lueru8as ro; leede11 .q 'uo

eq 01 sl{eldsrp eql Jo y lueurSas;r ,{1uo q8rq

sI leql y 1nd1no 3ur.leq sruJelxeru yo lcnpordeql uo pesuq ]rnJrrJ cr3o1 e pul.{'B 'quoJ os pue'I : ?g sr lrq puocas o{l 'Q : 8g sl llq lsorugeleql qclql( q III0 proa er{t [q CIA ur palueser-der sr L Jequnu 1erurcep eql 'eldruexa rod 'Ig

pue'zg 'rg '89 solqeuul cr3o1 eql ,(q pelueser-der aru elep (IJg eql luql esoddng '699a?ed

uo gZ'L arnSlg qlr^\ uorlJunluor ur pessnJsrp

JepoJep lueru8es-uerres-ol-ClJg eql JeprsuoJ .IS.rd

('UO ot uorleredo q51y

eql ue^uoo ol s^\el s,ue8rotr41 eq ,(1dde 'ueqa

'uorssardxe sod eql elrrlr\ pue elqel qlnJl aql

lsr-I'Jeuelur ue urelqo o1 reqleSol peJr^a oq uuc

ggSi lndur-o.rt B Jo slndur aqa:rytg)'g pue

y 'slndur o^\l JoJ uorlJunJ UOX aql luetueldrurol,{em e puu 01 sele8 gg1r1 lndur-o,r.l.{po esn .gg.td

('CttV o1uorleredo 116eql ue^uoo ol slael s,ue8roy4l eq ,(1dde 'ueqa

'uotsserdxe dOS eql elrr,!\ pue alqul qlnrl eql

lsrl 'JelJo^u uu urelqo o1 ;eq1e8ol peJr.r eq

uer CNVN lndur-oml u;o slndur eqa:p1g)'g

pue y 'slndur o,trl roJ uorlrunJ dOX oql lueru-aldrur o1fe.r e puu ot sale8 qgyp fpo esn .ffi.Lil-

'sJegalur pue 'se1e8 g6 'se1e8

CINV esn 'sJeuelur pue sale8 Jo Jeqrunu lsealeql Sur.teq lrncrrr cr3oy e urelqo o1 (c) pue (q)

sped;o suorsserdxe eql elepdruetu ol ,trl .p'1 roJ uorsserdxe ueeloog e eJrJ,tr 'qceordde

sruns-Jo-lcnpord eql 3urs61 'e '7 ro1 uorsserdxe

uualoog p elrJnr'qceordde slcnpord-;o-uns eql

Sursn 'q 'olq!l eql ur 1r\or qJea roJ 1 Jo anp^

peJrsep aql .lrroqs'oslv 'g puu'3r 'gr 'g quu8rs

lndur aql Jo suo4eurquoc IIB 3ur1q1 elqel qlnrl

u ereder4'e 'lueserd eJu serunJ euqosu8 p 1ou

1nq 'rue8 ur sr a^rJplno eqr JI pue selnuru e^g

roy palerado lou seq Je^\olq eql Jr ue^e re,rod

uorlruSr ,{1dde o1 esoorlo uec roleredo eql leqlos pept.ord sr g' pu8rs eprJJelo .(cue8rerue ue',(geurg 'selnuru elg JoJ uorleredo ur uaaq s!q

Jolr\olq eql Jeue qSrq seruoceq g puSrs cr3o1'reznod uorlru8r Surr(ydde eJoJeq selnuru e^g

ro; palerado oq ol sr pue luerulJedruoc eur8ua

eql ruo4 ser.unJ realJ ol peprlord sr Je^\olq V

'e

Ie's

p

a

l

Page 5: 1Pll$jffi s.':,'ece.uprm.edu/~jrosado/oldexams/4076/spring2009/Hambley_3.pdf · zg pue 'raqurnu puoces aql Jo l1q u8rs eq1 s1 z5 'reqrunu lsru eql ;o 1rq u8rs eql sr 15 'pappB uaeq

394 Chapter 7 Logic Circui ts

P7.57. a. Construct a Karnaugh map for the logicfunction

F : A B E D + A B C D + A B C D + A B C Db. Find the minimum SOP expression. c. Re-alize Ihe minimum SOP function, using AND,OR, and NOT gates. d. Find the minimum POSexpression.

*P7.58. Consider Table P7.58 in which A, B, C,and Dare input variables. F, G, H, and 1 are theoutput variables. a. Construct a Karnaugh mapfor the output variable F. b. Find the minimumSOP expression for this logic function. c. UseAND, OR, and NOT gates to realize the mini-mum SOP function. d. Find the minimum POSexpression.

F G

P7.59. Repeat Problem P7.58 for output variable G.P7.60. Repeat Problem P7.58 for output variable -F1.P7.61. Repeat Problem P7.58 for output variable 1.P7.62. We need a logic circuit that gives an output X

that is high only if a given hexadecimal digit is

even (including 0) and less than 7. The inputsto the logic circuit are the bits Bs, 84, 82, and-B1 of the binary equivalent for the hexadecimaldigit. (The most significant bit is Bs, and theleast significant bit is .B1 .) Construct a truthtable and the Karnaugh map; then, write theminimized SOP expression for X.

P7.63. We need a logic circuit that gives an output Xthat is high when an error in the form of anunused code occurs in a given BCD codeword.The inputs to the logic circuit are the bits Bg, Ba,82, and ,B1 of the BCD codeword. (The mostsignificant bit is Bs, and the least significant bitis 81 .) Construct the Karnaugh map and writethe minimized SOP and POS expressions for X.

P7.64. We need a logic circuit that gives a high outputif a given hexadecimal digit is 4, 6, C, or E.The inputs to the logic circuit are the bits Bs,Bq, Bz, and 81 of the binary equivalent for thehexadecimal digit. (The most significant bit is83, and the least significant bit is 81 .) Constructthe Karnaugh map and write the minimizedSOP and POS expressions for X.

P7.65. We need to design a logic circuit for interchang-ing two logic signals. The system has three in-puts 11 , 12,and S aswellastwooutputs Or and02. When S is low, we should have 01 = 1r andOz = Iz. On the other hand, when S is high,we should have 01 = Iz and Oz = It. Thus, Sacts as the control input for a reversing switch.IJse Karnaugh maps to obtain a minimal SOPdesign. Draw the circuit.

P7.66. A city council has three members, A, B, andC. Each member votes on a proposition (1 foryes, 0 for no). Find a minimized SOP logicexpression having inputs A, B, and C andoutput X that is high when the majority vote isyes and low otherwise. Show that the minimizedlogic circuit checks to see if any pair of the threeboard members have voted yes. Repeat for acouncil with five members. (Hint:In this case,the circuit checks to see if any group of threehas all voted yes.)

P7.67. A city council has four members, A, B, C,and D. Each member votes on a proposition (1

0 0 0 11 0 0 10 0 0 10 0 0 00 0 0 11 0 0 10 0 1 10 1 1 00 0 0 01 0 1 00 0 0 00 0 1 01 0 0 01 0 1 01 1 1 01 1 1 0

0 0 0 00 0 0 10 0 1 00 0 1 10 1 0 00 1 0 10 1 1 00 1 1 11 0 0 01 0 0 11 0 1 01 0 1 11 1 0 01 1 0 11 1 1 01 1 1 1

Page 6: 1Pll$jffi s.':,'ece.uprm.edu/~jrosado/oldexams/4076/spring2009/Hambley_3.pdf · zg pue 'raqurnu puoces aql Jo l1q u8rs eq1 s1 z5 'reqrunu lsru eql ;o 1rq u8rs eql sr 15 'pappB uaeq

snorJe^ eql Surarolls uorsseJdxe dos run{uru[ueql puld 'elqel eql ur Jncco lou op leql sepoJ

IZZV rcl ser8nbs eqt uI (serec t.uop) s, r Surceld'y roJ deru q8neur?) eqt q illC.B

'sproaepor

cJg ol Il'ld tuelqord Jo spro^\epn lzzv eqluoluoc ol slrnJJrJ cr3o1 u8rsap ol luu^\ eN\ .ZL.LiI

00rIOIIIIOII0r0IIOI00000

IIIOIIIOI00rIIO0t0I00000

ZAX.A IH9I O)SVproA\epoJ pro^\epoJ pro,&epoJ

!-sserxg IZZV CJS

raEalul

leIurtec

'sre6a1ug leutlrap eql ,oJ spro/$apo)

!-sserxe pue 'JZZU '(J>g Il.td alqBl

'7 rog (u) leadeg.p'groy (e) leedag'r'5r roJ (e) reedeg.q'elqrssodsu elduns su uorsserdxe eql e>lsru ol s0 Jo sIJeqlre aq ol s! f snorJe,r eql 3ur,no11e uorssardxe

dos tllntuluru eql purd'elqel eql ur tncco louop leql sepor eJg ro; serenbs eqt ur (serec

l,uop) s,r Surceld 'jI JoJ deru qSneure) eqlul illc

'B 'spro.^d,epoc IZZV 01 spro,&\epoc cIJg

lJeAuoJ ol slrncJrJ cr3o1 u8rsep ol lue1( al&'IL'Ldelqe;- ur u^\oqs eJe sluele^rnbe 177tr aq1pue'sluele^rnbe q3g eql'sro8elur Ierurcep eqJ'Ipue'Z'7'y en Erq eql Jo slq8ralr eql qJrqa urepoc IZZV eq1 sl s:e8elut IerurJop luaserder o1,{uao, reqlouy 'l pue 'Z 't 'g

Jo slq8re,tr e^pq slrqaql qrrq^A ur sroqunu ccg pessncsrp e^!q eA\ .IL.Ld*

'69'td etqer

Jo sapoJ eql JoJ z puv' I'x Jo sruJel ur J pue'g 'V n! suorssardxe dOS runururu eql puld .g[.td

'J pue'g 'V lo suJel ur Z pua ',1 'a roy suors

-serdxe dOS tunrururu eql purd '69'td olqel

96! suralqord

7ay epoS f,etg )gV epoJ,{reurg

69'td oIqBI

ur u^\oqs sepoc ,(erg llq-eeJql aql olul sapocf,reurq eql ue^uoc 01 slrnJJrc luelrr e,!\ esoddng .69.Lil

99.44 arn81g

l_a[-- r

r-s F-y

'esr^\Joqlo g u slndlno pue sI Jo Joq{unuppo ue sureluoc do)sv pro^\ pe^rerer aql JI1 e slndlno 1eq1 sale8 dOX JnoJ Sursn lrncrrc e,r\Brc 'ppo eq III^\ pJo^\ eql ur souo Jo Jeqrunueql 'Jouo

t1q epurs e sureluoc pJoA\ pelreceJ

eql JI 'J 'slrq elep oql Jo sruJol ur d JoJ uorsserd

-xe dos tunrururru eql euruJeloo .q .elup Jo

suorleurquor IIB JoJ sI Jo Jeqrunu ue^e u3 surel-uoc do)gy pJo^t pellrusueJl eql 13q1 .4Aoqs'spro1( reqlo uJ 'O)gV (prom elep llq-rnoJ)elqqp eql roJ d tlg {tued lrerror eql secnp-ord 99'14 ern8rg ur lrnoJrJ eql teql ,r\oqs .B'peJJncco s!rl JoJJo euo lseel le leql .&oul e^\"llnsel po^receJ eql ur punoJ eJB Jequnu ppo

uu Jr 'ueqJ 'ue^e sr pJoA\ peDrusuBJl eql ur

sI Jo Jequnu oql l!ql qJns pJo^\ Blep qcBe 01

lrq flrred e puedde o1 sr ,tllcerroc polecrunu-ruoc oJe elep leql eJnsua dleq o1 ,(e,r eug .gg.rd

'esr^\Jeqlo .4AOIpue porl sr etol eql ueq.r qBF{ sl t!ql X 1nd1nopue 6, pue'J 'g 'y qndur Suuruq uorssetdxerrSoy 4gg pezrururu e pul.{ '(ou roy 6'se,( ro;

OOIII IOIOIOIIOOI000IIIIOOIIOIOIO00I0IIOO

IIIIOIIIIOI IOOIIIIIO0001I t000I00I0000000

IOOI0001II IOOIIOIOIO00r0IIOO0I00I0000000

o

8Lo

Ih

f

zI0

Page 7: 1Pll$jffi s.':,'ece.uprm.edu/~jrosado/oldexams/4076/spring2009/Hambley_3.pdf · zg pue 'raqurnu puoces aql Jo l1q u8rs eq1 s1 z5 'reqrunu lsru eql ;o 1rq u8rs eql sr 15 'pappB uaeq

396 ChaPter 7 Logic Circuits

x's to be either 1s or 0s to make the expressionas simple as possible. b. Repeat (a) for B 'c. Repeat (a) for C ' d. Repeat (a) for D '

P7.73. Another code that is sometimes used to rep-resent decimal digits is the excess-3 code' Toconvert a decimal digit to excess-3, we add 3to the digit and express the sum as a four-bitbinary number. For example, to convert thedecimal digit 9 to excess-3 code, we have

9ro * 3ro - I2rc: 11002

Thus, 1100 is the excess-3 codeword for 9' Theexcess-3 codewords for the other decimal digitsare shown in Table P'7.'71.

We want to design logic circuits to convertBCD codewords to excess-3 codewords' a' Fillin the Karnaugh map for W, placing x's (don'tcares) in the squares for BCD codes that donot occur in the table' Find the minimum SOPexpression allowing the various x's to be either1s or 0s to make the expression as simple aspossible. b. Repeat (a) for X' c' Repeat (a) forY. d. RePeat (a) fot Z.

P7.74. We want to design logic circuits to convert theexcess-3 codewords of Problem P7'73 to BCDcodewords. a. Fill in the Karnaugh map forA, placing x's (don't cares) in the squares forexciss-3 codes that do not occur in the table'Find the minimum SOP expression allowingthe various x's to be either 1s or 0s to make theexpression as simple as possible' b' Repeat (a)toi r . c. Repeat (a) for C . d. Repeat (a) for D '

Section 7.6: Sequential Logic Circuits

P7.75. Use NOR gates to draw the diagram of an SRflip-floP. RePeat using NAND gates'

P7.76. Oiaw the circuit symbol and give the truth tablefor an SR fliP-floP.

P7.77. Draw the circuit symbol and give the truth tablefor a clocked SR fliP-floP.

P7,78. Explain the distinction between synchronousand asynchronous inputs to a flip-flop'

P7.79. What is edge triggering?P7.80. Draw the circuit symbol and give the truth table

for a positive-edge-triggered D flip-flop'

.P7.81. Assuming that the initial state of the shift reg-ister shown in Figure P7.81 is 100 (i'e', Qo: I'Qr : 0 , and Q2: 0), find the successive states'After how many shifts does the register returnto the starting state?

Clock in

Figure P7'81

P7.82. Repeat Problem P7.81 if the XOR gate is re-placed with a. an OR gate; b. an AND gate'

P7.83. The D flip-flops of Figure P7'83 are positive-edge triggered. Assuming that prior to / : 0,the states are Qs : Q1' :0' sketch the voltagewaveforms at Qg and Or versus time' Assumelosic levels of 0 V and 5 V'

Figure P7'83

P7.84. The D flip-flops of Figure P7 '84 are positive-edge triggered, and the Cl input is an asyn-chronous clear' Assume that the states areQo : Qt : Q2 : Qz : 0 at t :0. The clockinput VrN is shown in Figure P7'83' Sketch the

+YrN

I-L:

Page 8: 1Pll$jffi s.':,'ece.uprm.edu/~jrosado/oldexams/4076/spring2009/Hambley_3.pdf · zg pue 'raqurnu puoces aql Jo l1q u8rs eq1 s1 z5 'reqrunu lsru eql ;o 1rq u8rs eql sr 15 'pappB uaeq

gg.ld arnSrd

('... I,Z,E.t, I) esr.r{colJ : I = S("''l 't'E ,Z ,l) esr,&Irolrretuno3 :0 = S

'7,4 pue, rA , S Jo sruJel u1 rg q8norqllO JoJ suorsseJdxe dOS unururru oql eurruJol-ap o1 sdeur qSnuuru;,1 esn pue elqel qlnrl eqllJnJlsuoJ .J 'Jelunoc eql JoJ llncJrJ cr8oy elqe-llns 3 ^\ercl .q e>lcolJ oql Jo ,{cuenber; eql srlurl1ye'l€AJelur puoces-oa\l qr"e ur peleydruoceq pFogs uorlnloloJ eleldruoc eu6 .,(1e,rr1ceds-er ',tro1 ro q8rq sr S' reqleqzn uo Burpuedap 'esrzr>lcolcrelunoJ Jo esrl\>lJolJ Joqlre eporp olepop tuo4 e^ou pFoqs slBls uo eql .orurl ele uo oq ot sr oporp euo .{pg .slq8q ll ,CIE-Iue o1 peqdde sr 1 cr3o1 ueql6 .gg.14 ern8rgur paleJlsnllr sE 'puoruElp e Jo sJouJoJ erD lupe8uurre ere (qg1) sepop Burllnue-1q8rT rnoC .gg.l,d

'arp rruo4celg 49.44 aln8;g

u8rsaq .q 'relunoc eq1 ;o ruer8ulp pelrelep eqla\eJp 01 slndur Jeelc pu" leserd snouorqcu^{seSurnuq sdog-drg X/ esn .B .peseeleJ sr qJ1/KSaql ueql\ oluls ruopuer e ur Surddols ,seleredoJelunoc eql'pessardep $ qclms eql erurl qJEE 'feldsrp oql ,(q pepeeu spu8rs c6o1 eql oturJelunoJ eql Jo elBls aq1 selslsueJl leql lrncJrJcl3o1 prroluurquoc B sr JepoJue eqI .ll o1 peqd-de sr 1 cr3o1 uaq.r slqBII qrlqa Jo qcea .(CEi)sepotp 3ur11rrua-1q8rl ue^as go Bu4srsuoc ,(e1d-srp e seq uals,(s eqJ .(SS-I) llq luecgru8rstseal eqt sl Ifl pue'(gSW) llq tuecgru8rs lsorueql $ EA '(erp eqt Jo saprs snorre^ eq1 uo slodsJO JAqunu erll Jo sluepzrrnbe ,fteurq eql ..e.r)0II 'I0I '00I 'II0 '0I0 ,I00 :sot€ls ;o e1c.{c eq}q8norql slunoJ leql Jelunoc e pue ,peseelerueq,r uorlrsod (1 cr3o1) reddn eq1 01 suJnlerluql r{olr^\s lceluoc .,ftelueuoru uo11nq-qsnd e '1co1c peeds-q81q e sureluoc ruels,(s eqa .eJuerlr;o saue8 ur pesn eq uec leql e1p rruoJlJela ue;o uur8erp IeuorlcunJ eql s^\oqs 19.14 ern8rg .Lg.Lil

'Jelunoc xrs-olnpoue ur sllnseJ sIt{J .xrs saqsueJ lunoJ orll ueq^\,(lelerperuur otez 01 sleseJ lunoc oql leql ossele8 ppe ol ^\oq ,troq5 .slndur JeelJ snouoJqr-ufse a,req sdog-drg eql luql esoddng .ggg e8uduo €S't ern8rg Jo retunor elddrr aql reprsuo3 .9gzd

'ggg e8ed uogg'1 ern8rg yo dog-drg XI eqt lrnrlsuoc 01 a\oq^\oqs ot dog-drg g pere88rrl-e8pe-e,rrle8eue pue 'sJalJe.lur .selz8 UO .sale8 61NV esfl .Sg.Ld_

a'{a.-t

aa'(

eQ+1

repofi4t

,o ota

J+lrmo:'

(r

'spuSrs lnd1no ueles aqlJo qJea ecnpord ol pepeeu sluetuolo cr8ol eq1azrurrurru o1 sduru q8nuuruy Bursn ,repocue eql

l6E sulalqord

79'44 e.rn3;g

'A S pue A 0 Jo s1e,re1 cr8oy ounssv .erurl sns -rct tO pue,zA , rA ,0O le sruJoJelelrr e8e11o,r

qJfl,l,\SuoDng

/'"-

\lm) lqanl Yrr3o1) 1+

.Q

+ANI/

u'!

I0 (ssr)