YosysHQ / arachne-pnr

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

Support for ASM.JS target #49

Open drom opened 7 years ago

drom commented 7 years ago

I am building in-browser tool to design and program FPGAs using Yosys and Arachne-PNR. Yosys provides ability to build for the ASM.JS target. Would it be possible to add similar ability to the Arachne-PNR?

cseed commented 7 years ago

I'm new to emscripten. I played around with a bit and was able to get arachne-pnr to build and serialize the chipdb files with it. (See the emscripten branch.) I guess I'd need to a second link to embed the binary chipdb files. What interface would you want? Would just calling main with string args do it?

drom commented 7 years ago

Yes, @cseed calling main with a string would do the trick. I can help creating JS wrapper that would expose some Object interface.