

def mem_copy(mem, src_ptr, dest_ptr, nbytes):
    for i in range(nbytes):
        mem[(dest_ptr + i)] = mem[(src_ptr + i)]

dataset/ETHPy150Open cornell-brg/pymtl/pclib/fl/BytesMemPortAdapter_test.py mem_copy/original