def main(bitfilename): x = XuLA() t = time.time() x.progpin(1) x.progpin(0) x.progpin(1) time.sleep(0.03) x.load(BitFile(bitfilename)) t = time.time() - t print "load complete, took", elapsed(t) + ", USERCODE =", hex(x.usercode())
def main(bitfilename): x = XuLA() t = time.time() x.write_flash(BitFile(bitfilename), 0, True) t = time.time() - t print "download complete, took", elapsed(t)
def main(bitfilename, loaddr, hiaddr): x = XuLA() t = time.time() x.read_flash(bitfilename, string.atoi(loaddr, 0), string.atoi(hiaddr, 0), True) t = time.time() - t print "read complete, took", elapsed(t)