GithubHelp home page GithubHelp logo

BlackBox clock + reset about chisel-tutorial HOT 3 CLOSED

ucb-bar avatar ucb-bar commented on July 17, 2024
BlackBox clock + reset

from chisel-tutorial.

Comments (3)

Dolu1990 avatar Dolu1990 commented on July 17, 2024

After consulltation of source code, that's not possible to do that ".clk(clockA)"
because in verilog.scala :

def emitDef(c: Module): String = {
    ...
    if (c.clocks.length > 0) {
      res = res + (c.clocks).map(x => "." + emitRef(x) + "(" + emitRef(x) + ")").reduceLeft(_ + ", " + _)
    }

Somebody know if there is a plan for fix that ? if no, i can try to fix that with a pull request in the chisel repository.

from chisel-tutorial.

ben-k avatar ben-k commented on July 17, 2024

It seems like you're asking about support for multiple clock domains, which are now supported in Chisel. See Section 18 of the most recent Chisel manual.

I think the reset signal is global, though. You may want to post this comment as a feature request in the main Chisel repo (ucb-bar/chisel) if you want a more thorough response.

from chisel-tutorial.

Dolu1990 avatar Dolu1990 commented on July 17, 2024

Hi,
Thanks for answer : D

Multiple clock domaine is not well supported for black boxing because when you do multiple instance of a black box with different clock, that don't call the same verilog module : .clockA(clockA) in place of .blackBoxClockName(clockA)

For example now chisel do that :

  MyBlackBox_0 instA(.clockA(clockA), ... 
  );
  MyBlackBox_1 instB(.clockB(clockB), ... 
  );

That made 2 different verilog implementation of the same BlackBox juste because clock name change.

Reset was not realy my ask, but do a global reset in a multiple clock domaine design,where reset go directly to each flip flip is a bad idea. (Bad boot with setup and hold violation)

When i have post this issue, it was for new tutorial about that, but after that i realise that is a not supported feactures of chisel. With this consideration, it's true, this issue must move in chisel repo.

from chisel-tutorial.

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.