From f4e3e72ad1df151f156b32c6ac817465a8e6e5d7 Mon Sep 17 00:00:00 2001 From: Yunsup Lee Date: Mon, 23 Jul 2012 17:30:04 -0700 Subject: [PATCH] hoist HTIF_WIDTH out to consts --- rocket/src/main/scala/consts.scala | 1 + rocket/src/main/scala/top.scala | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) 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)