Git Product home page Git Product logo

Comments (3)

Ravenslofty avatar Ravenslofty commented on August 18, 2024

(this reply is mostly me thinking out loud, in the hopes that if I get distracted I can come back to this and not have to redo too much work)

So, the quirky bit of the testcase here is that you have two wires: \outp__payload and \outp__payload[0].

Inside the AIGER parser there is a little section of code which assumes that if it has encountered a wire before, it is the least significant bit of a wide wire, and renames it accordingly:

RTLIL::Wire *wire = module->wire(name);
if (wire)
module->rename(wire, RTLIL::escape_id(stringf("%s[%d]", name.c_str(), 0)));

except here it renames \outp__payload to \outp__payload[0], which is a wire that already exists, and so Yosys asserts.

from yosys.

Ravenslofty avatar Ravenslofty commented on August 18, 2024

Fix ideas:

  • detect this situation and rename wires and box ports appropriately (perhaps this issue exists in other parts of the codebase).
  • \outp__payload[0] is an alias of \outp__payload, so it's actually okay to use it here, I think. But how do I detect that? SigMap?
  • insert a strategic opt_clean -purge, which resolves the aliasing and the problem goes away in both testcases.

from yosys.

cr1901 avatar cr1901 commented on August 18, 2024

Temporary workaround: Something like yosys -p "synth_ice40 -run :coarse; opt_clean -purge; synth_ice40 -run coarse:" input.v

from yosys.

Related Issues (20)

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.