This FPGA design example shows the basic functionality of threads creation. The main thread creates 8 flashing LED threads, each LED switching on and off at a different interval. The ID of the LED to flash is given as an argument. The main thread then joins all the created threads. These threads run for 10 seconds. It also shows how threads can pass exit information to each other with their return values. Some information is printed to the Terminal Instrument.
The TSK3000, PRTIO, Terminal Instrument and SRAM controller cores are used in this example.
Altium Designer projects included in this download:
- Threads.PrjFpg
- Threads.PrjEmb