Giter Site home page Giter Site logo

Comments (7)

saw235 avatar saw235 commented on May 22, 2024 1

@Contental SV have usable constructs (unique/priority) to deal with this kind of ambiguity.
https://www.verilogpro.com/systemverilog-unique-priority/

Interesting, this is actually the first time I have come across a mux being done this way after 3 years in the industry.

from cores-veer-eh1.

olofk avatar olofk commented on May 22, 2024

I'm not the designer of this core, but an and-or mux like this should be cheaper if you know that certain conditions can't occur. In this case it seems to take advantage of the fact that fetch_to_f1 and shift_f2_f1 can't be asserted at the same time

from cores-veer-eh1.

saw235 avatar saw235 commented on May 22, 2024

I see, that make sense. But I feel like there should be some arguments against for maintainability purposes. And these kind of optimizations should be recognized and made by the synthesis tool/design compiler instead whenever possible.

from cores-veer-eh1.

olofk avatar olofk commented on May 22, 2024

I'll leave it to the core designers to give a definite answer, but my personal experience is that the tools aren't always as clever as you might expect and that sometimes you need to sacrifice readability for performance. Especially if you want a consistent implementation across different tools

from cores-veer-eh1.

Contental avatar Contental commented on May 22, 2024

Assuming 'fetch_to_f1' and 'shift_f2_f1' are never asserted at the same time, this is a very quick mux. That's why it's done this way. It actually is a conventional way of implementing a fast mux.

case (and casez/casex) statements have intrisic priority, the first case is evaluated first (see section 12.5 of the LRM), so this adds extra logic that may or may not be optimised out.

from cores-veer-eh1.

Contental avatar Contental commented on May 22, 2024

This is logged as an issue with the core. It is not an issue with the core. Such discussions should be held on another forum. Don't know where though. Any suggestions?

This issue should be closed. Who does that?

from cores-veer-eh1.

olofk avatar olofk commented on May 22, 2024

There is no dedicated mailing list but https://lists.chipsalliance.org/g/technical-discuss has been used to discuss other technical aspects and questions about SweRV so I recommend that for now

from cores-veer-eh1.

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.