Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🌊 Digital timing diagram rendering engine

License

NotificationsYou must be signed in to change notification settings

wavedrom/wavedrom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

674 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinuxMacOSWindowsNPM versionPayPal donate buttonCoverage Status

EDITOR |TUTORIAL

Introduction

WaveDrom is a Free and Open Source online digital timing diagram (waveform) rendering engine that uses javascript, HTML5 and SVG to convert aWaveJSON input text description into SVG vector graphics.

WaveJSON is an application of theJSON format. The purpose of WaveJSON is to provide a compact exchange format for digital timing diagrams utilized by digital HW / IC engineers.

The engine is usingWaveDromSkin skin mechanism to render a complete picture.

Server

svg.wavedrom.com

![Alt](https://svg.wavedrom.com/github/<USER>/<REPO>/<BRANCH>/<PATH>/<FILENAME>.json5)
![signal step4](https://svg.wavedrom.com/github/wavedrom/wavedrom/trunk/test/signal-step4.json5)

signal step4

![reg vl](https://svg.wavedrom.com/github/wavedrom/wavedrom/trunk/test/reg-vl.json5)

reg vl

<img src="https://svg.wavedrom.com/{WAVEDROM SOURCE}/>
<imgsrc="https://svg.wavedrom.com/{signal:[{name:'clk',wave:'p......'},{name:'bus',wave:'x.34.5x',data:'head body tail'},{name:'wire',wave:'0.1..0.'}]}"/>

Web usage

WaveDrom timing diagrams can be embedded into the web pages, blogs, and wikis to be rendered by the most of modern browsers.

HTML pages

There are three steps to insertWaveDrom diagrams directly into your page:

  1. Put the following line into your HTML page<header> or<body>:

From a CDN:

<scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/wavedrom/3.1.0/skins/default.js"type="text/javascript"></script><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/wavedrom/3.1.0/wavedrom.min.js"type="text/javascript"></script>
  1. Set theonload event for the HTML body.
<bodyonload="WaveDrom.ProcessAll()">
  1. InsertWaveJSON source inside HTML<body> wrapped with the<script> tag:
<scripttype="WaveDrom">{signal :[{name:"clk",wave:"p......"},{name:"bus",wave:"x.34.5x",data:"head body tail"},{name:"wire",wave:"0.1..0."},]}</script>

The script will find all<script type="WaveDrom"> instances and insert a timing diagram at that point.

impress.js

(http://wavedrom.com/impress.html)

Blogs & Wikis

ObservableHQ examples: (https://observablehq.com/collection/@drom/wavedrom)

Blogger integration: (http://wavedrom.blogspot.com/2011/08/wavedrom-digital-timing-diagram-in-your.html)

MediaWiki integration: (https://github.com/Martoni/mediawiki_wavedrom)

Editor

WaveDromEditoris an online real-time editor of digital timing diagrams based on theWaveDrom engine andWaveJSON format.

Standalone WaveDromEditor

Windows

  1. Download latestwavedrom-editor-v2.4.2-win-{ia32|x64}.zip release from here:releases
  2. Unzip it into a working directory.
  3. Run the editor:wavedrom-editor.exe

Linux

  1. Download the latestwavedrom-editor-v2.4.2-linux-{ia32|x64}.tar.gz release from here:releases
  2. unzip-untar the package:tar -xvzf wavedrom-editor-v2.3.2-linux-x64.tar.gz
  3. Run the editor:./WaveDromEditor/linux64/wavedrom-editor

OS X

  1. Download the latestwavedrom-editor-v2.4.2-osx-x64.zip release from here:releases
  2. Unzip
  3. Run

Community

Please use theWaveDrom user group for discussions, questions, ideas, or whatever.

Contributing

Contributing

License

SeeLICENSE.


[8]ページ先頭

©2009-2026 Movatter.jp