URL
https://opencores.org/ocsvn/fully-pipelined-edge-detection-algorithms/fully-pipelined-edge-detection-algorithms/trunk
Subversion Repositories fully-pipelined-edge-detection-algorithms
Compare Revisions
- This comparison shows the changes necessary to convert path
/fully-pipelined-edge-detection-algorithms
- from Rev 16 to Rev 17
- ↔ Reverse comparison
Rev 16 → Rev 17
/trunk/src/EdgeDetection_pkg.vhd
0,0 → 1,16
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; |