f4pga / ideas

Random ideas and interesting ideas for things we hope to eventually do.
86 stars 9 forks source link

Create a JSON schema for the Yosys JSON format. #7

Open mithro opened 6 years ago

mithro commented 6 years ago

Yosys can write a JSON format.. It would be good if there was a specification for this file format.

Write a JSON Schema for the JSON format - see http://json-schema.org/

drom commented 6 years ago

Great idea. I have used this format for my FPGA config visualizer. https://github.com/drom/icedrom I can definitely help with a schema.

GitHub
drom/icedrom
FPGA config visualized. demo:. Contribute to drom/icedrom development by creating an account on GitHub.
mithro commented 5 years ago

FYI netlistsvg has written up somewhat of a json schema file here.

proppy commented 5 years ago

Do you have examples of Yosys JSON output? If the set is large enough something like https://github.com/ncarlier/genjson could be used to generated a merged schema.

GitHub
ncarlier/genjson
A simple CLI used to produce a JSON stream with fake data using JSON schema - ncarlier/genjson