class insn_mem: memory=[8*'0']*4*1024*16 def fetch(self,address): insn=self.memory[address] return insn