pylab_ml.common.file_io

This script contains functions to handle the environment, such as inserting paths to sys.path and getting environment variables. It also includes a function to replace environment variables in a dictionary with their values.

Functions

filedialog(initialdir, title, filetypes)

Open a file dialog to select a file.

get_latestfile(filename[, logerror])

Get the file with the latest date.

help()

Lists all functions available in file_io module.

loadIHexFile(fileName[, bytemem, size])

Load an Intel Hex file into a byte array.

openFile(fileName, *argv, **kwargs)

Open a file with the given name.

readMemFile(filename[, typ, interpret])

Read a memory file in the specified format (verilog, txt, or QEMem).

readQEMemFile(fileName[, base])

Read a file with memory data in the DUMP_QE Software format.

readVerilogMemFile(filename)

Parses an EEPROM file with format '@Address Data' in hex and returns a dictionary with decimal keys and values.

readVlogMemFile(fileName[, memSize, ...])

Read a file with memory data in verilog hex format.

readtxtMemFile(fileName[, memSize, ...])

Read a file with memory data in simple hex or integer format.

replaceFilename(fileName)

Replace environment variables in the given file name with their values.

writeVlogMemFile(fileName, mem[, a_dig, ...])

Write memory data to a file in verilog hex format.