cornell-brg / pymtl

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

Accessing Submodule PortList in Concurrent Block translates incorrectly #81

Closed dmlockhart closed 10 years ago

dmlockhart commented 10 years ago

Temporary array generation creates incorrect array names for the following code:

class SubmodPortList( Model ):
  def __init__( s ): 
    s.in_ = InPort [2]( 4 )
    s.out = OutPort[2]( 4 )
    s.submod = ListOfWires()
    @s.combinational
    def logic_in():
      s.submod.in_[0].value = s.in_[0]
      s.submod.in_[1].value = s.in_[1]
  ...