def __init__(self, debug_mode=1, dry_mode=True, saveFileName=None): global BUFFER_ADDRESS_LOGGER, BUFFER_LEN_LOGGER self.DEBUG_MODE = debug_mode self.DRY_MODE = dry_mode self.x393_mem = X393Mem(debug_mode, dry_mode) self.x393_axi_tasks = x393_axi_control_status.X393AxiControlStatus( debug_mode, dry_mode) self.x393_utils = x393_utils.X393Utils( debug_mode, dry_mode, saveFileName) # should not overwrite save file path self.X393_gpio = x393_gpio.X393GPIO(debug_mode, dry_mode, saveFileName) try: self.verbose = vrlg.VERBOSE except: pass if dry_mode: print("Running in simulated mode, using hard-coded addresses:") else: try: with open(MEM_PATH + BUFFER_ADDRESS_LOGGER_NAME) as sysfile: BUFFER_ADDRESS_LOGGER = int(sysfile.read(), 0) with open(MEM_PATH + BUFFER_PAGES_LOGGER_NAME) as sysfile: BUFFER_LEN_LOGGER = PAGE_SIZE * int(sysfile.read(), 0) except: print("Failed to get reserved physical memory range") print('BUFFER_ADDRESS_LOGGER=', BUFFER_ADDRESS_LOGGER) print('BUFFER_LEN_LOGGER=', BUFFER_LEN_LOGGER) return print('BUFFER_ADDRESS_LOGGER=0x%x' % (BUFFER_ADDRESS_LOGGER)) print('BUFFER_LEN_LOGGER=0x%x' % (BUFFER_LEN_LOGGER))
def __init__(self, debug_mode=1,dry_mode=True, saveFileName=None): self.DEBUG_MODE= debug_mode self.DRY_MODE= dry_mode self.x393_mem= X393Mem(debug_mode,dry_mode) self.x393_axi_tasks= x393_axi_control_status.X393AxiControlStatus(debug_mode,dry_mode) self.x393_utils= x393_utils.X393Utils(debug_mode,dry_mode, saveFileName) # should not overwrite save file path try: self.verbose=vrlg.VERBOSE except: pass
print("======= Parameters =======") for par in parameters: try: print(par + " = " + hex(parameters[par][0]) + " (type = " + parameters[par][1] + " raw = " + parameters[par][2] + ")") except: print(par + " = " + str(parameters[par][0]) + " (type = " + parameters[par][1] + " raw = " + parameters[par][2] + ")") print("vrlg.VERBOSE=" + str(vrlg.VERBOSE)) print("vrlg.VERBOSE__TYPE=" + str(vrlg.VERBOSE__TYPE)) print("vrlg.VERBOSE__RAW=" + str(vrlg.VERBOSE__RAW)) x393mem = x393_mem.X393Mem(verbose, args.simulated) #add dry run parameter x393utils = x393_utils.X393Utils(verbose, args.simulated, args.localparams) x393tasks = x393_axi_control_status.X393AxiControlStatus( verbose, args.simulated) x393Pio = x393_pio_sequences.X393PIOSequences(verbose, args.simulated) x393Timing = x393_mcntrl_timing.X393McntrlTiming(verbose, args.simulated) x393Buffers = x393_mcntrl_buffers.X393McntrlBuffers( verbose, args.simulated) x393Tests = x393_mcntrl_tests.X393McntrlTests(verbose, args.simulated) x393Eyepatterns = x393_mcntrl_eyepatterns.X393McntrlEyepattern( verbose, args.simulated) x393Adjust = x393_mcntrl_adjust.X393McntrlAdjust(verbose, args.simulated, args.localparams) X393Membridge = x393_mcntrl_membridge.X393McntrlMembridge( verbose, args.simulated) x393SensCmprs = x393_sens_cmprs.X393SensCmprs(verbose, args.simulated, args.localparams)