You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CMSIS-DSP/SDFTools/examples/example4/debug.py

25 lines
325 B
Python

import sys
# To find SDF module
sys.path.append("../..")
import numpy as np
from sdf.schedule.simu import *
a=np.zeros(10)
f=FIFO(10,a)
f.dump()
nb = 1
for i in range(4):
w=f.getWriteBuffer(2)
w[0:2]=nb*np.ones(2)
nb = nb + 1
f.dump()
print(a)
for i in range(4):
w=f.getReadBuffer(2)
print(w)