Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

msb/lsb notation #9

Closed
dalance opened this issue Dec 22, 2022 · 0 comments
Closed

msb/lsb notation #9

dalance opened this issue Dec 22, 2022 · 0 comments
Labels
lang Language design

Comments

@dalance
Copy link
Collaborator

dalance commented Dec 22, 2022

msb is expanded BIT_WIDTH-1.

always_comb {
    a = x[msb:8];
    b = x[10:lsb]; // lsb is the same as 0
}

https://zenn.dev/link/comments/3c2690ece30111

@dalance dalance added the lang Language design label Dec 22, 2022
dalance added a commit that referenced this issue Jan 31, 2023
@dalance dalance closed this as completed Jan 31, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
lang Language design
Projects
None yet
Development

No branches or pull requests

1 participant