ebmmu提升到16个
This commit is contained in:
@@ -114,7 +114,7 @@ class MasterRegisterBundle extends Bundle{
|
||||
|
||||
|
||||
class SlaveRegisterBundle extends Bundle{
|
||||
val ebmmu = Vec(8, new EBMMU_Bundle)
|
||||
val ebmmu = Vec(16, new EBMMU_Bundle)
|
||||
|
||||
val localDevIndex = UInt(16.W)
|
||||
|
||||
@@ -439,7 +439,7 @@ abstract class InterfaceBase extends Module{
|
||||
( 0 until 128 ).map{ i =>
|
||||
( addr === ("h180".U(16.W) + i.U ) ) -> cReg.custom(i)
|
||||
} ++
|
||||
( 0 until 8 ).map{ i => Seq(
|
||||
( 0 until 16 ).map{ i => Seq(
|
||||
( ( addr === ( "h200".U(16.W) + (10*i).U) ) & isSlvMode ) -> sReg.ebmmu(i).lAddr( 7, 0),
|
||||
( ( addr === ( "h201".U(16.W) + (10*i).U) ) & isSlvMode ) -> sReg.ebmmu(i).lAddr(15, 8),
|
||||
( ( addr === ( "h202".U(16.W) + (10*i).U) ) & isSlvMode ) -> sReg.ebmmu(i).lAddr(23,16),
|
||||
@@ -702,7 +702,7 @@ trait InterfaceLVDSop{ this: InterfaceBase =>
|
||||
io.lvds.datar := RegEnable(AcquireReg(addr = io.lvds.addrr), io.lvds.isEnR)
|
||||
|
||||
|
||||
( 0 until 8 ).map{ i =>
|
||||
( 0 until 16 ).map{ i =>
|
||||
sReg.ebmmu(i).lAddr := Cat(
|
||||
RegEnable( io.lvds.dataw(5,0), 0.U, io.lvds.isEnW & isSlvMode & (io.lvds.addrw === ( "h203".U(16.W) + (10*i).U )) ),
|
||||
RegEnable( io.lvds.dataw, 0.U, io.lvds.isEnW & isSlvMode & (io.lvds.addrw === ( "h202".U(16.W) + (10*i).U )) ),
|
||||
|
||||
Reference in New Issue
Block a user