This page contains the Clark_Nfa Package documentation.
Bases: netbench.pattern_match.nfa_reductions.nfa_reductions
Class implementing Clark NFA. Supports also sharing of char classes if b_Sym_char_class symbols are used and parameter canonical is set to False.
Generated VHDL code depends on those modules: value_decoder.vhd, state.vhd and final_bitmap.vhd. Those modules are located in directory vhdl.
Supported symbols for this algorithm are sym_char and sym_char_class (If canonical constructor parameter is set to False) and sym_kchar if stride parameter is bigger than 1. When strided automaton is used the parameter canonical does not effect the construction process.
Parameters: |
|
---|
Return VHDL description of NFA unit implemented in Clark’s approach.
Parameter: | useBram (boolean) – Defines if BRAM implementation of character decoder will be used. (True = BRAM, False = LUT) NOTE: Only False is currently supported. |
---|---|
Returns: | VHDL description of NFA unit implemented in Clark’s approach. |
Return type: | string |
Reports amount of logic consumed by the algorithm.
Returns: | Amount of logic consumed by the algorithm (LUTs, FlipFlops, BRAMs). |
---|---|
Return type: | tuple(int, int, int) |
Creates simulation files from templates for object specified by alg parameter.
Parameter: | alg (b_ptrn_match) – Object representing pattern matching algorithm. |
---|
Open file specified by name and split content acording to “%$%”.
Parameter: | name (string) – Name of the file. |
---|---|
Returns: | Loaded and splited content of the file. |
Return type: | list(string) |
Runs the simulation and compare the results.
Parameter: | test – Object representing the test. |
---|---|
Returns: | True when simulation is OK, False otherwise. |
Return type: | boolean |
Save the content stored in parameter content into file named by parameter name.
Parameters: |
|
---|
Bases: unittest.TestCase
A base test class for Clark NFA.