Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChiselSim improvements to close the gap to chiseltest #4203

Open
6 tasks
carlosedp opened this issue Jun 21, 2024 · 0 comments
Open
6 tasks

ChiselSim improvements to close the gap to chiseltest #4203

carlosedp opened this issue Jun 21, 2024 · 0 comments

Comments

@carlosedp
Copy link
Contributor

carlosedp commented Jun 21, 2024

ChiselSim Improvements

I started porting some tests from chiseltest to ChiselSim and found some usability gaps that could be improved. Also some error:

Refs:

Sample 1:

// Scala 2 extension methods for Chisel Data types converting peek().litValue to peekLit
object ObjectUtils {
  // For UInt and SInt
  implicit class UIntLitValue(u: UInt) {
    def peekLit: BigInt = u.peek().litValue
  }
  implicit class SIntLitValue(s: SInt) {
    def peekLit: BigInt = s.peek().litValue
  }
  // For Bool
  implicit class BoolLitValue(b: Bool) {
    def peekLit: Boolean = b.peek().litToBoolean
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant