Developers
Downloads
Example Applications
The Mitrion SDK includes a number of example applications that show Mitrion-C programming concepts and the interaction between ANSI-C or Fortran code running on the CPU and the Mitrion-C program running on the FPGA.The examples include ANSI-C or Fortran host programs, Mitrion-C programs, make files, documentation and more, and are ready to run using the Mitrion Simulator, or on FGPA hardware. See below for a selection of examples:
Mersenne twister pseudorandom numbers
The Mersenne twister is a pseudorandom number generator developed in 1997 by Makoto Matsumoto and Takuji Nishimura that is based on a matrix linear recurrence over a finite binary field F2. It has been designed for fast generation of very high quality pseudorandom numbers. The name is derived from the fact that period length is chosen to be a Mersenne prime. The Mereseen twister example only uses a small fraction of the FPGA resources, making it an ideal part of a Monte-Carlo algorithm.
Click her to read the documentation for the Mersenne example.
Download the Mersenne example source code (ZIP, 48 KB)SAXPY – Linear Algebra
This example consists of a host program and Mitrion-C program to perform the BLAS level 1 routine SAXPY (Single precision Alpha X Plus Y), utilizing FPGA hardware acceleration.
Click her to read the documentation for the SAXPY example.
Download the SAXPY example source code (ZIP, 40 KB)Sobel – Image Processing Using Sobel Convolution
Edges characterize boundaries and are a problem of fundamental importance in image processing. Edges in images are areas with strong intensity contrasts – a jump in intensity from one pixel to the next. The Sobel operator performs a 2-D spatial gradient measurement on an image. Typically it is used to find the approximate absolute gradient magnitude at each point in an input grayscale image.
Click Click her to read the documentation for the Sobel example.
Download the Sobel example source code (ZIP, 384 KB)