Does Verible Format has UVM support

53 views
Skip to first unread message

Shaun chua

unread,
May 16, 2023, 8:20:06 PM5/16/23
to Verible Users
Hi Verible Community, 

Does the formatter has UVM support? 

For example, consider this code snippet:

    `uvm_do_on_with( some_seq, { constraint_1 == foo; 
                                                                            constraint_2 == bar;
     }; )

I would like to be able to format it to something like so:

    `uvm_do_on_with( some_seq, { constraint_1 == foo; 
                                                            constraint_2 == bar;
     }; )

David Fang

unread,
May 16, 2023, 9:54:57 PM5/16/23
to Shaun chua, Verible Users
At the moment, parsing of macros and their arguments (UVM or otherwise) is limited.  
Verible's parser attempts to parse macro arguments as expressions, but doesn't try to parse them as constraint expressions yet.
You're welcome to file a feature request issue for this though.

This example makes a good case for a lexer-based strategy to formatting, as opposed to the current parser-based formatting using syntax-trees.

--
You received this message because you are subscribed to the Google Groups "Verible Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to verible-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/verible-users/390f6aa9-f29f-4f4b-bcd5-dca8010651e2n%40googlegroups.com.

Shaun chua

unread,
May 17, 2023, 12:02:13 PM5/17/23
to Verible Users
Thanks David! 
Reply all
Reply to author
Forward
0 new messages