Check Coding Rules

Joined
Jul 1, 2011
Messages
1
Reaction score
0
Hi,
I coded a small script in Perl, which check some coding rules (not the same for everyone I guess).
It works on windows, maybe on Linux...
It's about case, declaration of signal and constant, number of row per line, label on process:
By example, all signal have to start with "sig_", constant by "cst_", keywords have to be in uppercase....
You just have to fill the "my $PROJECT_PATH="Y:\\folder\\folder\\hdl";" field, to indicate the folder where u work.
Or to comment the indicated part if u directly launch the script from the folder where the code is.

check.pl name_of_file.vhd : to check one file
check.pl : to check the whole folder.
check.pl > bob.txt: redirect to a file

I put an extract of a log to give an example (bob.txt) of the results.

PS: u have to rename check.txt as check.pl
If u have comments/debug/improvement, please let me know.
I hope it will help.
Thx
 

Attachments

  • bob.txt
    6 KB · Views: 518
  • check.txt
    15.4 KB · Views: 262

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top