WaveDorm数字时序图绘制,专门给IC工程师使用的控件
By
admin
at 2021-09-25 • 1人收藏 • 1012人看过
WaveDrom是一个免费的开源在线数字时序图(波形)渲染引擎,它使用javascript、HTML5和SVG将WaveJSON输入文本描述转换为SVG矢量图形。
WaveJSON是JSON格式的应用程序。WaveJSON的目的是为数字HW/IC工程师使用的数字时序图提供一种紧凑的交换格式.
介绍:https://blog.csdn.net/ASimpleMan1/article/details/108921294
https://observablehq.com/@pygc/hitchhiker-wavedrom
https://github.com/zhajio1988/wavedrom
import win.ui; /*DSG{{*/ var winform = win.form(text="aardio form";right=759;bottom=469) winform.add() /*}}*/ import web.form var wb = web.form(winform); wb.html = /** <!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/wavedrom/1.6.2/skins/default.js" type="text/javascript"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/wavedrom/1.6.2/wavedrom.min.js" type="text/javascript"></script> </head> <body onload="WaveDrom.ProcessAll()"> </body> <script type="WaveDrom"> {signal: [ {name: 'clk', wave: 'p.....|...'}, {name: 'dat', wave: 'x.345x|=.x', data: ['head', 'body', 'tail', 'data']}, {name: 'req', wave: '0.1..0|1.0'}, {}, {name: 'ack', wave: '1.....|01.'} ]} </script> </html> **/ winform.show(); win.loopMessage();
登录后方可回帖