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 a global check for overlapping net aliases #947

Open
MikePopoloski opened this issue Apr 7, 2024 · 0 comments
Open

Add a global check for overlapping net aliases #947

MikePopoloski opened this issue Apr 7, 2024 · 0 comments

Comments

@MikePopoloski
Copy link
Owner

To avoid errors in specification, it is not allowed to specify an alias from an individual signal to itself or to
specify a given alias more than once. The following version of the preceding code would be illegal because
the top 4 bits and bottom 4 bits are the same in both statements:
  alias bus16 = {high12[11:8], low12};
  alias bus16 = {high12, low12[3:0]};

This alternative is also illegal because the bits of bus16 are being aliased to itself:
  alias bus16 = {high12, bus16[3:0]} = {bus16[15:12], low12};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant