diff --git a/ext/VexRiscv b/ext/VexRiscv index 03471736..7723afc0 160000 --- a/ext/VexRiscv +++ b/ext/VexRiscv @@ -1 +1 @@ -Subproject commit 03471736e164a7cb8e31084e0254a6b973615169 +Subproject commit 7723afc083035e349151d0a3cf8293e2b6a77408 diff --git a/hardware/scala/saxon/Misc.scala b/hardware/scala/saxon/Misc.scala index b143b04a..776eb203 100644 --- a/hardware/scala/saxon/Misc.scala +++ b/hardware/scala/saxon/Misc.scala @@ -51,7 +51,8 @@ object BspGenerator { // val gName = camelToUpperCase(g.getName()) def rec(prefix : String, value : Any): Unit = value match { - case value : Int => headerWriter.println(s"#define ${prefix} $value") + case value: Int => headerWriter.println(s"#define ${prefix} $value") + case value: BigInt => headerWriter.println(f"#define ${prefix} 0x${value}%x") case value : FixedFrequency => headerWriter.println(s"#define ${prefix} ${value.getValue.toBigDecimal.toBigInt.toString(10)}") case value : Boolean => headerWriter.println(s"#define ${prefix} ${if(value) 1 else 0}") case value : SpinalEnumElement[_] => headerWriter.println(s"#define ${prefix} $value")