@@ -118,11 +118,11 @@ object DataCacheCpuExecute{
118118}
119119
120120case class DataCacheCpuExecute (p : DataCacheConfig ) extends Bundle with IMasterSlave {
121- val isValid = Bool
121+ val isValid = Bool ()
122122 val address = UInt (p.addressWidth bit)
123- val haltIt = Bool
123+ val haltIt = Bool ()
124124 val args = DataCacheCpuExecuteArgs (p)
125- val refilling = Bool
125+ val refilling = Bool ()
126126
127127 override def asMaster (): Unit = {
128128 out(isValid, args, address)
@@ -131,7 +131,7 @@ case class DataCacheCpuExecute(p : DataCacheConfig) extends Bundle with IMasterS
131131}
132132
133133case class DataCacheCpuExecuteArgs (p : DataCacheConfig ) extends Bundle {
134- val wr = Bool
134+ val wr = Bool ()
135135 val size = UInt (log2Up(log2Up(p.cpuDataBytes)+ 1 ) bits)
136136 val isLrsc = p.withLrSc generate Bool ()
137137 val isAmo = p.withAmo generate Bool ()
@@ -144,9 +144,9 @@ case class DataCacheCpuExecuteArgs(p : DataCacheConfig) extends Bundle{
144144}
145145
146146case class DataCacheCpuMemory (p : DataCacheConfig , mmu : MemoryTranslatorBusParameter ) extends Bundle with IMasterSlave {
147- val isValid = Bool
148- val isStuck = Bool
149- val isWrite = Bool
147+ val isValid = Bool ()
148+ val isStuck = Bool ()
149+ val isWrite = Bool ()
150150 val address = UInt (p.addressWidth bit)
151151 val mmuRsp = MemoryTranslatorRsp (mmu)
152152
@@ -222,14 +222,14 @@ case class DataCacheCpuBus(p : DataCacheConfig, mmu : MemoryTranslatorBusParamet
222222
223223
224224case class DataCacheMemCmd (p : DataCacheConfig ) extends Bundle {
225- val wr = Bool
226- val uncached = Bool
225+ val wr = Bool ()
226+ val uncached = Bool ()
227227 val address = UInt (p.addressWidth bit)
228228 val data = Bits (p.cpuDataWidth bits)
229229 val mask = Bits (p.cpuDataWidth/ 8 bits)
230230 val size = UInt (p.sizeWidth bits) // ... 1 => 2 bytes ... 2 => 4 bytes ...
231231 val exclusive = p.withExclusive generate Bool ()
232- val last = Bool
232+ val last = Bool ()
233233
234234// def beatCountMinusOne = size.muxListDc((0 to p.sizeMax).map(i => i -> U((1 << i)/p.memDataBytes)))
235235// def beatCount = size.muxListDc((0 to p.sizeMax).map(i => i -> U((1 << i)/p.memDataBytes-1)))
@@ -244,7 +244,7 @@ case class DataCacheMemRsp(p : DataCacheConfig) extends Bundle{
244244 val aggregated = UInt (p.aggregationWidth bits)
245245 val last = Bool ()
246246 val data = Bits (p.memDataWidth bit)
247- val error = Bool
247+ val error = Bool ()
248248 val exclusive = p.withExclusive generate Bool ()
249249}
250250case class DataCacheInv (p : DataCacheConfig ) extends Bundle {
@@ -708,7 +708,7 @@ class DataCache(val p : DataCacheConfig, mmuParameter : MemoryTranslatorBusParam
708708 io.mem.sync.ready := True
709709 val syncCount = io.mem.sync.aggregated +^ 1
710710 val syncContext = new Area {
711- val history = Mem (Bool , pendingMax)
711+ val history = Mem (Bool () , pendingMax)
712712 val wPtr, rPtr = Reg (UInt (log2Up(pendingMax)+ 1 bits)) init(0 )
713713 when(io.mem.cmd.fire && io.mem.cmd.wr){
714714 history.write(wPtr.resized, io.mem.cmd.uncached)
0 commit comments