1
0

forgot to change package + using fromBits in memserdes instead of manual unpacking

This commit is contained in:
Huy Vo 2012-10-10 15:42:39 -07:00
parent 9610622ab0
commit 08ab076217
3 changed files with 6 additions and 5 deletions

View File

@ -10,6 +10,9 @@ object Constants
val HAVE_FPU = true val HAVE_FPU = true
val HAVE_VEC = true val HAVE_VEC = true
val HTIF_WIDTH = 16
val MEM_BACKUP_WIDTH = HTIF_WIDTH
val M_X = Bits("b????", 4); val M_X = Bits("b????", 4);
val M_XRD = Bits("b0000", 4); // int load val M_XRD = Bits("b0000", 4); // int load
val M_XWR = Bits("b0001", 4); // int store val M_XWR = Bits("b0001", 4); // int store

View File

@ -1,4 +1,4 @@
package rocket package uncore
import Chisel._ import Chisel._
import Node._ import Node._
@ -143,9 +143,7 @@ class MemDessert extends Component // test rig side
val req_cmd = in_buf >> UFix(((rbits+MEM_BACKUP_WIDTH-1)/MEM_BACKUP_WIDTH - (abits+MEM_BACKUP_WIDTH-1)/MEM_BACKUP_WIDTH)*MEM_BACKUP_WIDTH) val req_cmd = in_buf >> UFix(((rbits+MEM_BACKUP_WIDTH-1)/MEM_BACKUP_WIDTH - (abits+MEM_BACKUP_WIDTH-1)/MEM_BACKUP_WIDTH)*MEM_BACKUP_WIDTH)
io.wide.req_cmd.valid := state === s_cmd io.wide.req_cmd.valid := state === s_cmd
io.wide.req_cmd.bits.tag := req_cmd io.wide.req_cmd.bits := io.wide.req_cmd.bits.fromBits(req_cmd)
io.wide.req_cmd.bits.addr := req_cmd.toUFix >> UFix(io.wide.req_cmd.bits.tag.width + io.wide.req_cmd.bits.rw.width)
io.wide.req_cmd.bits.rw := req_cmd(io.wide.req_cmd.bits.tag.width)
io.wide.req_data.valid := state === s_data io.wide.req_data.valid := state === s_data
io.wide.req_data.bits.data := in_buf >> UFix(((rbits+MEM_BACKUP_WIDTH-1)/MEM_BACKUP_WIDTH - (dbits+MEM_BACKUP_WIDTH-1)/MEM_BACKUP_WIDTH)*MEM_BACKUP_WIDTH) io.wide.req_data.bits.data := in_buf >> UFix(((rbits+MEM_BACKUP_WIDTH-1)/MEM_BACKUP_WIDTH - (dbits+MEM_BACKUP_WIDTH-1)/MEM_BACKUP_WIDTH)*MEM_BACKUP_WIDTH)

View File

@ -1,4 +1,4 @@
package rocket package uncore
import Chisel._ import Chisel._
import Constants._ import Constants._