I used a small code just to display it in the verilog file, but it is not, Here is the code
import Chisel._
import Node._
import scala.collection.mutable.HashMap
import Literal._
import scala.util.Random
class And1 extends Module {
val io = new Bundle {
val Instruction = Bits(INPUT, 32)
val result = Bits(OUTPUT, 32)
}
println ("Gopi")
}
class And1Tests(c: And1) extends Tester(c, Array(
c.io)) {
defTests {
var allGood = true
val vars = new HashMap[Node, Node]()
for (i2 <- 0 until 16){
vars(c.io.Instruction) = Bits(i2)
allGood = step(vars) && allGood
}
allGood
}
}
object And1 {
def main(args: Array[String]): Unit = {
//chiselMainTest(Array[String]("--compile","--test","--backend", "c", "--genHarness"),
chiselMainTest(Array[String]("--compile","--backend", "v"),
() => Module(new And1())){c => new And1Tests(c)}
}
}
The generated verilog file is
module And1(
input [31:0] io_Instruction,
output[31:0] io_result
);
endmodule
I couldn find the display at all....
Regards
Gopinath