Rule 2.1

Forum for discussing and asking questions about the MISRA document MISRA AC TL "Modelling style guidelines for the application of TargetLink in the context of automatic code generation"

Moderators: david ward, GeoffFrost

Post Reply
Posts: 2
Joined: Thu Nov 26, 2009 12:04 pm
Company: Ricardo

Rule 2.1

Post by Josef.Rieger » Thu Aug 19, 2010 9:15 am

I am implementing an automated MISRA checker (MINT) and need some details regarding this rule.
Second part of rule 2.1 says "Furthermore, the signal name should be unique and not conflict with any other signal in the TargetLink model".
I am able to check this (only non-propagated labels included), however: what about library blocks? If a library block with at least one labelled line is used multiple times, then we have multiple signal lines labelled by the same label within the model.
I have also question: what is "TargetLink" model? Is it a Simulink model containing at least one TargetLink subsystem? Or is it the contents of TargetLink subsystem(s), no matter what is outside?
I would highly appreciate any comments.
Best regards,

Posts: 52
Joined: Mon Dec 06, 2004 12:24 pm

Re: Rule 2.1

Post by MISRA Reply » Wed Sep 01, 2010 10:33 am

Library blocks that are clearly configured as re-usable subsystems can be considered exceptions to this rule as they will map to a unique code function in the generated code.

A "TargetLink model" can be considered to be a Simulink model containing at least one TargetLink subsystem, thus if multiple TargetLink subsystems are present then signal names should be unique across all the TargetLink subsystems.

Post Reply

Return to “MISRA AC TL discussions”