Code Monkey home page Code Monkey logo

Comments (7)

enjoy-digital avatar enjoy-digital commented on July 18, 2024

Thanks for the feedback. The ideas was to keep the files organized as it is with official/partner/community directory but allow just importing any platform/target from litex_boards directly. (to ease use/maintenance and simplify changing one platform/target location).

I need to think about a better way to do this and avoid adding dependency. I'll think of it but ideas are welcome :)

from litex-boards.

xobs avatar xobs commented on July 18, 2024

I would have thought that this would work:

from litex_boards.partner.targets.fomu import _CRG

But it seems that implicitly does an import of litex_boards.partner.targets.__init__, which is where the problem is coming from. Is there another way I should be importing things?

from litex-boards.

enjoy-digital avatar enjoy-digital commented on July 18, 2024

Sorry, i haven't been able to look at that yet. I need to have a closer look at how import work in Python. I'd like to be able to do:

from litex_boards.targets.fomu import _CRG

instead of:

from litex_boards.partner.targets.fomu import _CRG

to be able to move more easily platforms/targets from an location to another in the future and simplify imports.

from litex-boards.

xobs avatar xobs commented on July 18, 2024

Alright, let me know what you'd like me to do -- I have a BaseSoC implementation of a Fomu target that might be nice to merge, but it doesn't work because of the import issue.

from litex-boards.

enjoy-digital avatar enjoy-digital commented on July 18, 2024

@xobs: i need to look at that, to avoid blocking you i just commited e704014, this should allow your to integrate your code and give me time to do what i initially wanted to do.

from litex-boards.

xobs avatar xobs commented on July 18, 2024

@enjoy-digital thanks for that, I just submitted a PR to add Fomu back in, now with a BaseSoC in addition to the _CRG.

from litex-boards.

enjoy-digital avatar enjoy-digital commented on July 18, 2024

The imports are fixed with b4eefa6.

from litex-boards.

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.