Giter Site home page Giter Site logo

Support StrongEnum about chiseltest HOT 4 CLOSED

ucb-bar avatar ucb-bar commented on June 4, 2024 2
Support StrongEnum

from chiseltest.

Comments (4)

ducky64 avatar ducky64 commented on June 4, 2024 2

Will be looking into this 'soon', along with other simple quality-of-life fixes like #105.

That being said if you have code that is PR-ready (architecturally clean and code quality clean) reviews probably happen faster...

from chiseltest.

ducky64 avatar ducky64 commented on June 4, 2024 1

I worked on this a while ago and ended up blocked on available Enum APIs (see #111)

@hngenc I think what I need is a programmatic way to get a literal given the enum hardware object (EnumType) and the number the enum corresponds to. Though EnumFatory has apply(UInt), EnumType.factory is private (as it should be) - so maybe we can expose a specific API in DataMirror, like DataMirror.intToEnum(int, chiselTypeOf(enumHardwareObject)). Or, more broadly, DataMirror.enumFactoryOf(enumHardwareObject)?

from chiseltest.

zhuanhao-wu avatar zhuanhao-wu commented on June 4, 2024

hi, I'm trying this framework in my project, and the project is heavily based on StrongEnum within Bundle. It would be quite helpful if peek/poke of StrongEnum is supported.

I wonder if you plan to add support for StrongEnum in recent snapshots?

Currently, I have a workaround in my local branch to allow me to test StrongEnum in Bundles that mimics the implementation of the chisel-iotesters with Pokeable.
It seems feasible by adding the Element version of peek/poke/expect etc in the backend.

from chiseltest.

ekiwi avatar ekiwi commented on June 4, 2024

Let;s track this in #291

from chiseltest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.