Hi,
I'm working in a system with a very simple operation. It has a
microblaze processor and two peripherals (A and B), one for transmite
packets and the other to receive them.
1) Transmmiter takes IP packets from soft_temac peripheral, make some
transformations and pass it to peripheral A, which has to send it by
external fpga pins.
2) Receiver takes packets from external pins of peripheral B, make the
inverse transformations and pass it to the lwip stack, which has to send
it back to the soft_temac peripheral.
I've thought in two main ways to make de software for this purpouse:
- Use a simple standalone application, which read the state of
peripherals A and B and then decide if it's better to transmmite or to
receive, in order to avoid buffer's overflow.
- Use xilkernel with two threads, one for transmmiting and the other for
receiving.
It's my first project using Microblaze so i don't know what is the best
choice. I'm not very expert using threads and interrupts, so this is the
matter of my question,
Thanks in advance!
.