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

Preservation of signedness flag on attribute values inconsistent #4793

Open
povik opened this issue Dec 2, 2024 · 0 comments
Open

Preservation of signedness flag on attribute values inconsistent #4793

povik opened this issue Dec 2, 2024 · 0 comments
Labels
pending-verification This issue is pending verification and/or reproduction

Comments

@povik
Copy link
Member

povik commented Dec 2, 2024

Version

a8a65db

On which OS did this happen?

macOS

Reproduction Steps

read_rtlil <<EOF
attribute \a 32's00000000000000000000000000000100
attribute \b 32'00000000000000000000000000000100
attribute \c 5's00100
attribute \d 5'00100
module \top
end
EOF
write_rtlil /tmp/save.il
design -reset
read_rtlil /tmp/save.il
write_rtlil /tmp/save.il
design -reset
read_rtlil /tmp/save.il
dump

Expected Behavior

Values of a and b are distinguishable

Actual Behavior

autoidx 1

attribute \d 5'00100
attribute \c 5's00100
attribute \b 4
attribute \a 4
module \top
end

Values for c and d are distinguishable, not so for a and b

This is due to the autoint branch in RTLIL_BACKEND::dump_const

@povik povik added the pending-verification This issue is pending verification and/or reproduction label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-verification This issue is pending verification and/or reproduction
Projects
None yet
Development

No branches or pull requests

1 participant