rocket-chip icon indicating copy to clipboard operation
rocket-chip copied to clipboard

Possible comment error of MaskGen

Open DecodeTheEncoded opened this issue 5 years ago • 0 comments

This line of comment indicates that calling MaskGen with add_lo be 0x3, the lgSize be 0, and beatBytes be 4 will get the result of 0x0001, but when I run this code in my test template: it is the reverse: 0x1000. Is this a comment error or I just get something wrong. I notice that Cat(helper(lgBytes-log2Ceil(groupBy)).map(_._1).reverse) reverse the result on purpose. @hcook @mwachs5 https://github.com/chipsalliance/rocket-chip/blob/bb10dbe38ddaf43412cd48821e8cf5bc392e862f/src/main/scala/util/Misc.scala#L194

DecodeTheEncoded avatar Mar 19 '21 03:03 DecodeTheEncoded