DiagramTeX Open DiagramTeX

DiagramTeX/tikz-timing editor

Timing diagrams for LaTeX

tikz-timing editor: draw the waveforms, copy the LaTeX

Paint each signal along its row, drag the edges where they belong and mark setup and hold times between them. DiagramTeX writes the tikz-timing code as you go, ready to paste into Overleaf or any LaTeX document.

Open the editor Open this example
The timing editor: signal values on the left, a synchronous bus transaction with clock, request, ready, address and data rows, and the tikz-timing code on the right
The timing editor: signal values on the left, the waveforms in the middle, the tikz-timing code on the right.

How to draw a timing diagram

  1. Add a Timing block: open DiagramTeX, click the cube on the left rail, pick Timing and click the canvas. Double-click the block to open its editor.
  2. Paint a signal: pick a value (H high, L low, Z high-Z, D data, C clock…) and drag along a row.
  3. Move a transition: drag the edge. Hold Shift and the rest of the row follows.
  4. Mark setup or hold time: drag Interval or Delay between two edges.
  5. Change several at once: drag across segments, or press CtrlA (⌘A on a Mac), then pick a value.
  6. Copy the code: press Done, then CtrlE (⌘E on a Mac) and Copy.

Example: Synchronous bus transaction with wait states

This is the code DiagramTeX writes for the timing diagram in the picture above. The first line names the packages to load.

tikz-timing snippetOpen it in DiagramTeX and edit it
% Requires: \usepackage{tikz} \usepackage{tikz-timing}
\begin{tikzpicture}[x=1cm, y=1cm]
  \node at (5.21,-4.81) {\pgfinterruptpicture%
  \begin{tikztimingtable}[timing/rowdist=3]
  CLK & 12{2C} \\
  REQ & 2L 16H 6L \\
  READY & 8L 2H 4L 2H 8L \\
  ADDR & 2U 8D{0x10} 6D{0x14} 8U \\
  DATA & 8Z 2D{A} 4Z 2D{B} 8Z \\
  RD & 3H 6L 3H 3L 9H \\
  VALID & 8L 2H 4L 2H 8L \\
  \extracode
  \vertlines[help lines]{2,8,10,14,16,18}
  \draw[<->] (2,-19) -- node[below] {read latency} (8,-19);
  \end{tikztimingtable}%
  \endpgfinterruptpicture};
\end{tikzpicture}

What the editor does

Questions

Is it free?
Yes. DiagramTeX is free and open source (GNU AGPLv3), with no account, no paid tier and no ads. The code it writes for you is yours to use however you like.
Does it work with Overleaf?
Yes. Copy the code into your project and add what its first line names (\usepackage{tikz-timing}). The LaTeX dialog can also download a .zip to upload to Overleaf.
Is my diagram uploaded anywhere?
No. DiagramTeX runs in your browser and keeps your files there. Once it has loaded, it also works offline.

Other editors