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 fixes on data assignment and namespaces #844

Conversation

Sustrak
Copy link
Contributor

@Sustrak Sustrak commented Nov 3, 2023

This MR provides two fixes for slang-reflect:

  • Corrects assignment of member data, when member is bigger than 64 bits.
  • Corrects namespacing of types outside of the pkg namespace.

We were not checking if a struct member was greater than 64 bits
when giving it a value in the struct constructor, and always using the
to_uint64() function loosing data in the conversion.
When returning a non-primitive type from a get_* function, we were
assuming that the type was part of the current namespace, which is not
always true. This commit fixes this issue by adding the namespace
when necessary.
Copy link

codecov bot commented Nov 3, 2023

Codecov Report

Merging #844 (9a4fa3e) into master (a682452) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #844   +/-   ##
=======================================
  Coverage   93.70%   93.70%           
=======================================
  Files         191      191           
  Lines       46354    46354           
=======================================
  Hits        43436    43436           
  Misses       2918     2918           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a682452...9a4fa3e. Read the comment docs.

@MikePopoloski MikePopoloski merged commit d584282 into MikePopoloski:master Nov 3, 2023
17 checks passed
@Sustrak Sustrak deleted the hotfix/slang-reflect-namespace-and-systemc branch November 17, 2023 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants