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

slang-reflect: Add support to reflect Unions #1173

Merged

Commits on Nov 13, 2024

  1. Configuration menu
    Copy the full SHA
    ef52159 View commit details
    Browse the repository at this point in the history
  2. slang-reflect: Add support to reflect Unions

    This commit adds support to slang-reflect to support unions.
    As SystemVerilog structs are not 1:1 translatable to C++, because, for
    example, a C++ struct might not be stored as an array of bits as it is
    done in SystemVerilog.
    The SystemVerilog union is reflected as a struct
    with a single member with the data of the union. Helper functions are
    generated to retrieve the different members of the union with the
    corresponding type.
    Sustrak committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    d1ce3d9 View commit details
    Browse the repository at this point in the history
  3. slang-reflect: Minor improvements of the code

    * Make use of std::views:keys
    * Fix typo in a comment
    Sustrak committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    c613d97 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    63aeb24 View commit details
    Browse the repository at this point in the history