8000 [ChiselSim] ChiselEnum does not provide peek/poke methods and user-friendly API · Issue #4208 · chipsalliance/chisel · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[ChiselSim] ChiselEnum does not provide peek/poke methods and user-friendly API #4208
Open
@carlosedp

Description

@carlosedp

While rewriting some tests from chiseltest to ChiselSim, I've noticed ChiselEnum is not handled by the Peek/Poke API.

In a test with c.io.inst.peek() should be(inst) where inst is a ChiselEnum.Type, I get: value peek is not a member of chiselv.Instruction.Type.

The closest thing I could get to work is

c.io.inst.peekValue().asBigInt should be(inst.litValue)

Which is very convoluted and not user-friendly.

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

      0