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.