diff --git a/rocket/src/main/scala/consts.scala b/rocket/src/main/scala/consts.scala index 32cefbe7..ce243922 100644 --- a/rocket/src/main/scala/consts.scala +++ b/rocket/src/main/scala/consts.scala @@ -12,6 +12,7 @@ object Constants val MAX_THREADS = hwacha.Constants.NUM_PVFB * hwacha.Constants.WIDTH_PVFB / hwacha.Constants.SZ_BANK + val HTIF_WIDTH = 8 val MEM_BACKUP_WIDTH = 16 val BR_X = Bits("b????", 4) diff --git a/rocket/src/main/scala/top.scala b/rocket/src/main/scala/top.scala index d255ed5a..754f94c7 100644 --- a/rocket/src/main/scala/top.scala +++ b/rocket/src/main/scala/top.scala @@ -89,7 +89,6 @@ class Uncore(htif_width: Int, ntiles: Int, co: CoherencePolicyWithUncached) exte class Top extends Component { - val htif_width = 8 val co = if(ENABLE_SHARING) { if(ENABLE_CLEAN_EXCLUSIVE) new MESICoherence else new MSICoherence @@ -97,9 +96,9 @@ class Top extends Component if(ENABLE_CLEAN_EXCLUSIVE) new MEICoherence else new MICoherence } - val io = new ioTop(htif_width) + val io = new ioTop(HTIF_WIDTH) - val uncore = new Uncore(htif_width, NTILES, co) + val uncore = new Uncore(HTIF_WIDTH, NTILES, co) uncore.io <> io var error_mode = Bool(false)