Waveform viewer for Synopsys CustomCompiler, text table format, simulation data
You will need:
- Python 3
- The
bokeh
ploting library (pip3 install bokeh --user
) - The
pandas
library (pip3 install pandas --user
) - The
pillow
library for PNG export (pip3 install pillow --user
) - The
selenium
library for PNG export (pip3 install selenium --user
)
If you have problems related to phantomjs
try the following:
- Install
npm
(apt install npm
) - Install
phantomjs-prebuilt
(npm install phantomjs-prebuilt
)
- In a terminal, execute
wp.py
providing, at least, the required arguments (to see them see the help executingwv.py --help
) to point to the data file, change the title, etc.
- In a terminal, execute
python3 wv.py
or./wv.py
(if you changed the file to be executable). It will show you the help section. wv -i <data_table>
creates an HTML file with the plot for the givendata_table
and opens it in your default internet browser. Since no name for the output file is provided the same as the input is used.wv -i <data_table> -o <image_from_data_table>
same as before but now it saves the HTML file by the nameimage_from_data_table.html
.wv -i <data_table> -o <image_from_data_table> -dp
same as before but now it saves the HTML file by the nameimage_from_data_table.html
. The data points (actual simulated/calculated values) are also shown.wv -i <data_table> -o <image_from_data_table> -dp -lw 2
same as before but changing the lines width.wv -i <data_table> -o <image_from_data_table> -dp -lw 2 --no_output --save_png
same as the previous one. The HTML file is not created, and also not shown. Finally a PNG file is created.
- Add support for batch file processing.
- Add option to export table.
- Change x axis notation to scientific (milli, micro, nano, etc.).
- Add some sort of verbosity.
- Add some sort of debug capability.
- Add the option of sourcing a local configuration file to have a consistent format for different plots.
- Add option to control the DPI output for the PNG output file.
- Add argument to control the axis ticks to db20.
- Use pandas dataframe to manipulate the data.
- Include support for multiple waveforms.
- Allow to mute the different plots pressing on its legends.
- Avoid showing the pandas dataframe on the terminal.
- Add argument to ask for an PNG output file.
- Add argument to ask for an SVG output file.
- Add argument to avoid showing the output, just to create the output file.
- Add argument to control the axis ticks to log.
- Add argument to change the axis labels.