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

Nested submodule and port list accesses do not translate correctly #137

Open
dmlockhart opened this issue May 13, 2015 · 0 comments
Open

Comments

@dmlockhart
Copy link
Contributor

Code that has two subscript operators like so:

  s.mod[0].port_list[0]

Fails if port_list is a list of ports.

Note that the following scenario (bit slicing a port that is not in a port list) works fine:

  s.mod[0].single_port[0]

Things that fail:

  • list-index of a port-list accessed via a module list (mod[i].port_list[j])

Things to check:

  • bit-index of a port accessed via a port-list (mod.port_list[i][j])
  • bit-index of a port accessed via a port-list accessed via a module list (mod[i].port_list[j][k])
  • list-index of a 2-D port-list (mod.port_list[i][j])
  • bit-index of a port accessed via 2-D port-list (mod.port_list[i][j][k])
  • port accessed from a 2-D module-list (mod[i][j].port)
  • bit-index of a port accessed from a 2-D module-list (mod[i][j].port[k])
  • etc...

Things that work:

  • bit-index of a port accessed via submodule list (mod[i].single_port[j])
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