-
Notifications
You must be signed in to change notification settings - Fork 276
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
[HGLDD] Emit HW struct and array types #6816
Comments
Hello, I would be interested in giving this a shot. |
That sounds great! You'll probably want to look at the part of HGLDD emission that handles the |
Finally had a chance to look into it. Just make sure I understand it correctly, I would have to make a check like this here:
Or am I misunderstanding the VariableOp here? |
@fabianschuiki Could you give me a hint how I can access the underlying |
You can use dedicated operations like |
@fabianschuiki Thanks! But don't I need a builder to create the |
Ah that's a great point! Yeah you're right, because we're emitting an HGLDD JSON file here, and the SV file has already been generated, there is no way to generate any extract ops. So in case you see an |
The
EmitHGLDD
target can emit the necessary HGLDD JSON bits to encode arrays and structs when it seesdbg.array
anddbg.struct
operations, but it ignoresdbg.variable
ops with!hw.array
and!hw.struct
types. Supporting these native HW types and creating the corresponding JSON structures should be fairly straightforward.The text was updated successfully, but these errors were encountered: