Skip to content

ChiselSim improvements to close the gap to chiseltest #4203

Open
@carlosedp

Description

@carlosedp

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
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions