Giter Club home page Giter Club logo

Comments (5)

edwardcwang avatar edwardcwang commented on July 25, 2024 1

I need it for not use sbt and need command line options exposed some other way and layer on top of testers2 that propagates the vcd dump switch from higher [up in a flow].

I'm willing to accept breakage and it's totally cool if it's not the final API. I'd rather help test testers2 than go back to testers1 especially for a new project...

from chiseltest.

chick avatar chick commented on July 25, 2024

@edwardcwang in what way is TesterOptions private? It should be easy to read and/or write them as necessary

from chiseltest.

ducky64 avatar ducky64 commented on July 25, 2024

@edwardcwang can you give me an example use case? My thoughts are that things done in code are more permanent, while command-line operations are for temporary debugging flags like VCD dump.

If there is a reasonable use case I can open it up as an experimental API. Exposing options in a stable form is probably going to be very tricky.

from chiseltest.

edwardcwang avatar edwardcwang commented on July 25, 2024

TesterOptions is declared private[tester] case class TesterOptions so I can't use it directly from user code.

I want to be able to do something like

class MyTestSpec extends FlatSpec with ChiselScalatestTester with Matchers {
  override def getTestOptions: TesterOptions = {
    val test = scalaTestContext.value.get
    TesterOptions(test.name, writeVcd=<programmatically set VCD dumping>)
  }
  // rest of tests...
}

or even as an optional parameter to test() is fine as well, just some way I can set the settings

from chiseltest.

ducky64 avatar ducky64 commented on July 25, 2024

Yes, I understand that, but why doesn't command line options meet your use case? Do you want to dump VCDs for all runs (instead of only temporarily during debugging - and is this for all tests, or just a few)? Do you not use sbt and need command line options exposed some other way? Do you have a layer on top of testers2 that propagates the vcd dump switch from higher?

You're asking for a mechanism - and a really general / powerful one that is likely to be unstable. I want to be a bit more confident that this is the right mechanism, not just the one that appears most convenient right now.

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.