TestMode Definition

This MotoHawk™ block allows resource driven Test Modes to be defined.

Block ID

TestMode Defn

Library

motohawk_TestMode_lib

Description

The MotoHawk™ TestMode blocks allow resource driven Test Modes to defined and controlled by an application model. There are four blocks:

Only select resources support Test Mode operation. Resource that do not appear in the Resource dropdown do not support any Test Mode operation.

A resource that supports Test Mode operation will typically only support a subset of the available Test Modes. Test Modes that are NOT supported by a Resource include "(Unsupported)" in the description to indicate this lack of support. An unsupported mode that is not checked will be grayed out to further consolidate that the Test Mode is not available for the selected resource.

Supported Test Modes

H-Bridge short circuit to ground via load current

This test mode is designed to detect a short circuit from H+ or H- to ground that is difficult to otherwise detect. The test, when initiated via Test Mode Set Block execution, will override the H-Bridge's normal control for a short time. One of the high-side MOSFETs is switched ON while the others are switched OFF. An H-Bridge that is not suffering from a short circuit to ground condition should only conduct recirculation current that will dissipate (eventually decaying to near zero). However an H-Bridge suffering from a short circuit from H+ or H- to ground will continue to conduct current. The Test Mode Get Block can be used to recover the current observed while this Test Mode was active and can be used to determine whether a short to ground condition may exist. It is an invasive test since it overrides normal H-Bridge control and so should only be executed when conditions allow.

The TestMode does nothing if the H-Bridge to be affected has not been instantiated in the model.

Unauthorized GTM code space access by host CPU

This test mode is designed to induce an unauthorized write to the GTM code space referenced by the selected Resource. This would be used to test that the GTM's Address Range Protection feature has been correctly configured since normal execution should never perfrom such a write.

At this time executing this test will result in a processor exception/TRAP.

Unauthorized GTM code space access by MCS

This test mode is designed to induce an unauthorized write to the GTM code space referenced by the selected Resource by a Micro Channel Sequence (MCS) channel. This would be used to test that the GTM's Address Range Protection feature has been correctly configured since normal execution should never perfrom such a write.

At this time executing this test will result in the underlying MCS channel that is performing the test to halt.

Unauthorized private data access by MCS

This test mode is designed to induce an unauthorized write by a GTM Micro Channel Sequence (MCS) channel referenced by the selected Resource to. a private data area that it does not have write priviledges for. This would be used to test that the GTM's Address Range Protection feature has been correctly configured to protect a channel's private data. Normal execution should never perfrom such a write.

At this time executing this test will result in the underlying MCS channel that is performing the test to halt.

Block Parameters

Parameter Field Values Comments/Description
Name Single quote enclosed alpha numeric The name that will be assigned to this Test Mode instance.
Resource DropDown The resource that is to assigned the selected TestMode.
H-Bridge short circuit to ground via load current. Checkbox When checked the H-Bridge short circuit to ground via load current TestMode is defined for the selected resource. Appended with "(Unsupported)" if the method is not supported for the selected resource. The text will also be disabled (grayed out) if not checked and the mode is not supported.
Unauthorized GTM code space access by host CPU. Checkbox When checked the Unauthorized GTM code space access by host CPU TestMode is defined for the selected resource. Appended with "(Unsupported)" if the method is not supported for the selected resource. The text will also be disabled (grayed out) if not checked and the mode is not supported.
Unauthorized GTM code space access by MCS. Checkbox When checked the Unauthorized GTM code space access by MCS TestMode is defined for the selected resource. Appended with "(Unsupported)" if the method is not supported for the selected resource. The text will also be disabled (grayed out) if not checked and the mode is not supported.
Unauthorized private data access by MCS. Checkbox When checked the Unauthorized private data access by MCS TestMode is defined for the selected resource. Appended with "(Unsupported)" if the method is not supported for the selected resource. The text will also be disabled (grayed out) if not checked and the mode is not supported.