Coder Social home page Coder Social logo

Comments (11)

smunaut avatar smunaut commented on July 17, 2024

Dupe of #69

Try https://github.com/smunaut/nextpnr/tree/ice40_work for a fix.

from nextpnr.

swetland avatar swetland commented on July 17, 2024

Your branch does fix this specific testcase (yay) -- pnr succeeded, I verified 12M and 25M clocks at the testpoints on the board, everything's happy.

However for a nontrivial project (VGA character display, soft spi peripheral to read/write video memory) the pnr now gets "stuck" around here:
Info: at iteration #125: temp = 8.185582, cost = 4579, est tns = -162.50ns

It's been sitting there at 100% cpu for 5 minutes now apparently making no progress.

Of course this could be an unrelated bug. I'll do a bit more exploring.

from nextpnr.

smunaut avatar smunaut commented on July 17, 2024

Yes, that sounds like a distinct issue.
If you have a test case (or even just the source .json / .pcf) to reproduce, feel free to post that.

from nextpnr.

swetland avatar swetland commented on July 17, 2024

I haven't narrowed it down to a specific test case yet. Here's the json+pcf:
stuck.tar.gz

$ nextpnr-ice40 --package sg48 --up5k --pcf top.pcf --asc top.asc --json top.json

from nextpnr.

smunaut avatar smunaut commented on July 17, 2024

Yeah it gets stuck in an infinite loop in random_bel_for_cell().

I would suggest opening another issue for this.

from nextpnr.

smunaut avatar smunaut commented on July 17, 2024

Although ... wait ... might actually be somewhat related since the cell it's trying to place is a SB_GB.

from nextpnr.

smunaut avatar smunaut commented on July 17, 2024

in ice40/pack.cc in function bool Arch::pack(), you can try commenting out promote_globals()

This works around it for now.

from nextpnr.

swetland avatar swetland commented on July 17, 2024

Can confirm that the design works correctly (same as w/ arachne-pnr and icecube2) with that workaround. Thanks!

Happy to open a separate issue for this if that's useful/desirable.

from nextpnr.

smunaut avatar smunaut commented on July 17, 2024

Yeah, I would open a different issue. This random_bel_for_cell seems pretty bad for resources that are "rare" in the FPGA. (i.e. when there is only a few of them)

from nextpnr.

smunaut avatar smunaut commented on July 17, 2024

I think this should all be fixed now too.

from nextpnr.

swetland avatar swetland commented on July 17, 2024

Confirmed -- tip of tree Yosys + NextPNR is working fine for both the small test case and some larger projects.

from nextpnr.

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.