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] - Rev 18

Go to most recent revision | Compare with Previous | Blame | View Log

PACKAGE EdgeDetection_pkg IS
    FUNCTION DetermineKernel(EdgeDetectionType : STRING) RETURN INTEGER;
END PACKAGE;
 
PACKAGE BODY EdgeDetection_pkg IS
    FUNCTION DetermineKernel(EdgeDetectionType : STRING) RETURN INTEGER IS
        VARIABLE edgeSize                          : NATURAL := 0;
    BEGIN
        IF EdgeDetectionType = "3" THEN
            edgeSize := 1;
        ELSE
            edgeSize := 2;
        END IF;
        RETURN edgeSize;
    END FUNCTION;
END PACKAGE BODY;

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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