Root/tools/ant-cl/plot-diag

Source at commit 9081d91ca8d1e8d008bfde93944eb528d0da2898 created 11 years 2 hours ago.
By Werner Almesberger, tornado/cpu/: rearrange things and fix ERC problems
1#!/bin/sh
2#
3# tools/ant-cl/plot-diag - Plot the output of ant-cl -D >file
4#
5# Written 2012 by Werner Almesberger
6# Copyright 2012 Werner Almesberger
7#
8# This program is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 2 of the License, or
11# (at your option) any later version.
12#
13
14if [ -z "$1" -o ! -r "$1" ]; then
15    echo "usage: $0 file" 1>&2
16    exit 1
17fi
18gnuplot -p \
19    -e 'set style data lines' \
20    -e 'unset key' \
21    -e "set title '$1 (`stat -c '%y' \"$1\" | sed 's/\..*//'`)'" \
22    -e 'set xlabel "Pattern"' \
23    -e 'set ylabel "AVcc (V)"' \
24    -e "plot '$1' using 0:2, '$1' using 0:3, '$1' using 0:4, '$1' using 0:5,
25   '$1' using 0:2 with impulses lt 7"
26

Archive Download this file

Branches:
master
tornado-v1



interactive