CS/CoE 536 Reconfigurable System On Chip Design
Lockwood, Fall 2002

Homework Assignment 5

Due: Friday, Nov 8, 2002, 5pm

Complete Homework

Reading Material

Homework Questions

    Consider the problem of coding the CAM matching function across a N-bit vector. Note that the logic function performed on each bit of the vector is identical and could be automatically generated using an automated process.

  1. Draw the schematic for the circuit that implements one bit of the CAM match function as a function of one bit from each of the Pkt_Header, CAM_Value, and CAM_Mask inputs.
    (3 pts)


  2. Describe, in words, how each bit of a N-bit vector could be combined to implement the single Match output.
    (3 pts)




  3. On a separate page, Write a program in C, Java, or Perl that generates VHDL to implement an N-bit CAM function.
    (5 pts)

    • Run the program and show the resulting VHDL code
      (2 pts)

  4. On a separate page, Write VHDL code that uses the 'generic' and 'generate' statements to implement the N-bit CAM function.
    (5 pts)

  5. On a separate page, Write JHDL that implements an N-bit CAM matching function
    (5 pts)

    • The first line of your program should be:
      public NBitCAM(Wire Pkt_Header, Wire CAM_Value, Wire CAM_Mask)

    • Is JHDL appropriate for structural or behavioral designs? Explain.
      (3 pts)




    • Explain the purpose of the JHDL Tech Mapper class.
      (3 pts)