What is the proper way to test a Chisel function not part of a Module that generates hardware constructs?
object Util {
def getSquare(vec2d: Vec[Vec[Bool]]) : Seq[Seq[Bool]] = {
val size = vec2d.size max vec2d(0).size
return Seq.fill(size, size) {Wire(Bool())}
}
}
How can I test this function? Because it isn't a Module, the standard Chisel test format complains.