ahb: amoalu does not need so many parameters! (i want to reuse it)
This commit is contained in:
parent
00d31dc5c5
commit
ace9362d81
@ -51,8 +51,9 @@ class LoadGen(typ: UInt, addr: UInt, dat: UInt, zero: Bool, maxSize: Int) {
|
|||||||
def data = genData(0)
|
def data = genData(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
class AMOALU(rhsIsAligned: Boolean = false)(implicit p: Parameters) extends CacheModule()(p) {
|
class AMOALU(rhsIsAligned: Boolean = false)(implicit p: Parameters) extends Module {
|
||||||
val operandBits = p(AmoAluOperandBits)
|
val operandBits = p(AmoAluOperandBits)
|
||||||
|
val blockOffBits = p(CacheBlockOffsetBits)
|
||||||
require(operandBits == 32 || operandBits == 64)
|
require(operandBits == 32 || operandBits == 64)
|
||||||
val io = new Bundle {
|
val io = new Bundle {
|
||||||
val addr = Bits(INPUT, blockOffBits)
|
val addr = Bits(INPUT, blockOffBits)
|
||||||
|
Loading…
Reference in New Issue
Block a user