Академический Документы
Профессиональный Документы
Культура Документы
Page 1 of 9
Copyright
Notification:
Format ID:
QuEST/wFM/128 V4.0
QuEST Controlled
Page 2 of 9
Amendment Record
Version
1.0
Date
28-Jan2015
Author
Soumya
Jose
Reviewed By
Jobin Cyriac
Approved
By
Shaji NM
Change Description
Updated version on
IntraQuest Release
QuEST Controlled
Page 3 of 9
1 Introduction
This document defines the general guidelines to be followed in the coding of Verilog HDL
models and Verilog HDL test benches. Coding guidelines helps to improve the quality,
readability and maintainability of the developed Verilog codes.
If under any circumstances, the coding guidelines are violated, the reasons should be
well thought about and clearly explainable.
One line shall contain only one statement of code and set the maximum length
of the line to 80 characters.
Proper
indentation
provides
readability.
Use
three
space
characters
for
indentation and keep the same indentation throughout the code. Do NOT use
TAB character for indentation since TAB character spacing is editor dependant.
The declaration of identifiers and the comments for the signal declaration shall
be aligned vertically to improve the readability.
The keyword begin should appear on a line by itself so it can line up with its end
statement. The begin/end block should always be used, even if there is only one
statement. This makes adding lines of code much easier with fewer errors.
QuEST Controlled
The
comments
shall
be
descriptive
enough
to
explain
the
g. Revision history
FPGA Verilog HDL Coding Guidelines
QuEST Controlled
Page 5 of 9
QuEST Controlled
Page 6 of 9
No signal shall be
QuEST Controlled
Page 7 of 9
the
module
shall
follow
the
below
format
QuEST Controlled
Page 8 of 9
PASS
WARNING
QuEST Controlled
Page 9 of 9
4 Appendix
4.1 Verilog HDL File Header Format
The general Verilog HDL File header format is given below for reference. If required,
more details or fields can be added in the file header depending on project
requirements. If any project demands customer specific file headers, use that file
header.
file_header.v
QuEST Controlled