Skip to content

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

Open
@ken881015

Description

@ken881015

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions