1 an adaptable fpga-based system for regular expression matching department of computer science and...
Post on 19-Dec-2015
217 views
TRANSCRIPT
![Page 1: 1 An adaptable FPGA-based System for Regular Expression Matching Department of Computer Science and Information Engineering National Cheng Kung University,](https://reader035.vdocument.in/reader035/viewer/2022062407/56649d3b5503460f94a15ee3/html5/thumbnails/1.jpg)
1
An adaptable FPGA-based System for Regular Expression Matching
Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.
Authors: Ivano Bonesana, Marco Paolieri, Marco D. Santambrogio
Publisher: DATE (Design, Automation and Test in Europe) 2008
Present: Chung-Chan Wu
Date: April 23 2008
![Page 2: 1 An adaptable FPGA-based System for Regular Expression Matching Department of Computer Science and Information Engineering National Cheng Kung University,](https://reader035.vdocument.in/reader035/viewer/2022062407/56649d3b5503460f94a15ee3/html5/thumbnails/2.jpg)
2
Outline
Introduction ReCPU Framework Flow ReCPU Instruction Structure Architecture Description Experimental Result
![Page 3: 1 An adaptable FPGA-based System for Regular Expression Matching Department of Computer Science and Information Engineering National Cheng Kung University,](https://reader035.vdocument.in/reader035/viewer/2022062407/56649d3b5503460f94a15ee3/html5/thumbnails/3.jpg)
3
Introduction
RE: Regular Expression We do not build either Deterministic nor Nondetermin
istic Finite Automaton of the RE The architecture is optimized to execute computation
s in a parallel and pipelined way VLIW design style (Very long instruction word ) We developed a compiler to translate REs into bitwis
e instructions.
![Page 4: 1 An adaptable FPGA-based System for Regular Expression Matching Department of Computer Science and Information Engineering National Cheng Kung University,](https://reader035.vdocument.in/reader035/viewer/2022062407/56649d3b5503460f94a15ee3/html5/thumbnails/4.jpg)
4
ReCPU Framework Flow
![Page 5: 1 An adaptable FPGA-based System for Regular Expression Matching Department of Computer Science and Information Engineering National Cheng Kung University,](https://reader035.vdocument.in/reader035/viewer/2022062407/56649d3b5503460f94a15ee3/html5/thumbnails/5.jpg)
5
Regular Expression
![Page 6: 1 An adaptable FPGA-based System for Regular Expression Matching Department of Computer Science and Information Engineering National Cheng Kung University,](https://reader035.vdocument.in/reader035/viewer/2022062407/56649d3b5503460f94a15ee3/html5/thumbnails/6.jpg)
6
Compilation Phase
By modifying the number of clusters (parameters) in the ReCPU • Performance
• Power
• area
The compiler • written in Python
• starting from the high level description of the RE
• generates the files
• be loaded in the instruction memory
![Page 7: 1 An adaptable FPGA-based System for Regular Expression Matching Department of Computer Science and Information Engineering National Cheng Kung University,](https://reader035.vdocument.in/reader035/viewer/2022062407/56649d3b5503460f94a15ee3/html5/thumbnails/7.jpg)
7
ReCPU Instruction Structure
Operators like * and + correspond to loop instructions. Nested parentheses (e.g. (((ab)*(c|d))|(abc))) are managed as function calls. An open parenthesis inside an RE is a call instruction while the closed one i
s a return instruction.
![Page 8: 1 An adaptable FPGA-based System for Regular Expression Matching Department of Computer Science and Information Engineering National Cheng Kung University,](https://reader035.vdocument.in/reader035/viewer/2022062407/56649d3b5503460f94a15ee3/html5/thumbnails/8.jpg)
8
Architecture Description
ReCPU uses two separate memories: • Data memory for the input text
• instruction memory for the RE
In the Data Path are placed all the different parallel comparators organized in Clusters.
Cluster Width : The total number of elements in a cluster
The processor is composed of several Clusters - the total number is indicated as NCluster
![Page 9: 1 An adaptable FPGA-based System for Regular Expression Matching Department of Computer Science and Information Engineering National Cheng Kung University,](https://reader035.vdocument.in/reader035/viewer/2022062407/56649d3b5503460f94a15ee3/html5/thumbnails/9.jpg)
9
Block Diagram of ReCPU (4 Clusters)
![Page 10: 1 An adaptable FPGA-based System for Regular Expression Matching Department of Computer Science and Information Engineering National Cheng Kung University,](https://reader035.vdocument.in/reader035/viewer/2022062407/56649d3b5503460f94a15ee3/html5/thumbnails/10.jpg)
10
Comparator Cluster
![Page 11: 1 An adaptable FPGA-based System for Regular Expression Matching Department of Computer Science and Information Engineering National Cheng Kung University,](https://reader035.vdocument.in/reader035/viewer/2022062407/56649d3b5503460f94a15ee3/html5/thumbnails/11.jpg)
11
Finite State Machine of the Control Unit
![Page 12: 1 An adaptable FPGA-based System for Regular Expression Matching Department of Computer Science and Information Engineering National Cheng Kung University,](https://reader035.vdocument.in/reader035/viewer/2022062407/56649d3b5503460f94a15ee3/html5/thumbnails/12.jpg)
12
Experimental Result
![Page 13: 1 An adaptable FPGA-based System for Regular Expression Matching Department of Computer Science and Information Engineering National Cheng Kung University,](https://reader035.vdocument.in/reader035/viewer/2022062407/56649d3b5503460f94a15ee3/html5/thumbnails/13.jpg)
13
Experimental Result