def _run_batch(self, addr): # creates a new thread, passing in ram, the os, and the # starting address self._cpu = CPU(self._ram, calos.CalOS(), addr, self._debug) self._cpu.set_program_list_addr(addr) # NS - Set the program list addr self._cpu.start() # call run() self._cpu.join() # wait for it to end
def _run_batch(self, addr): # creates a new thread, passing in ram, the os, and the # starting address self._cpu = CPU(self._ram, calos.CalOS(), addr, self._debug) self._cpu.set_batch(True) #call set_batch self._cpu.start() # call run() self._cpu.join() # wait for it to end
def _run_program(self, addr, batch_mode): # creates a new thread, passing in ram, the os, and the # starting address and whether batch mode is needed self._cpu = CPU(self._ram, calos.CalOS(), addr, self._debug, batch_mode) self._cpu.start() # call run() self._cpu.join() # wait for it to end
def __init__(self, ram): self._debug = False self._ram = ram self._os = calos.CalOS(ram) # may have to become a list of cores self._cpu = CPU(self._ram, self._os) self._os.set_cpu(self._cpu) self.set_debug(False)
def __init__(self, ram): self._debug = False self._ram = ram self._os = calos.CalOS() self._cpus = [ CPU(self._ram, self._os, 0) ] # , CPU(self._ram, self._os, 1) ] # self._cpus = [ CPU(self._ram, self._os, 0) ] self._os.set_cpus(self._cpus) self.set_debug(False)
def _run_batch(self, addr): #runs multiple programs whose addresses are stored at addr self._cpu = CPU(self._ram, calos.CalOS(), addr, self._debug) self._cpu.set_mode(True) self._cpu.start() self._cpu.join()
def _run_batch_programs(self, batchAddr): #creates a new thread passing in the ram, os, and, batch address, and batchMode boolean to true self._cpu = CPU(self._ram, calos.CalOS(), batchAddr, self._debug, batchMode=True) self._cpu.start() # call run() self._cpu.join() # wait for it to end
def _run_batch(self, addr): self._cpu = CPU(self._ram, calos.CalOS(), addr, self._debug, True) self._cpu.set_batch_start_addr(addr) # set the starting address self._cpu.start() self._cpu.join()
def _run_batch(self, addr): '''Creates a new CPU in batch mode so it can run multiple programs''' self._cpu = CPU(self._ram, calos.CalOS(), addr, self._debug, True) self._cpu.start() # call run() self._cpu.join() # wait for it to end
def _run_batch(self, addr): # creates a new thread, passing in ram, the os, and the # starting address, and setting batch_mode = TRUE this time self._cpu = CPU(self._ram, calos.CalOS(), addr, self._debug, True) self._cpu.start() # call run() self._cpu.join() # wait for it to end