Search code examples
vhdl

Are there any reccomended styleguides or quick reference sheets for VHDL?


I have been writing VHDL for a short time now, so I feel this is a good time to start making sure my coding is in a good style. I have had trouble finding any good style guides or quick ref. sheets for this. I am thinking of something like the Barr group embedded C standard, but for VHDL.

Does something like this exist?


Solution

  • The following style is recommended by CERN BE-CO-HT

    i_   Input signal 
    o_   Output signal 
    s_   signal
    c_   Constant 
    g_   Generic  
    t_   User-Defined Type 
    

    There are many other recommendations. You can have a look at coding style followed in CERN BE-CO-HT https://ohwr.org/project/vhdl-style/blob/master/doc/vhdl-coding-style.adoc