We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I started porting some tests from chiseltest to ChiselSim and found some usability gaps that could be improved. Also some error:
peekLit
peek().litValue
c.io.DecoderPort.inst.peek() should be(inst)
c.io.DecoderPort.inst.peekValue().asBigInt should be(inst.litValue)
inst
chiseltest.experimental.expose
chisel3.experimental.Analog
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 } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ChiselSim Improvements
I started porting some tests from chiseltest to ChiselSim and found some usability gaps that could be improved. Also some error:
peekLit
instead ofpeek().litValue
like sample1.c.io.DecoderPort.inst.peek() should be(inst)
instead ofc.io.DecoderPort.inst.peekValue().asBigInt should be(inst.litValue)
whereinst
is a ChiseEnum - (Reported on [ChiselSim] ChiselEnum does not provide peek/poke methods and user-friendly API #4208)chiseltest.experimental.expose
like Observe.scalachisel3.experimental.Analog
ports (Modules withchisel3.experimental.Analog
ports generate error using ChiselSim #4202)Refs:
Sample 1:
The text was updated successfully, but these errors were encountered: