Description
Here is the code instruction I usually use for testing...
========================CODE=======================
import chisel3.iotester.{Driver,PeekPokeTester}
class {module name}Tester (dut :...) extends PeekPokeTester(dut){
...
}
object {module name}Tester extend App{
Driver.execute(args,()=>new {module name}()){
c => new {module name}Tester(c)
}
}
======================CODE END=====================
======================Instruction=======================
sbt "Test / runMain {package}.{Tester} -td ./generated -tbn verilator"
Every time I run the instruction , it will generate a new folder (name: Module name with random number) under the -td,
and it's a trouble to me when I need to use the wave viewer.
I want to ask that is there any method to avoid this situation (don't generate so many file )
-> like don't generate a new folder, and overwrite the file with same name
Thank in advance to who read this question !!!
Do not hesitate to enlighten me of my coding style or usage of chisel/scala class, object.