1
0

Expanded front-end to support superscalar fetch.

This commit is contained in:
Christopher Celio
2014-09-17 14:24:03 -07:00
parent 238f7761f6
commit 180d3d365d
4 changed files with 35 additions and 10 deletions

View File

@@ -47,9 +47,9 @@ class Datapath extends Module
val wb_reg_rs2 = Reg(Bits())
// instruction decode stage
val id_inst = io.imem.resp.bits.data
val id_inst = io.imem.resp.bits.data(0).toBits; require(params(FetchWidth) == 1)
val id_pc = io.imem.resp.bits.pc
class RegFile {
private val rf = Mem(UInt(width = 64), 31)
private val reads = collection.mutable.ArrayBuffer[(UInt,UInt)]()