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