HasTestingDirectory

chisel3.testing.HasTestingDirectory
See theHasTestingDirectory companion object

This is a trait that can be mixed into a class to determine where compilation should happen and where simulation artifacts should be written.

Attributes

Companion
object
Source
HasTestingDirectory.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Abstract methods

def getDirectory: Path

Return the directory where tests should be placed.

Return the directory where tests should be placed.

Attributes

Source
HasTestingDirectory.scala

Concrete methods

def withSubdirectory(subdirectory: String): HasTestingDirectory

Factory that returns a new HasTestingDirectory which will put test files in a subdirectory of the parent HasTestingDirectory.

Factory that returns a new HasTestingDirectory which will put test files in a subdirectory of the parent HasTestingDirectory.

For example, the object bar will have an output directory of foo/bar/.

import java.nio.file.Paths

val foo = new HasTestingDirectory {
 override def getDirectory = Paths.get("foo")
}

val bar = foo.getSubDir("bar")

Value parameters

subdirectory

a subdirectory

Attributes

Source
HasTestingDirectory.scala