#NEWLINE# def _get_block( self , addr ) : #NEWLINE# #INDENT# if ( addr in self . _block_cache ) : #NEWLINE# #INDENT# return self . _block_cache [ addr ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( addr in self . block_addrs ) : #NEWLINE# #INDENT# block = self . _project . factory . block ( addr , max_size = self . _block_sizes [ addr ] ) #NEWLINE# self . _block_cache [ addr ] = block #NEWLINE# return block #NEWLINE# #UNINDENT# block = self . _project . factory . block ( addr ) #NEWLINE# self . _block_sizes [ addr ] = block . size #NEWLINE# return block