Hello,
I need to write a data filter and it would be perfect if I can use regular expression module for this.
I receive input data, than I should check it and mark as valid.
I tried to write something like this, but it is wrong:
from myhdl import *
import redef HelloWorld( Clock, valid_data, input_data):
check = bool()def checker(s): return re.match("(^[a-z])", str(s), flags=0) check = checker(input_data) @always(Clock.posedge) def top(): if check : valid_data.next = input_data
return top
Can I use “re.” module inside my code?
Thanks