Config File

637 views
Skip to first unread message

Pratyush Jain

unread,
Dec 6, 2021, 5:03:34 PM12/6/21
to veribl...@googlegroups.com
Hi Verible Users
     I am trying to use this tool for the first time and want to set up the config file for the rules I want to follow for lint. I am able to install the tool and run it against a sv file using the command 
./verible-verilog-lint <filename.sv>

However, I want to set the rules like the naming convention i want to follow, if i want to turn off certain rules. Can someone point to an example of how such a file can be set up. I will highly appreciate any help I can get.

Thanks
Pratyush


Tomasz Gorochowik

unread,
Dec 7, 2021, 10:23:51 AM12/7/21
to Pratyush Jain, Verible Users
Hi

Please take a look at the configuration section in the documentation: https://github.com/chipsalliance/verible/tree/master/verilog/tools/lint#rule-configuration

There is also a paragraph about the config files. Please let us know if you have any specific questions!

Best
Tom

--
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/CAKkScAdfrqmpdmFors0ooG_dS%2BqxOLoCf9rMbQs4KLgGiG8a4w%40mail.gmail.com.


--
Tomasz Gorochowik
Antmicro Ltd | www.antmicro.com
Zwierzyniecka 3, 60-813 Poznan, Poland

Pratyush Jain

unread,
Dec 13, 2021, 4:45:45 PM12/13/21
to Tomasz Gorochowik, Verible Users
Hi Tom/Verible Users
    Thanks for the response, I was able to create a config file and remove rules, customize rules for things like line-length. I have a couple of other questions related to lint rules.

1) If i want to set a particular naming convention for signals as well as internal variables like bits, logic etc to say Camelcase or lower snake case.
    I tried signal-name-style=CamelCase/signal-name-style:CamelCase (or lower-snake-case), but it doesn't seem to work. Is there something I am missing here?
2) Is there any rule for indentation like 2 space indentation or a way to configure that. There is a no-tabs rule but I couldn't find anything related to indentation.


Thanks and Regards
Pratyush



Mariusz Glebocki

unread,
Dec 20, 2021, 4:36:49 AM12/20/21
to Verible Users
Hi,

1) If i want to set a particular naming convention for signals as well as internal variables like bits, logic etc to say Camelcase or lower snake case.
    I tried signal-name-style=CamelCase/signal-name-style:CamelCase (or lower-snake-case), but it doesn't seem to work. Is there something I am missing here?

"signal-name-style" is not configurable yet. It supports only snake_case.
 
2) Is there any rule for indentation like 2 space indentation or a way to configure that. There is a no-tabs rule but I couldn't find anything related to indentation.

There's not. However, you can try `verible-verilog-format` if you want consistent formatting.

Pratyush Jain

unread,
Jan 5, 2022, 8:17:54 PM1/5/22
to Mariusz Glebocki, Verible Users
Thanks Mariusz for the response and Happy New Year everyone on this thread.

--
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.
Reply all
Reply to author
Forward
0 new messages