 |
|
|
|
|
|
|
|
|
|
|
|
|
SVUG Community Forum
|
|
| Author |
Messages |
|
EDMOND
Posts:3
 |
| 10/27/2008 1:59 PM |
|
Is it just me, or is there no support for regular expression matching tasks in SVTB. Something of the sort is available in OpenVera/NTB.
Thanks, Edmond
|
|
|
|
|
EDMOND
Posts:3
 |
| 10/30/2008 12:05 PM |
|
I did a some searching and stubled on the answer from the VMM source code. The feature seems supported by VCS.
// // String-matching pseudo methods. // // Those are built-in VCS and may eventually be part of a revision of the // SV standard. In the meantime, they can be provided by DPI functions or // their functionality be disabled. These DPIs are provided by the file // $VMM_HOME/sv/std_lib/vmm_str_dpi.c // // Currently, they are used in vmm_log for name and instance name matching // and in the XVCs for command parsing and interpretation. //
`ifdef VCS `define vmm_str_match(str, regex) str.match(regex) `define vmm_str_prematch(str) str.prematch() `define vmm_str_postmatch(str) str.postmatch() `define vmm_str_backref(str, n) str.backref(n) `else
[...]
|
|
|
|
|
AMAL
Posts:24
 |
| 11/03/2008 4:09 PM |
|
If you grab a copy of VMM from VMM Central and look into this directory: vmm-1.0.1/sv/std_lib
You will find a file called "vmm_str_dpi.c". This file provides all the functions you need and it should be supported by all SystemVerilog simulators that support "DPI-C" calls.
-- Amal
|
|
|
|
|
karthik
Posts:12
 |
| 11/10/2008 4:44 AM |
|
Hi
If you are using VCS, most of the OV string methods are extended for SV. Please refer vcs.pdf or svtb.pdf (under string methods section).
You can directly use those string methods in SV. Enjoy!
Thanks, Karthik
|
|
|
|
|
VIJAY KUMAR
Posts:1
 |
| 12/02/2008 11:44 PM |
|
Hi I have used string.match in my previous company. I hope this helps. Thanks, Vijay Gampa |
|
|
|
|
|
| You are not authorized to post a reply. |
|
|
|
ActiveForums 3.7
|
|
|

|
|
|
|
|
|
|
|
|
|
 |
|