Lecture21 - 0 again • Design this counter using JK-flip...

Info icon This preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
ENSC150 Lecture 2 1 Agenda More Sequential Design Binary Counter with Load Option BCD Counter 1/6 Lecture 21 Atousa Hajshirmohammadi, SFU
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Counter w/ Load We want to add to the binary counter developed in Lecture 19 the capability to load the counter with an initial binary number. For example, we want to be able to force the state of the counter to go to the value “6” when we want. This is the counter we have developed so far: Q 3 Enable with Binary Counter EN Clk Q 0 Q 1 Q 2 Now we want D 0 Enable with Binary Counter EN Q 0 Q 1 Q 2 Q 3 and Load Clk Load D 2 D 3 D 1 Operation: If “Load = 1”, Load D 0 , D 1 , D 2 , D 3 to the output of the counter, regardless of the value of “EN”. If ”Load = 0”, then EN con- trols the operation of t h e counter like before. 2/6 Lecture 21 Atousa Hajshirmohammadi, SFU
Image of page 2
Counter w/ Load (Cont.) clk Q C D EN Q 0 Q C D EN Q 1 Q C D EN Q 2 Q C D EN Q 3 A B S C Half Adder A B S C Half Adder A B S C Half Adder A B S C Half Adder MUX I 1 I 0 Y MUX I 1 I 0 Y MUX I 1 I 0 Y MUX I 1 I 0 Y 3/6 Lecture 21 Atousa Hajshirmohammadi, SFU
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
BCD Counter BCD Counter is a 4-bit counter that counts from “0” to “9” and back to
Image of page 4
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 0 again. • Design this counter using JK-flip flops • Also, add an output Y, which is equal to “1” when the counter is counting the number “9”. 1 J K Q J K Q ( t ) 1 ¯ Q ( t ) JK-FF Q ( t + 1) 1 1 1 4/6 Lecture 21 Atousa Hajshirmohammadi, SFU BCD (State Table) Present State Next State Q 3 Q 2 Q 1 Q Q 3 ( J 3 ,K 3 ) Q 2 ( J 2 ,K 2 ) Q 1 ( J 1 ,K 1 ) Q ( J ,K ) 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5/6 Lecture 21 Atousa Hajshirmohammadi, SFU BCD (Optimization) We need to find J 3 ,K 3 ,J 2 ,K 2 ,J 1 ,K 1 ,J ,K in terms of Q 3 ,Q 2 ,Q 1 ,Q , and implement the circuit. For example: J 3 6/6 Lecture 21 Atousa Hajshirmohammadi, SFU...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern