Array Histogram Example - using SMI protocol
In this example some random sample data is sent to the FPGA, it is then sorted into bins to create a histogram. The process of sorting the data has been parallelized to work efficiently on the FPGA – the sample data is held in an array, and while the FPGA reads the sample data in from the array it concurrently sorts the data and writes it back into a new channel.
Structure
This directory contains code for an FPGA located at main.go
. It also has a
command, test-histogram
located at cmd/test-histogram/main.go
Testing
To run this example in a simulator, execute the following:
reco test test-histogram
This will simulate the code running on an FPGA using a hardware simulator, and test it
using the test-histogram
command.
Building
reco build
This will build your commands and FPGA code for execution on hardware.