yowasp / runtime-js Goto Github PK
View Code? Open in Web Editor NEWCommon runtime for YoWASP packages deployed to NPM, interfacing with Node.js and the browser
Home Page: https://yowasp.org/
License: ISC License
Common runtime for YoWASP packages deployed to NPM, interfacing with Node.js and the browser
Home Page: https://yowasp.org/
License: ISC License
Is there any example about how to run Yosys with node?
Amazingly, the yowasp npm package works great with Deno; the test module works out of the box with only a single line change to the import statement:
import { runYosys } from 'npm:@yowasp/yosys';
Deno is very close to a typical browser environment by design, and most of the code is just pure javascript, so this is all pretty nice. However, it does cause a lot of console.log
usage under the CLI:
austin@GANON:~/tmp/deno-yowasp$ deno run -A main.ts
[YoWASP runtime] Fetching resource bundle file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/resources-yosys.js
[YoWASP runtime] Fetching resource bundle file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/resources-yosys.js
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/yosys.core.wasm
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/yosys.core.wasm
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/yosys.core2.wasm
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/yosys.core2.wasm
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/yosys.core3.wasm
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/yosys.core3.wasm
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/yosys.core4.wasm
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/share/ice40/cells_sim.v
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/yosys.core4.wasm
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/share/ice40/cells_sim.v
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/share/nexus/cells_xtra.v
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/share/nexus/cells_xtra.v
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/share/quicklogic/qlf_k6n10f/bram_types_sim.v
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/share/quicklogic/qlf_k6n10f/bram_types_sim.v
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/share/quicklogic/qlf_k6n10f/brams_sim.v
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/share/quicklogic/qlf_k6n10f/brams_sim.v
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/share/xilinx/cells_sim.v
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/share/xilinx/cells_sim.v
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/share/xilinx/cells_xtra.v
[YoWASP runtime] Fetching resource file file:///home/austin/.cache/deno/npm/registry.npmjs.org/@yowasp/yosys/0.37.58-dev.635/gen/share/xilinx/cells_xtra.v
/----------------------------------------------------------------------------\
| |
| yosys -- Yosys Open SYnthesis Suite |
| |
| Copyright (C) 2012 - 2020 Claire Xenia Wolf <[email protected]> |
| |
| Permission to use, copy, modify, and/or distribute this software for any |
| purpose with or without fee is hereby granted, provided that the above |
| copyright notice and this permission notice appear in all copies. |
| |
| THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| |
\----------------------------------------------------------------------------/
Yosys 0.36+58 (git sha1 ea7818d31, ccache clang 14.0.0-1ubuntu1.1 -Os -flto -flto)
...
This seems to be due to console.log
getting called here.
I'd normally just write a patch for this but don't know what it should be, and figured I would file an issue just in case I forgot.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.