From 5affd3bec24a89df23b97580abfcd72303522a84 Mon Sep 17 00:00:00 2001 From: Megan Wachs Date: Fri, 16 Feb 2018 10:24:12 -0800 Subject: [PATCH] RegFieldDesc: fix the output produced for undescribed registers --- src/main/scala/tilelink/RegisterRouter.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/tilelink/RegisterRouter.scala b/src/main/scala/tilelink/RegisterRouter.scala index b194d8f5..55b58fe4 100644 --- a/src/main/scala/tilelink/RegisterRouter.scala +++ b/src/main/scala/tilelink/RegisterRouter.scala @@ -88,7 +88,7 @@ case class TLRegisterNode( val regDescs = mapping.flatMap { case (offset, seq) => var currentBitOffset = 0 seq.zipWithIndex.map { case (f, i) => { - val tmp = (f.desc.map{ _.name}.getOrElse(s"unnamedRegField${i}") -> ( + val tmp = (f.desc.map{ _.name}.getOrElse(s"unnamedRegField${offset.toHexString}_${currentBitOffset}") -> ( ("byteOffset" -> s"0x${offset.toHexString}") ~ ("bitOffset" -> currentBitOffset) ~ ("bitWidth" -> f.width) ~