mercredi 25 mai 2016

Any one please tell me how to implement string matching algorithm into verilog and vivado design?

I already have string matching algorithm for example:

#include <regex>
using namespace std;

int main() {
   string str;
   while (true) {
      cin >> str;
      regex e("[[:w:]]+@[[:w:]]+\.com"); 
        // [[:w:]] word character: digit, number, or underscore

      bool match = regex_match(str, e);
      cout << (match? "Matched" : "Not matched") << endl;
   }
}

The problem is how to make hardware code like verilog and second one is how to make hardware design using vivado.

Anyone can help? atleast reference is okay Many appreciate it

Thanks

Aucun commentaire:

Enregistrer un commentaire