Skip to content

Commit 8d4cf7d

Browse files
committed
fpga_diff: fix FpgaDiffTop generation and renaming
This change generates FpgaDiffTop as extend instead of wrapper. Also, when use `make verilog BOARD=fpgadiff`, the top sv file is SimTop.sv rather than FpgaDiffTop.sv, this change also revert previous naming error.
1 parent c347b0a commit 8d4cf7d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/test/scala/TopMain.scala

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,8 @@ class Top extends Module {
3636
dontTouch(vga.io)
3737
}
3838

39-
class FpgaDiffTop extends Module with HasDiffTestInterfaces {
40-
lazy val config = NutCoreConfig(FPGADifftest = true)
41-
val soc = Module(new NutShell()(config))
42-
val io = IO(soc.io.cloneType)
43-
soc.io <> io
44-
39+
class FpgaDiffTop extends NutShell()(NutCoreConfig(FPGADifftest = true)) with HasDiffTestInterfaces {
40+
override def desiredName: String = "NutShell"
4541
override def cpuName: Option[String] = Some("NutShell")
4642
override def connectTopIOs(difftest: DifftestTopIO): Unit = {
4743
val io = IO(chiselTypeOf(this.io))

0 commit comments

Comments
 (0)