예제 #1
0
파일: loader.py 프로젝트: jlublin/xula-py
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())
예제 #2
0
파일: flash.py 프로젝트: jlublin/xula-py
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)
예제 #3
0
파일: rdflash.py 프로젝트: jlublin/xula-py
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)