Section 11.2. Performing Desktop Simulation

11.2. Performing Desktop Simulation

If we compile this application for desktop simulation (along with an appropriate software test bench), we can observe the results of the edge detect operation on a sample 800-by-800 pixel image, as shown in Figures 11-3 and 11-4.

Figure 11-3. Image prior to edge-detection filtering.

Note that the software test bench created for this application makes use of standard C library functions to read and write sample image data from a Windows bitmap-format (.BMP) image file. Each pixel in the sample image is transmitted by the software test bench to the edge-detection process using a stream. The resulting convoluted pixels are then output to a second file, which appears as shown in Figure 11-4.

    Practical FPGA Programming in C
    Practical FPGA Programming in C
    ISBN: 0131543180
    EAN: 2147483647
    Year: 2005
    Pages: 208 © 2008-2017.
    If you may any questions please contact us: