MISRA Discussion Forums
Signal naming convention in MISRA guidelines - Printable Version

+- MISRA Discussion Forums (https://forum.misra.org.uk)
+-- Forum: MISRA Autocode (https://forum.misra.org.uk/forumdisplay.php?fid=8)
+--- Forum: MISRA AC SLSF discussions (https://forum.misra.org.uk/forumdisplay.php?fid=152)
+--- Thread: Signal naming convention in MISRA guidelines (/showthread.php?tid=1523)



Signal naming convention in MISRA guidelines - ikostas_arrival - 21-01-2020

Hi,

That is my first message on this bulletin, so I am not sure whether this is the right place for my question. If not please direct me to the right thread.

I work in the automotive sector and more specifically in safety critical automotive control design with Simulink etc. So far in my team, we haven't started using an established signal name convention in Simulink that complies with a standard like MISRA. My question is, do you know if there is any of the MISRA documents that provides signal name convention for automotive systems?

In Autosar there is such a keyword list as you can see in the end of this document https://www.autosar.org/fileadmin/user_upload/standards/classic/3-0/AUTOSAR_SWC_System_Modeling.pdf

For example if I want to name a signal with the name vehicle longitudinal velocity. Should it be vhllongvel or vehlngvl or vehllongvel etc. You get the picture.

thanks in advance,

ILIAS


RE: Signal naming convention in MISRA guidelines - misra-ac - 21-10-2024

Hello Illias,

There are currently no MISRA documents that identify a naming convention for signals (and there are no current plans to do so).

MISRA AC GMG:2023 and MISRA AC SLSF:2023 have rules that depend on there being naming conventions within a project for all identifiers (variables, signal names and block names) and block annotations, and place some constraints on identifiers. However, it is not currently considered appropriate to give further guidance on formats, standard terms or abbreviations.

Please note that, although the MISRA Autocode guidelines originated in the automotive sector, they are not intended to be specific to that industry.