Git Product home page Git Product logo

runtime-js's People

Contributors

thoughtpolice avatar whitequark avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

runtime-js's Issues

Yosys JS

Is there any example about how to run Yosys with node?

`console.log` is a little verbose when using `deno`

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.