Merge pull request #350 from AdDraw/master

Add cmd halfPipe function to DBusSimpleBus
This commit is contained in:
Dolu1990 2023-06-16 07:47:40 +01:00 committed by GitHub
commit d95c9356fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -103,6 +103,13 @@ case class DBusSimpleBus(bigEndian : Boolean = false) extends Bundle with IMaste
s
}
def cmdHalfPipe() : DBusSimpleBus = {
val s = DBusSimpleBus(bigEndian)
s.cmd << this.cmd.halfPipe()
s.rsp >> this.rsp
s
}
def genMask(cmd : DBusSimpleCmd) = {
if(bigEndian)
cmd.size.mux(
@ -245,7 +252,7 @@ case class DBusSimpleBus(bigEndian : Boolean = false) extends Bundle with IMaste
}
bus
}
def toBmb() : Bmb = {
val pipelinedMemoryBusConfig = DBusSimpleBus.getBmbParameter()
val bus = Bmb(pipelinedMemoryBusConfig)