1
0

ahb: backport to chisel2

Merges #16
This commit is contained in:
Wesley W. Terpstra 2016-05-25 11:01:59 -07:00 committed by Andrew Waterman
parent a9599302bd
commit 1c8745dfd2

View File

@ -459,9 +459,12 @@ class HastiTestSRAM(depth: Int)(implicit p: Parameters) extends HastiModule()(p)
// The mask and address during the address phase
val a_request = io.hsel && (io.htrans === HTRANS_NONSEQ || io.htrans === HTRANS_SEQ)
val a_mask = mask_shift(hastiDataBytes-1, 0)
val a_mask = Wire(UInt(width = hastiDataBytes))
val a_address = io.haddr >> UInt(hastiAlignment)
val a_write = io.hwrite
// for backwards compatibility with chisel2, we needed a static width in definition
a_mask := mask_shift(hastiDataBytes-1, 0)
// The data phase signals
val d_read = RegEnable(a_request && !a_write, Bool(false), ready)