Giter Club home page Giter Club logo

Comments (3)

ekiwi avatar ekiwi commented on July 25, 2024

Memories are not reset by default since that is the behavior you would expect on an ASIC. Thus your two memories will start out with potentially different data and thus your check fails. You can initialize both memories to zero through a firrtl annotation:

Please let me know if this fixes your issue.

from chiseltest.

B10615053 avatar B10615053 commented on July 25, 2024

Hi @ekiwi , I appreciate your reply.
Add the following code indeed solve the Reset problem.

// Initial with all zeros
annotate(new ChiselAnnotation {
        override def toFirrtl = MemoryScalarInitAnnotation(rf.toTarget, 0)
})

But I was facing another issue of dumping waveform with following command.

testOnly cpu.RFTest -- -DwriteVcd=1

Why won't this generate vcd waveform file under test_run_dir direcotry?
Will Seq(BoundedCheck(6)) generate a cover waveform of 6 cycle clock?
Thank you again for the help๏ผ:smile:

from chiseltest.

ekiwi avatar ekiwi commented on July 25, 2024

Why won't this generate vcd waveform file under test_run_dir direcotry?

The formal verify command only generates a VCD if it find an assertion violation. No flag needed in that case.

Will Seq(BoundedCheck(6)) generate a cover waveform of 6 cycle clock?

Unfortunately cover trace generation is not implemented yet :(.
Haven't had time to work on that.

from chiseltest.

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.