The Laboratory Goal
For this lab, you can use any layout strategy you choose as long as it fits the cell methodology you have already selected. The goal is to minimize the area·delay product. Designs that are more square, rather than long, thin rectangles, tend to be better designs. The designer with the lowest area-delay product will win a prize, a gift certificate from Amazon.com. There will be two prizes, one for the best undergraduate design and one for the best graduate design. Pay close attention to the specific delay you are to measure.
The Laboratory Steps
1. Design your circuit and create a Cadence circuit diagram and a MAGIC layout using the cells you have already designed. The bulk of the work here should be the routing of your design. Include your logic/gate level diagram for your neuron.
2. Simulate your circuit and layout with SPICE to ensure that it works logically. The inputs to your project circuit should be named clock, load, red, yellow, round, cylindrical, small, large, green, purple, sweet and reset. The output should be named apple. It is important you follow this naming convention so we can verify that your circuit works.
Use the following sequence of inputs (See timing diagram below for exact details):
a) Reset all flip flops (even though reset is shown asserted high you could assert it low) using whatever clock settings you need. This will vary depending on how you implemented reset.
b) Set load, red, yellow, large (wait til the second cycle for large to become high), round and sweet to 1. Set load high. All other inputs should be 0. Clock the circuit three times. Your output apple should be high after the third upward transistion of the clock.
c) Now lower red, yellow, large, and raise green, purple and small. Leave round and sweet high. Now your output should be low after three positive clock edges.
d) Now hold your load input low. Return to the inputs in part b. After three clock cycles, the output should remain low.
3. Simulate your circuit with SPICE. The delay you should measure with SPICE is the clock cycle. The faster your clock cycle, the faster your circuit will function.
4. Measure the area of your design in square lambda using the b command in MAGIC. Compute the area-delay product of your design. Be sure you convert microns to lambda in order to get credit for this part of the lab.
5. Upload your report to the digital drop box, incliding your magic and simulation files as a zip file so that we can test (simulate) your circuit to be sure it performs as specified Be sure to include your SPICE files for the project.
Testing Strategy
Here is a testing strategy that might be useful to you: Build the majority gate in Cadence and test it using SPICE. Add the flip flop and any logic needed to keep the flip flop from firing two clock cycles in a row. Test the entire "neuron." Now create your neural network in Cadence and test it. Use the same incremental strategy to perform your layout in MAGIC and to test your layout.
Timing Diagram