摘要 |
It is possible to realize a pattern detection device for detecting a pattern according to a comparison result between detection object data and an entry pattern by saving a hardware resource holding the detection pattern and the detection position and reducing the processing overhead after the pattern detection. The pattern detection device compares, in a comparator (122), the entry pattern (ETP) held by an entry pattern holding section (124) and data input from outside of the pattern detection device. If they are matched, a hit signal (HIT) indicating the matching is output. A flag holding section (126) outputs a flag signal (FLG) held when the hit signal (HIT) is output, as a control signal (CTL) to a pattern detection/non-detection control section (130). According to the hit signal (HIT) and the control signal (CTL), the pattern detection/non-detection control section (130) outputs a holding enable signal (HEB) for holding the data indicating the position of the data detected. A detection position registration section (140) includes registers corresponding to the number of detection objects and a read pointer (RDP) applied according to the holding enable signal (HEB) is stored in the corresponding register.
|