The PiL Transform is a hardware interface Transform that utilizes the Lauterbach Trace32 debugging software for both chip emulation and processor in the loop testing.  The Transform is meant to run as a bare metal system (that is, an initialization phase followed by an infinite loop that does the work phase).  The Transform operates through the debugger interface to provide a lock-step transmit/receive cycle.  This means that the Transform can operate in both real-time and accelerated-time modes without requiring a time delay in the Transform itself or in other Transforms downstream from the device.

You can use the PIL Transform for Back to Back (B2B) testing of Simulink models and target code running on a Lauterbach TRACE32 in-circuit emulator (ICE) or on an in-circuit debugger (ICD).

Back to back testing is used to demonstrate equivalence between a model and its generated C code. A requirement for ISO 26262 compliance states that test platform should “correspond as closely as possible to the target environment.” Another is for MC/DC level code coverage measurement. The optimum solution for Simulink model-based development is Lauterbach's ICE and Danlaw's RapiCover, coupled with MxSuite’s powerful test platform. By reusing test cases between MIL (Simulink) and PIL (Lauterbach) the need to qualify the code generator can be eliminated.

Lauterbach

The PiL Transform performs processor-in-loop tests by establishing communication with T32, which runs target code. The Target code runs on a T32 either in Simulator or on hardware in which power debug interface has been used as debugger. The Power Debug Interface is connected to hardware via a JTAG Connector.

PIL-blocks

hmtoggle_plus1Software Prerequisites and Licenses
hmtoggle_plus1The Sample Project

 

hmtoggle_plus1AppIF.c  and AppIF.h Files

 

 

Related Topics:

Creating a Project with Your Code

PIL Sample Projects

The PiLSample project

PIL Demonstration

FAQs

Port Registration (AppIF.c)

Simulink