Merge pull request #248 from dnltz/WIP/dnltz/fix-reg
plugin: caches: Fix "Can't resolve the literal value of"
This commit is contained in:
commit
8a8e976493
|
@ -295,7 +295,7 @@ class DBusCachedPlugin(val config : DataCacheConfig,
|
|||
|
||||
pipeline plug new Area{
|
||||
//Memory bandwidth counter
|
||||
val rspCounter = RegInit(UInt(32 bits)) init(0)
|
||||
val rspCounter = Reg(UInt(32 bits)) init(0)
|
||||
when(dBus.rsp.valid){
|
||||
rspCounter := rspCounter + 1
|
||||
}
|
||||
|
|
|
@ -141,7 +141,7 @@ class IBusCachedPlugin(resetVector : BigInt = 0x80000000l,
|
|||
iBus.cmd.address.allowOverride := cache.io.mem.cmd.address
|
||||
|
||||
//Memory bandwidth counter
|
||||
val rspCounter = RegInit(UInt(32 bits)) init(0)
|
||||
val rspCounter = Reg(UInt(32 bits)) init(0)
|
||||
when(iBus.rsp.valid){
|
||||
rspCounter := rspCounter + 1
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue