Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for folding of OVM/UVM macros #164

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jrudess
Copy link
Contributor

@jrudess jrudess commented Aug 2, 2018

This commit adds a new folding option 'ovm' which will fold ovm/uvm macro constructs that have a begin/end

I originally wanted to name the new dictionary entry 'verif' since it encompasses both OVM and UVM, but for some reason the dictionary entry would not work when I named it either 'verif' or 'uvm'. But naming it 'ovm' does work. I can't explain that. 'ovm' isn't a terrible name but it's a deprecated library, so it's not ideal.

Let me know if you would like additions to the test cases to cover this change.

@@ -169,6 +169,12 @@ let g:verilog_syntax = {
\ 'highlight' : 'verilogStatement',
\ 'syn_argument': 'transparent keepend contains=ALLBUT,verilogInterface',
\ }],
\ 'ovm' : [{
\ 'match_start' : '`\<\(ovm\|uvm\)_\a\+_utils_begin\>',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[ou]vm ? ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In hindsight that does seem a little simpler ;)

@vhda
Copy link
Owner

vhda commented Aug 12, 2018

Would you mind including a test case in test/folding.v?

@vhda
Copy link
Owner

vhda commented Aug 20, 2018

Don't you want to update, rebase on top of master and force push this branch?

@jrudess
Copy link
Contributor Author

jrudess commented Aug 21, 2018

Haven't forgotten this one, I just need to add the test case. I only haven't done that yet because I wanted to understand the test suite setup a little better before I started modfying it, and I also got massively sidetracked learning errorformat. :-)

I have another minor PR (randsequence support) to submit which will also benefit from some added cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants