Add files and images.
This commit is contained in:
parent
813faf9084
commit
25b01d050b
5 changed files with 10 additions and 3 deletions
|
@ -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))
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue