namespace internal¶
popStack¶
#include "xf_data_analytics/text/regexVM.hpp"
static void popStack (unsigned int& stkPtr)
Pop one element out of stack.
Parameters:
stkPtr | Pointer for last item in stack. |
peekStack¶
#include "xf_data_analytics/text/regexVM.hpp"
static void peekStack ( ap_uint <54>* stackBuff, unsigned int stkPtr, ap_uint <54>& dt )
Peeking stack data for optimization.
Parameters:
stackBuff | Internal stack buffer. |
stkPtr | Pointer for last item in stack. |
dt | Collection of stack type, memory id, memory start offset, memory end offset, op address, and string pointer. |
split¶
#include "xf_data_analytics/text/regexVM.hpp"
static void split ( ap_uint <54> dt, ap_uint <6>& stkType, ap_uint <16>& memID, ap_uint <16>& memStart, ap_uint <16>& memEnd, ap_uint <16>& opAddr, ap_uint <16>& strPtr )
Stack data splitter.
Parameters:
dt | Collection of stack type, memory id, memory start offset, memory end offset, op address, and string pointer. |
stkType | Type of current item to be pushed into stack. |
memID | Current group index. |
memStart | Start offset address of current capturing group. |
memEnd | End offset address of current capturing group. |
opAddr | Instruction address. |
strPtr | Pointer for current character in input string. |
pushStack¶
#include "xf_data_analytics/text/regexVM.hpp"
static void pushStack ( ap_uint <54>* stackBuff, unsigned int& stkPtr, ap_uint <54> dt )
Push one element into stack.
Parameters:
stackBuff | Internal stack buffer. |
stkPtr | Pointer for last item in stack. |
dt | Collection of data to be pushed into stack. |
pushStack_opt¶
#include "xf_data_analytics/text/regexVM.hpp"
static void pushStack_opt ( ap_uint <54>* stackBuff, unsigned int stkPtr, ap_uint <54> dt )
Push one element into stack without increasing the stack pointer (for optimized regexVM only).
Parameters:
stackBuff | Internal stack buffer. |
stkPtr | Pointer for last item in stack. |
dt | Collection of data to be pushed into stack. |
combine¶
#include "xf_data_analytics/text/regexVM.hpp"
static void combine ( ap_uint <54>& dt, ap_uint <6> stkType, ap_uint <16> memID, ap_uint <16> memStart, ap_uint <16> memEnd, ap_uint <16> opAddr, ap_uint <16> strPtr )
Stack data combiner.
Parameters:
dt | Collection of stack type, memory id, memory start offset, memory end offset, op address, and string pointer. |
stkType | Type of current item to be pushed into stack. |
memID | Current group index. |
memStart | Start offset address of current capturing group. |
memEnd | End offset address of current capturing group. |
opAddr | Instruction address. |
strPtr | Pointer for current character in input string. |