Git Product home page Git Product logo

Comments (4)

Dolu1990 avatar Dolu1990 commented on May 21, 2024

Hi,

So until now, the idea was "If you want latches, you have to instanciate them through blackboxes"

But now it could be possible to integrate the feature in reworkDev branch, be before trying it, i would like to release the reworkDev branch into the master one, see if everything is fine, get some feedbacks, and later adding new feature of this order (latches).

Until that time, is the blaboxing way enough ?
Maybe those blackboxes could be integrated into devRework, and be instanciated via a wrapper. Then when the feature is nativly supported it would not need any changes in the user code base.

from spinalhdl.

cristianmacario avatar cristianmacario commented on May 21, 2024

Sure, latches are not so essential and blackboxing is OK.
Future/long term feature is totally fine.

from spinalhdl.

numero-744 avatar numero-744 commented on May 21, 2024

For the design I think a Latch(T) would feel more natural (like Reg(T)). With LatchWhen(...), etc.

So your example would be:

val d = Bool
val e = Bool
val l = Latch(Bool)
when (e) {
    l := d
}

Or

val d = Bool
val e = Bool
val l = LatchWhen(d, e)

from spinalhdl.

Dolu1990 avatar Dolu1990 commented on May 21, 2024

Yes, Latch(T) seems more natural. That maybe just some makeup which would add addTag(noLatchCheck) under the hood

from spinalhdl.

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.