cornell-brg / pymtl

Python-based hardware modeling framework
BSD 3-Clause "New" or "Revised" License
234 stars 83 forks source link

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

Open dmlockhart opened 9 years ago

dmlockhart commented 9 years ago

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:

Things to check:

Things that work: