An open API service indexing awesome lists of open source software.

https://github.com/jbush001/drawwaveform

A set of postscript functions for drawing waveforms
https://github.com/jbush001/drawwaveform

Last synced: 3 months ago
JSON representation

A set of postscript functions for drawing waveforms

Awesome Lists containing this project

README

          

This is a postscript library that allows creating waveform images. The waveforms are specified by calling a small set of library functions (there is an example at the end of the source file). As is typical in postscript, parameters appear before the function name.

_numclocks_ _numsignals_ __startwaveform__

Begins drawing a new waveform with the specified number of clock transitions and signals
The clock waveform will be drawn automatically.

_name_ __newsignal__

Starts a new signal with the specified name

_value_ _numclocks_ __drawbit__

Draws a single bit waveform with a given value for a specified number of clocks

_label_ _numclocks_ __drawknown__

Draws a multi-bit waveform with the given label

_numclocks_ __drawunknown__

Draw a multi-bit waveform that is unknown. It will be filled with gray

_numclocks_ __drawhiz__

Draw a portion of signal that is floating (high impedance)

This can be invoked from ghostscript (gs waveform.ps) or you can double click the
postscript file directly on a Mac.

![sample](https://raw.githubusercontent.com/jbush001/DrawWaveform/master/example.png)