You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Need a consistent naming convention on variables #146
IMO, a consistent coding style, including naming convention, is important for good code.
While starting my own Chisel project some time ago, I faced some port mismatch issues, and found it was caused by inconsistent port naming. I then traced my study history back to this repository.
From my experience, usually ports are either camelCase or snake_case (inherited from Verilog). I would also note that coding/naming styles do vary across institutions depending on the nature of the group/team.
Activity
edwardcwang commentedon Mar 26, 2019
Thank you for your interest in Chisel!
There is a style guide for Chisel itself here: https://github.com/freechipsproject/chisel3/blob/master/doc/style.md
From my experience, usually ports are either
camelCaseorsnake_case(inherited from Verilog). I would also note that coding/naming styles do vary across institutions depending on the nature of the group/team.Finally, have you seen https://github.com/freechipsproject/chisel-bootcamp ? The Chisel bootcamp is our latest iteration of Chisel educational materials.