OpenCores
URL https://opencores.org/ocsvn/fully-pipelined-edge-detection-algorithms/fully-pipelined-edge-detection-algorithms/trunk

Subversion Repositories fully-pipelined-edge-detection-algorithms

[/] [fully-pipelined-edge-detection-algorithms/] [trunk/] [src/] [EdgeDetection_pkg.vhd] - Blame information for rev 17

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 17 muhammedko
PACKAGE EdgeDetection_pkg IS
2
    FUNCTION DetermineKernel(EdgeDetectionType : STRING) RETURN INTEGER;
3
END PACKAGE;
4
 
5
PACKAGE BODY EdgeDetection_pkg IS
6
    FUNCTION DetermineKernel(EdgeDetectionType : STRING) RETURN INTEGER IS
7
        VARIABLE edgeSize                          : NATURAL := 0;
8
    BEGIN
9
        IF EdgeDetectionType = "3" THEN
10
            edgeSize := 1;
11
        ELSE
12
            edgeSize := 2;
13
        END IF;
14
        RETURN edgeSize;
15
    END FUNCTION;
16
END PACKAGE BODY;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.