1006e1884SZihao Yupackage system 2006e1884SZihao Yu 3006e1884SZihao Yuimport noop.{NOOP, NOOPConfig} 4006e1884SZihao Yuimport bus.axi4.{AXI4, AXI4Lite} 58f36f779SZihao Yuimport bus.simplebus._ 6006e1884SZihao Yu 7006e1884SZihao Yuimport chisel3._ 8006e1884SZihao Yu 9006e1884SZihao Yuclass NOOPSoC(implicit val p: NOOPConfig) extends Module { 10006e1884SZihao Yu val io = IO(new Bundle{ 11*cdd59e9fSZihao Yu val mem = new AXI4 128f36f779SZihao Yu val mmio = (if (p.FPGAPlatform) { new AXI4Lite } else { new SimpleBusUL }) 13006e1884SZihao Yu }) 14006e1884SZihao Yu 15006e1884SZihao Yu val noop = Module(new NOOP) 16*cdd59e9fSZihao Yu val cohMg = Module(new CoherenceInterconnect) 17*cdd59e9fSZihao Yu cohMg.io.in(0) <> noop.io.imem 18*cdd59e9fSZihao Yu cohMg.io.in(1) <> noop.io.dmem 19*cdd59e9fSZihao Yu io.mem <> cohMg.io.out.toAXI4() 20006e1884SZihao Yu 218f36f779SZihao Yu if (p.FPGAPlatform) io.mmio <> noop.io.mmio.toAXI4() 22006e1884SZihao Yu else io.mmio <> noop.io.mmio 23006e1884SZihao Yu} 24