Add files and images.

This commit is contained in:
peteraaser 2020-06-01 17:34:33 +02:00
parent 813faf9084
commit 25b01d050b
5 changed files with 10 additions and 3 deletions

View file

@ -50,7 +50,8 @@ object TestRunner {
binary.toList.sortBy(_._1.value).map(_._2),
program.settings,
finalVM.pc,
testOptions.maxSteps)
testOptions.maxSteps,
testOptions.testName)
} yield {
val traces = mergeTraces(trace, chiselTrace).map(x => printMergedTraces((x), program))

View file

@ -159,12 +159,18 @@ object ChiselTestRunner {
binary : List[Int],
settings : List[TestSetting],
terminalAddress : Addr,
maxSteps : Int): Either[String, (Option[String], List[CircuitTrace])] = {
maxSteps : Int,
testName : String): Either[String, (Option[String], List[CircuitTrace])] = {
var sideEffectExtravaganza: Option[(Option[String], List[CircuitTrace])] = None
val error: Either[String, Boolean] = scala.util.Try {
chisel3.iotesters.Driver(() => new Tile(), "treadle") { c =>
chisel3.iotesters.Driver.execute(Array(
"--generate-vcd-output", "on",
"--backend-name", "treadle",
"--target-dir", "waveforms",
"--top-name", testName
), () => new Tile) { c =>
new PeekPokeTester(c) {
val testRunner = new ChiselTestRunner(
binary,