23 lines
570 B
Scala
23 lines
570 B
Scala
|
// See LICENSE.SiFive for license details.
|
||
|
|
||
|
package freechips.rocketchip.system
|
||
|
|
||
|
import Chisel._
|
||
|
import freechips.rocketchip.config.Parameters
|
||
|
import freechips.rocketchip.diplomacy.LazyModule
|
||
|
|
||
|
class TestHarness()(implicit p: Parameters) extends Module {
|
||
|
val io = new Bundle {
|
||
|
val success = Bool(OUTPUT)
|
||
|
}
|
||
|
|
||
|
val dut = Module(LazyModule(new ExampleRocketSystem).module)
|
||
|
dut.reset := reset | dut.debug.ndreset
|
||
|
|
||
|
dut.tieOffInterrupts()
|
||
|
dut.connectSimAXIMem()
|
||
|
dut.connectSimAXIMMIO()
|
||
|
dut.tieOffAXI4SlavePort()
|
||
|
dut.connectDebug(clock, reset, io.success)
|
||
|
}
|