CSE370 Assignment 4


Distributed: 30 January 2008
Due: 6 February 2008



Reading:

  1. Katz/Borriello, Contemporary Logic Design 2e, Sections 3.3 through 3.6 (pp. 114-147)
  2. Katz/Borriello, Contemporary Logic Design 2e, Chapter 4, up through Section 4.2.1 (pp. 155-168)

Exercises:

  1. CLD-II, Chapter 3, problem 3.15, all parts.
  2. CLD-II, Chapter 4, problem 4.2 part c and d.
  3. CLD-II, Chapter 4, problem 4.7 part b
  4. CLD-II, Chapter 4, problem 4.14 part a and b (You may use inverted inputs.)
  5. CLD-II, Chapter 4, problem 4.15
  6. For the following problems, you may print the ROM, PLA and PAL worksheets or the worksheet which has all three on one page. Implement the following three functions using a ROM, PLA and PAL. For the PLA, try to minimize the number of AND gates you use.

f1(a,b,c,d) = m(8, 4, 12, 14, 13) + d(10, 6)

f2(a,b,c,d) = m(10, 12, 14) + d(6)

f3(a,b,c,d) = m(10, 4, 11, 13, 15) + d(9, 7)

  1. (REQUIRES ACTIVE-HDL) In this problem we are going to design a comparator that compares two 32-bit numbers. This is a function with 64 inputs - the truth table for this function would be truly enormous! We are going to use a "divide-and-conquer" approach. We will first solve a small version of the problem and then use this solution to solve a larger version. We can repeat this process to solve very large problems. (Link to test fixtures)

a) First design a 2-bit comparator: This comparator compares two 2-bit numbers, A and B, on the input and produces two outputs, A=B and A<B. (A and B are unsigned numbers throughout this exercise.) Find the minimal 2-level circuit implementation for these two functions. Make a component for this comparator using Active-HDL. Use the text fixture compare2_tf.v to test your component. Print your schematic and console output from the simulation.

c) Now design an 8-bit comparator using four of your 2-bit comparators. Use the test fixture compare8_tf.v to test your component. Print your schematic and console output from the simulation.

d) Now design a 32-bit comparator using four of your 8-bit comparators. (Don't despair! How can you use the circuit you just designed? Feel free to cut and paste circuits between schematics, changing what you need to change.) Use the test fixture compare32_tf.v to test your component. Print your schematic and console output from the simulation.

e) Calculate the worst-case delay of your 32-bit comparator. (Express the delay as an expression using δANDx and δORx placeholders. For example (2 δAND2 + δOR4) would be the delay of a path going through a 4 input OR gate and two 2 input AND gates. You can assume that a gate with more inputs has a higher delay than one with less inputs.)

f) What would be the size and delay of a 512-bit comparator?


Rationale:

  • To practice implementing functions with multiplexers, and decoders
  • To gain experience with design problems

Comments to: cse370-webmaster@cs.washington.edu