

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
A step-by-step guide on how to test digital circuits using cadence software. It covers both exhaustive and non-exhaustive testing methods, explaining how to set up stimuli, create waveforms, and annotate results for verification.
Typology: Exams
1 / 3
This page cannot be seen from the preview
Don't miss anything!
This guide assumes that you have already walked through the Quick-Start and are familiar with Cadence. M OUSE CLICKS will be indicated with bold, small caps. Entered text with be indicated with italicized text.
Sometimes you will want to test your circuit using an exhaustive search across every possible input. For example, you may have implemented a circuit for a given truth table, and you want to make sure that the circuit outputs correctly for every possible input. In this case, it is best to use the Cadence CLOCK stimulus as inputs to your circuit.
Once you have laid out your circuit, use the following procedure to set up an exhaustive test:
Capture CIS Click P LACE NET ALIAS on the tool bar.
Place net alias Enter a name for a wire and press Enter.
Capture CIS
Place the net name on the corresponding wire.
Repeat until all of the wires have a name.
Select an input stimulus. Right-click on the stimulus and select E DIT PS PICE S TIMULUS
New Stimulus
Enter a Name for the stimulus C LOCK OK
Clock Attributes
Enter a period. The period should be a power of 2 from some base clock period. For example, use 100n as the base clock period for your least significant input bit. Then, the next most significant input bit should have a clock period of 200n, then 400n, and so on. If you have N bits, the most significant bit should have a period of 100*2(N-1). Enter an on-time. This should be exactly half of the period. A PPLY If the signal looks correct, then OK
Stimulus Editor
Capture CIS
Continue adding PSpice stimuli until all of the input stimuli have been defined.
For each stimulus, double click on the text name and change the Value of the name to match the implementation name.
Once you have generated your stimulus, run the simulation and create an output waveform. Make sure to arrange the signals so that the inputs are in order from most significant (top) to least significant (bottom), and successive outputs are plotted in the order of progression through the circuit.
Once you have an output waveform, you must print and annotate it. To annotate a waveform, draw vertical lines (use a ruler!) on the plot for a given test region. Then label the signals within the region to show what their values are. Finally, relate the values in each test region to the specified circuit behavior – how do you know that the output is correct?
Sometimes you will want to test your circuit using a non-exhaustive search over only some of the possible inputs. For example, you may have implemented an 8-bit adder circuit, and you want to make sure that the circuit generally does the correct addition. It is not a good idea to test all of the possible input combinations because there are 2^16 possibilities! In this case, it is best to use the Cadence SIGNAL stimulus as inputs to your circuit.
Once you have laid out your circuit, use the following procedure to set up a non- exhaustive test:
Capture CIS Click P LACE NET ALIAS on the tool bar.
Place net alias Enter a name for a wire and press Enter.
Capture CIS
Place the net name on the corresponding wire.
Repeat until all of the wires have a name.
Select an input stimulus. Right-click on the stimulus and select E DIT PS PICE S TIMULUS
New Stimulus
Enter a Name for the stimulus S IGNAL OK