CS152 Computer Architecture and Engineering

Homework #3

Spring 2002, Prof Bob Brodersen


Please include the TIME or TA NAME of the DISCUSSION section that you attend as well as your NAME and STUDENT ID. Homeworks and labs will be handed back in discussion sections.

 


Homework #3: Due Thursday February 21, 2002 in class

1. Consider the circuit below with the NAND gate characteristics listed. (Assume wires have the same capacitance as the input capacitance off all the gates attached to it.)

  • ILA = ILB = 55 fF

  • TPAOlh = 0.3 ns

  • TPAOhl = 0.2 ns

  • TPAOlhf = 0.0015 ns/fF

  • TPAOhlf = 0.0012 ns/fF

  • TPBOlh = 0.2 ns

  • TPBOhl = 0.4 ns

  • TPBOlhf = 0.0017 ns/fF

  • TPBOhlf = 0.0019 ns/fF

    1. What function does this circuit implement?
    2. What is the propagation delay from X to Z through Gates 2 and 4 with high-to-low transitions on both gates? (Hint: this should be load dependent)
    3. What is the input capacitance for input X?
    4. What is the critical path for this circuit?
    5. What is the worst-case propagation delay?

 

2. Consider if we placed the above logic block between two registers, as pictured below. The registers have the characteristics as listed.

Register characteristics:

  • Internal Delay = 0.3 ns

  • Load dependent delay = 0.0015 ns/fF

  • Input capacitance = 30 fF

  • Hold time = 0.5 ns

  • Setup time = 1.0 ns

 

    1. What is the clock-to-Q time for register one?
    2. What is the most clock skew we can tolerate if the clock edge arrives at register two before register one?
    3. What is the shortest cycle time we can have for this circuit?

 

3. Design a finite state machine for an elevator.  The elevator travels between two floors.  You have the following inputs and outputs:

Inputs:

 Ouputs:

 

4. Consider adding another floor to the elevator in problem 3.   In addition to button3, floor3, and ack3 the system now has a 5 second timer so you can know how long to keep the doors open on a particular floor.  The timer has the following input and output:

Design the FSM for this system.