From 6571721c7383fa6345a598ad6e7a8b12913fb6ee Mon Sep 17 00:00:00 2001 From: Asherah Connor Date: Sun, 2 Jun 2024 23:53:20 +0300 Subject: [PATCH] hz from Int to BigInt. good lord. --- src/main/scala/ee/hrzn/chryse/platform/Platform.scala | 2 +- .../scala/ee/hrzn/chryse/platform/resource/ClockSource.scala | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/scala/ee/hrzn/chryse/platform/Platform.scala b/src/main/scala/ee/hrzn/chryse/platform/Platform.scala index 3f35be6..a60cf5d 100644 --- a/src/main/scala/ee/hrzn/chryse/platform/Platform.scala +++ b/src/main/scala/ee/hrzn/chryse/platform/Platform.scala @@ -20,5 +20,5 @@ package ee.hrzn.chryse.platform trait Platform { val id: String - val clockHz: Int + val clockHz: BigInt } diff --git a/src/main/scala/ee/hrzn/chryse/platform/resource/ClockSource.scala b/src/main/scala/ee/hrzn/chryse/platform/resource/ClockSource.scala index 3ae1a2a..8f664d5 100644 --- a/src/main/scala/ee/hrzn/chryse/platform/resource/ClockSource.scala +++ b/src/main/scala/ee/hrzn/chryse/platform/resource/ClockSource.scala @@ -20,8 +20,8 @@ package ee.hrzn.chryse.platform.resource import chisel3._ -case class ClockSource(hz: Int) extends ResourceData(Input(Clock())) {} +case class ClockSource(hz: BigInt) extends ResourceData(Input(Clock())) {} object ClockSource { - def apply(hz: Int) = new ClockSource(hz) + def apply(hz: BigInt) = new ClockSource(hz) }