3
Digital Circuits – Assignment #4 – Due Tuesday July 30 th /2013 CC BY-SA This work by Colin O’Flynn is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License . Digital Circuits – Assignment #4 Question 1 Lecture #7 covered implementing functions with different mux/decoders. Implement the following with: a) An 8:1 Mux b) A 4:1 Mux c) A 3:8 Decoder Perform each of the above implementation techniques for the following: i) ( , , ) (0,1, 4, 5) i f ABC m = ii) ( , , ) (0,1, 4, 5) i f ABC M = iii) ( , , ) A•B•C+A•C f ABC = Question 2 In class you were shown the RS Latch built from NOR gates. This question will use NAND gates to build a similar latch (and flip-flop). a) Design a RS Latch using two NAND gates. The general form is as in the NOR gate based RS latch but with NAND gates replacing the NOR gates. Note the inputs for the latch will be called R and S since they are active low – that is the ‘hold’ state will be R =1, S =1. The order of the inputs may differ from the NOR-based RS latch. b) The following table shows that the initial state of Q is ‘0’ and Q is ‘1’. Fill in the table with the following procedure: 1. The previous state of Q + becomes the current state of Q. For example if Q + was ‘0’ in row 1, the Q value for row 2 would be ‘0’. Likewise if Q + was ‘1’ for row 1, the Q value for row 2 would be ‘1’. 2. Find the new values for Q + Q + by tracing through the schematic. Q R S Q + Q + 0 1 1 0 1 1 1 1 0 1 1 0 0 1 1

Assignment #4

Embed Size (px)

DESCRIPTION

assignment on digital

Citation preview

  • Digital Circuits Assignment #4 Due Tuesday July 30th/2013

    CC BY-SA

    This work by Colin OFlynn is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License .

    Digital Circuits Assignment #4 Question 1 Lecture #7 covered implementing functions with different mux/decoders. Implement the following with:

    a) An 8:1 Mux b) A 4:1 Mux c) A 3:8 Decoder

    Perform each of the above implementation techniques for the following:

    i) ( , , ) (0,1, 4,5)if A B C m= ii) ( , , ) (0,1, 4,5)if A B C M= iii) ( , , ) ABC+ACf A B C =

    Question 2 In class you were shown the RS Latch built from NOR gates. This question will use NAND gates to build a similar latch (and flip-flop).

    a) Design a RS Latch using two NAND gates. The general form is as in the NOR gate based RS latch

    but with NAND gates replacing the NOR gates. Note the inputs for the latch will be called R and S since they are active low that is the hold state will be R =1, S =1. The order of the inputs may differ from the NOR-based RS latch.

    b) The following table shows that the initial state of Q is 0 and Q is 1. Fill in the table with the following procedure:

    1. The previous state of Q+ becomes the current state of Q. For example if Q+ was 0

    in row 1, the Q value for row 2 would be 0. Likewise if Q+ was 1 for row 1, the Q value for row 2 would be 1.

    2. Find the new values for Q+ Q+ by tracing through the schematic. Q R S Q+ Q+ 0 1 1 0 1 1 1 1 0 1 1 0 0 1 1

  • Digital Circuits Assignment #4 Due Tuesday July 30th/2013

    CC BY-SA

    This work by Colin OFlynn is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License .

    c) Complete the timing diagram for your design in part (A) by drawing the Q and Q outputs:

    d) Design a RS Flip-Flop with four NAND Gates. Note the RS Flip-Flop implies there is a CLOCK input.

    e) Complete the timing diagram for your design in part (C) by drawing the Q and Q outputs:

    f) Modify the design above to add asynchronous PRESET and CLEAR inputs. This modified design should use two 2-input NAND gates, and two 3-input NAND gates. Are the inputs active high or active low?

    g) Complete the timing diagram from your design in part (D) by drawing the Q and Q outputs:

  • Digital Circuits Assignment #4 Due Tuesday July 30th/2013

    CC BY-SA

    This work by Colin OFlynn is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License .

    Question 3 Use flip-flop conversion techniques to implement the following:

    a) A JK Flip-Flop from a D Flip-Flop b) A T Flip-Flop from a JK Flip-Flop c) A RS Flip-Flop from a T Flip-Flop

    Question 4 Design a shift register which takes a Serial Clock, Serial Data, and active-low Slave Select (SS) line. Data is shifted in Least Significant Bit (LSB) first on the rising clock edge. Data is present on the eight data lines only AFTER all eight bits are shifted in.

    For example here is a diagram showing the inputs and expected outputs when transferring the single byte 0x23. Note how the output changes only when the SS line goes HIGH.

    Question 5 Design a counter which counts through the sequence 000 -> 001 -> 010 -> 011 -> 100 -> 10 1-> 110 -> 111 and repeats. Design this counter with:

    a) D Flip-Flops b) T Flip-Flops

    Question 1Question 2Question 3Question 4Question 5