GithubHelp home page GithubHelp logo

necst / alveare Goto Github PK

View Code? Open in Web Editor NEW
3.0 7.0 0.0 1.56 MB

ALVEARE: A Domain-Specific Framework for Regular Expressions

License: MIT License

Makefile 4.92% VHDL 69.45% Tcl 12.32% C 7.42% Lex 1.06% Yacc 4.83%

alveare's Introduction

ALVEARE

ALVEARE: A Domain-Specific Framework for Regular Expressions

This repository contains the source code of the paper "ALVEARE: A Domain-Specific Framework for Regular Expressions," where we proposed an HW/SW framework for the efficient execution of Regular Expressions (REs). This work exploits the idea of using RE as a programming language using a domain-specific compiler to translate and optimize the REs into binary code. The binary code must respect the rules specified by the RE-tailored RISC Instruction Set Architecture. Finally, the binary code is executed into the RE-optimized domain-specific architecture. On top of its components, this framework can guarantee low latency and energy efficiency execution of REs while providing flexibility thanks to the compilation flow.

Repository Overview

Supported Operators

Operator Description
[abc] character class
[^abc] negated character class
[a-z] character class range
\w, \d, \s, \h short end character classes
. DOT, any char. except \n
?,{n},{n,m} bounded quantifier
*,+,{n,} unbounded quantifier
??,{n,m}?,{n}? bounded lazy quantifiers
*?, +?,{n,}? unbounded lazy quantifiers
\ escaping character

RISC RE-tailored Instruction Set Architecture

Class Operator Opcode Description
Control EoR 0000000 End of RE
Base AND 0010--- Char-based And
Base OR 0001--- Char-based Or
Base RANGE 0011--- Char-based Range
Base NOT 01----- Match Inversion
Complex ( 1000000 New Sub-RE
Complex ) 0---100 End of Sub-RE
Complex QUANT LAZY 0---001 ) + Lazy Quantifier
Complex QUANT 0---010 ) + Greedy Quantifier
Complex ) 0---011 ) + OR of Sub-RE

Credits and Contributors

Contributors: Filippo Carloni, Davide Conficconi, Marco Domenico Santambrogio

If you find this repository useful, please use the following citation(s):

@inproceedings{carloni2024alveare,
  title={ALVEARE: a Domain-Specific Framework for Regular Expressions},
  author={Carloni, Filippo and Conficconi, Davide and Santambrogio, Marco D},
  booktitle={Proceedings of the 61st ACM/IEEE Design Automation Conference},
  year={2024}
}

alveare's People

Contributors

filippocarloni avatar

Stargazers

Filippo Ziche avatar  avatar Davide Conficconi avatar

Watchers

Mario Polino avatar Michele Carminati avatar Mirko avatar Ian Di Dio Lavore avatar Guido Walter Di Donato, PhD avatar Davide Conficconi avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.