2012-03-25 00:56:59 +01:00
|
|
|
package rocket
|
|
|
|
|
|
|
|
import Chisel._
|
|
|
|
import Node._
|
|
|
|
import Constants._
|
2012-10-02 01:08:41 +02:00
|
|
|
import uncore._
|
2012-03-25 00:56:59 +01:00
|
|
|
|
2012-10-16 01:29:49 +02:00
|
|
|
class Tile(resetSignal: Bool = null)(implicit conf: RocketConfiguration) extends Component(resetSignal)
|
2012-03-25 00:56:59 +01:00
|
|
|
{
|
|
|
|
val io = new Bundle {
|
|
|
|
val tilelink = new ioTileLink
|
2012-10-19 02:26:03 +02:00
|
|
|
val host = new ioHTIF(conf.ntiles)
|
2012-03-25 00:56:59 +01:00
|
|
|
}
|
|
|
|
|
2012-07-18 07:55:00 +02:00
|
|
|
val cpu = new rocketProc
|
2012-10-17 01:32:35 +02:00
|
|
|
val icache = new Frontend(ICacheConfig(128, 4)) // 128 sets x 4 ways (32KB)
|
2012-10-08 07:37:29 +02:00
|
|
|
val dcache = new HellaCache
|
2012-03-25 00:56:59 +01:00
|
|
|
|
2012-10-08 22:06:45 +02:00
|
|
|
val arbiter = new rocketMemArbiter(DMEM_PORTS)
|
|
|
|
arbiter.io.requestor(DMEM_DCACHE) <> dcache.io.mem
|
|
|
|
arbiter.io.requestor(DMEM_ICACHE) <> icache.io.mem
|
2012-03-25 00:56:59 +01:00
|
|
|
|
2012-07-18 07:55:00 +02:00
|
|
|
io.tilelink.xact_init <> arbiter.io.mem.xact_init
|
|
|
|
io.tilelink.xact_init_data <> dcache.io.mem.xact_init_data
|
|
|
|
arbiter.io.mem.xact_abort <> io.tilelink.xact_abort
|
|
|
|
arbiter.io.mem.xact_rep <> io.tilelink.xact_rep
|
|
|
|
io.tilelink.xact_finish <> arbiter.io.mem.xact_finish
|
|
|
|
dcache.io.mem.probe_req <> io.tilelink.probe_req
|
|
|
|
io.tilelink.probe_rep <> dcache.io.mem.probe_rep
|
|
|
|
io.tilelink.probe_rep_data <> dcache.io.mem.probe_rep_data
|
2012-03-25 00:56:59 +01:00
|
|
|
|
|
|
|
if (HAVE_VEC)
|
|
|
|
{
|
2012-10-17 01:32:35 +02:00
|
|
|
val vicache = new Frontend(ICacheConfig(128, 1)) // 128 sets x 1 ways (8KB)
|
2012-10-08 22:06:45 +02:00
|
|
|
arbiter.io.requestor(DMEM_VICACHE) <> vicache.io.mem
|
2012-03-25 00:56:59 +01:00
|
|
|
cpu.io.vimem <> vicache.io.cpu
|
|
|
|
}
|
|
|
|
|
|
|
|
cpu.io.host <> io.host
|
|
|
|
cpu.io.imem <> icache.io.cpu
|
|
|
|
cpu.io.dmem <> dcache.io.cpu
|
|
|
|
}
|