Ejemplo n.º 1
0
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())
Ejemplo n.º 2
0
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)
Ejemplo n.º 3
0
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)