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

Is there any method to prevent the generation of lot of directory when using chisel PeekPokeTester?

Open ken881015 opened this issue 3 years ago • 0 comments

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.

ken881015 avatar Jan 11 '22 08:01 ken881015