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

Add numeral system for vector change data #46

Merged
merged 7 commits into from
Aug 28, 2022

Conversation

yihuajack
Copy link
Collaborator

Support base 2~33 (base 34 has 'X' issue); add argument -r or --radix; control displayed widths

Support base 2~33 (base 34 has 'X' issue); add argument -r or --radix; control displayed widths
@Ben1152000 Ben1152000 self-requested a review July 17, 2022 02:24
sootty/utils.py Outdated Show resolved Hide resolved
sootty/visualizer.py Outdated Show resolved Hide resolved
@yihuajack yihuajack added the enhancement New feature or request label Aug 5, 2022
1. Add parameter in wiregroup to svg
2. Move mutation of wire[index] to value to svg and use value_type instead
@yihuajack
Copy link
Collaborator Author

Another issue is that conventionally binary numbers are represented with leading zeros to fill all the bits to disambiguate with 2's complement. However, decimal numbers are represented without leading zeros. Should numbers in other bases be represented with or without leading zeros? Currently, only decimal numbers are represented without leading zeros.

@Ben1152000
Copy link
Owner

Ben1152000 commented Aug 26, 2022

Should numbers in other bases be represented with or without leading zeros?

I'd assume that for now we can treat the number as unsigned by default. It would be nice to be able to specify if a number is signed or unsigned though.

@Ben1152000 Ben1152000 self-requested a review August 26, 2022 16:53
@yihuajack yihuajack merged commit 4b36777 into Ben1152000:master Aug 28, 2022
@yihuajack yihuajack deleted the numeral-system branch September 6, 2022 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants