chisel-testers icon indicating copy to clipboard operation
chisel-testers copied to clipboard

Reduce the startup time for a Scala Unit-test by skipping Verilator compilation *and* design elaboration

Open oharboe opened this issue 8 years ago • 1 comments

To interface to an existing test-system, I would like to launch a test from the command line hundreds of times by passing different test-input vector files on the command line.

E.g. given the input data in the "test.txt" file, I'd like to execute a test given:

$ sbt "test:runMain testmain test.txt"

The code below skips Verilator compilation(which is slow), but still performs design elaboration:

    Driver.run(() => new system(),
        "Vsystem")(c =>
          new system_Tests(c, args(0)))

oharboe avatar Mar 02 '17 22:03 oharboe

You might be interested in this PR: https://github.com/ucb-bar/chisel-testers2/pull/267

ekiwi avatar Mar 04 '21 19:03 ekiwi