用于VCD和其他数字波形文件操作的Python库
pyDigitalWaveTools的Python项目详细描述
PyDigitalWaveTools
用于VCD和其他数字波形文件操作的Python库
功能列表
- 将VCD(STD 2009)文件解析为中间格式
- 编写VCD文件、用户类型的用户指定格式化程序、矢量、位和枚举值的预定义格式化程序
- 将中间格式转储为简单的json
输出json格式
scope
{ "name": "<scope name>"
"children" : {"<children name>" : child}
}
child can be scope or signal record
signal record
{ "name": "<signal name>"
"type": {"sigType": "<vcd signal type>",
"width": <bit width of signal (integer)>},
"data": [<data records>],
}
data record format
[<time (number)>, <value (string, format dependent on datatype)>]