This page contains the Dcam Package documentation.
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: netbench.pattern_match.b_ptrn_match.b_ptrn_match
Implements DCAM (Pre-decoded CAM) as described in Ioannis Sourdis and Dionisios Pnevmatikatos: Pre-decoded CAMs for Efficient and High-Speed NIDS Pattern Matching.
Note: Partitioning and multiple char acception is currently not supported
Returns VHDL representation of DCAM.
Returns: | VHDL description of DCAM unit. |
---|---|
Return type: | string |
Loads strings from specified file.
Parameter: | file_name (string) – Name of specified file. One pattern on each line. |
---|
Loads strings from specified list of strings.
Parameter: | slist (list(string)) – The list of string patterns. One pattern in one list element. |
---|
Loads strings from specified string which contains the strings.
Parameter: | string (string) – String with string patterns. One pattern on each line. |
---|
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) |