man drawtiming (Commandes) - drawtiming

NAME

drawtiming - generate timing diagram from signal description

SYNOPSIS

[--verbose] [--scale factor] [--pagesize WxH] [--aspect]--output target

DESCRIPTION

This application provides a command line tool for documenting hardware and software designs through ideal timing diagrams. It reads signal descriptions from a text file with an intuitive syntax, and outputs an ideal timing diagram to an image file. Notation typical of timing diagrams found in the Electrical Engineering discipline is used, including arrows indicating causal relationships between signal transitions.

The options are as follows:

--help
Show usage reminder.
--verbose
Increase diagnostic output.
--scale factor
Scale the diagram by the given factor . The default scaling factor is 1.0.
--pagesize WidthxHeight
Scale the diagram to fit given image size.
--aspect
Maintain fixed aspect ratio if --pagesize given.
--output target
The name and format of the output image is determined by target .
The input files describe the signals to be diagrammed. See the and sections for a description of their format.

FILES

The following is a technical description of the input file syntax and semantics. If you are reading this for the first time, you may want to skip ahead to the section.

The input file consists of a series of statements describing the signal transitions during each clock period of the timing diagram. Whitespace and comments following a are ignored.

SIGNAL=VALUE
This statement changes the value of a signal at the beginning of the current clock, and adds it to the list of signal dependencies. The signal name may consist of one or more words consisting of alphanumerics and underscores joined by periods, for example. The signal value format is described further on.
SIGNAL
This statement adds a signal to the list of dependencies without changing its value.

Statements are seperated by the following symbols:

,
The comma seperator is used to seperate statements without affecting the dependency list or clock (ie: the next statement will add to the dependency list).
;
The semicolon seperator resets the list of dependencies without incrementing the clock
.
The period seperator resets the list of dependencies and increments the clock.
=>
The "causes" seperator renders dependency arrows based on the current list of dependencies and then resets the dependency list.
-tD>
The "delay" seperator renders a delay arrow from the last dependency with the annotation

Signal values are rendered according to the following rules:

0 , 1 , true , false
A binary high/low signal.
tick
A clock pulse which repeats.
pulse
A one-shot clock pulse.
X
A don't care value.
Z
A tristate value.
Qq ABC
Any other alphanumeric token, or text enclosed in quotes is rendered as a state. For example, is rendered as a state, whereas, is rendered as a high signal.

EXAMPLES

Let's look at an example input file, and parse its meaning.

POWER=0, FIRE=0, ARMED=0, LED=OFF, COUNT=N. POWER=1 => LED=GREEN. FIRE=1. FIRE => ARMED=1. FIRE=0. FIRE=1. FIRE, ARMED => LED=RED; FIRE => COUNT="N+1".

This input file descibes the changes in five signals over a period of seven clock cycles. The end of each clock cycle is indicated with a period. For example, the following line indicates a single signal, named became true during a clock cycle:

The first clock period of the input file provides the initial value for all signals to be diagrammed. The signals will appear on the timing diagram in the order they first appear in the input file. Signals are assumed to have the value if their initial value is not given.

Independent signal transitions which occur simultaneously are normally seperated by commas. Since signals aren't normally expected to change simultaneously, the initial state is a good example of this:

Dependencies can also be indicated for a signal transition. Dependencies are rendered as arrows on the timing diagram from the last change in each dependency to the dependent signal transition. Here, the previous change in the state of causes a change in the signal.

To indicate that a change in one signal causes an immediate change in another signal, list both signal changes in the same clock period:

For signal state changes with multiple dependencies, seperate the dependencies with commas:

Sometimes, a single dependency causes multiple independent signals to change. Use a semicolon to start a new list of dependencies. Modifying the previous line to indicate that also causes to increment yields:

You can find this example and others along with their generated timing diagrams on the homepage for at

DIAGNOSTICS

Exit status is 0 on success, and 2 if the command fails.

COMPATIBILITY

The command has been tested on FreeBSD, Linux, and Cygwin.

AUTHORS

This software package was written by Edward Counce Aq ecounce@users.sourceforge.net

BUGS

None reported.