How to use the pisa.SparseMemoryImage.SparseMemoryImage.Section function in pisa

To help you get started, we’ve selected a few pisa examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cornell-brg / pymtl / pisa / SparseMemoryImage.py View on Github external
def add_section( self, section, addr=None, data=None ):
    if isinstance( section, SparseMemoryImage.Section ):
      self.sections.append( section )
    else:
      sec = SparseMemoryImage.Section( section, addr, data )
      self.sections.append( sec )