The script is in the directory:
legup/hwtest/
Assuming you have quartus installed, get Ploticus and ImageMagick:
sudo apt-get install ploticus sudo apt-get install imagemagick
The script takes in two command line arguments:
Open the script with a text editor first. There are two arrays that govern the script's run:
The number of widths tested also corresponds to the number of samples taken for plotting.
For a start, lets take three samples to make a simple plot. Edit the width array to have the numbers 4, 8 and 12. This should look like:
@width = (4,8,12);
Edit the operations array to have the signed add operation. This should look like:
@operations = ("signed_add");
Now try running the script (this will default to CycloneII and AUTO for the device):
./hwtest.pl
The data results appear in output.dat within the Device Family directory. The plots can be found under the plots directory.
For power (50% of bits toggle each cycle, 1000 random test vectors)
./hwtest.pl CycloneII EP2C35F672C6 50 1000
Output from run for [CycloneII EP2C35F672C6]
Output from run for [StratixII EP2S15F484C5]