SimpleBusInterconnect now adapte address width
This commit is contained in:
parent
00bf84b7f8
commit
51de2b5820
|
@ -52,7 +52,7 @@ class MuraxMasterArbiter(simpleBusConfig : SimpleBusConfig) extends Component{
|
|||
}
|
||||
|
||||
|
||||
class MuraxSimpleBusRam(onChipRamSize : BigInt, onChipRamHexFile : String, simpleBusConfig : SimpleBusConfig) extends Component{
|
||||
case class MuraxSimpleBusRam(onChipRamSize : BigInt, onChipRamHexFile : String, simpleBusConfig : SimpleBusConfig) extends Component{
|
||||
val io = new Bundle{
|
||||
val bus = slave(SimpleBus(simpleBusConfig))
|
||||
}
|
||||
|
|
|
@ -271,7 +271,15 @@ case class SimpleBusInterconnect(){
|
|||
}
|
||||
|
||||
for(connection <- connections){
|
||||
connection.connector(connectionsInput(connection), connectionsOutput(connection))
|
||||
val m = connectionsInput(connection)
|
||||
val s = connectionsOutput(connection)
|
||||
if(m.config == s.config) {
|
||||
connection.connector(m, s)
|
||||
}else{
|
||||
val tmp = cloneOf(s)
|
||||
m >> tmp //Adapte the bus kind.
|
||||
connection.connector(tmp,s)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue