YosysHQ / arachne-pnr

Place and route tool for FPGAs
MIT License
413 stars 72 forks source link

Output JSON file #47

Closed drom closed 7 years ago

drom commented 7 years ago

I am working on rendering engine that would produce SVG image of the FPGA array with logic functions and connections between them. I know that yosys is capable of producing result in JSON format, that is greatly simplifies further processing. Would it be possible to emit PNR information in JSON format from arachne-pnr?

cliffordwolf commented 7 years ago

You could write a post-place netlist as BLIF file with arachne-pnr --post-place-blif netlist.blif and then convert it to JSON using Yosys with yosys -q -o netlist.json netlist.blif.

drom commented 7 years ago

@cliffordwolf yes, you are right. That works.