Add rocket-chip inspired tests

This commit is contained in:
Edward Wang
2017-08-03 13:13:16 -07:00
committed by edwardcwang
parent e726daec41
commit 676b8e72ba
2 changed files with 152 additions and 1 deletions

View File

@@ -223,7 +223,6 @@ class MacroCompilerPass(mems: Option[Seq[Macro]],
} else {
require(libPort.src.effectiveMaskGran == 1, "only single-bit mask supported for now")
require(isPowerOfTwo(memPort.src.effectiveMaskGran), "only powers of two masks supported for now")
require(isPowerOfTwo(libPort.src.effectiveMaskGran), "only powers of two masks supported for now")
cat(((low to high) map (i => bits(WRef(mem), i / memPort.src.effectiveMaskGran))).reverse)