Hi @pynquser,
Welcome to the PYNQ community.
I suggest you check out these tutorials:
You should also provide more details of the interfaces to your logic. This way the answer can be more specific.
Mario