1 an adaptable fpga-based system for regular expression matching department of computer science and...

13
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. Santa mbrogio Publisher: DATE (Design, Automation and Test in Europe) 2008 Present: Chung-Chan Wu Date: April 23 2008

Post on 19-Dec-2015

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 An adaptable FPGA-based System for Regular Expression Matching Department of Computer Science and Information Engineering National Cheng Kung University,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

13

Experimental Result