5.2. Formal event syntax
The grammar for defining events is very C-like. The following identifiers are
recognized:
Identifier
Type
Description
U_tg
analogue
Target power voltage. Expressed in mV.
I_tgpwr
analogue
Target current consumption. Expressed in mA.
true
boolean
Constant high (one)
false
boolean
Constant low (zero)
Analogue variables can only be compared to constant values (mV for
voltages, mA for currents). Every analogue variable can be compared
against at most two constants, due to the availability of only two
comparators in firmware.
A formal definition of the grammar is given below.
PRIMARY_BOOLEAN ::= 'true' | 'false' | ('(' EXPR ')')
PRIMARY_ANALOG ::= ['0'-'9']+ | 'U_tg' | 'I_tgpwr'
RELATIONAL_ANALOG ::= (PRIMARY_ANALOG '<' PRIMARY_ANALOG)
Illustration 1: External Breakpoints Block Diagram
U
TG
boolean
function
defined
by a
Look-Up
Table
U
TG,threshold2
U
TG,threshold1
hardware inputs
to ARM-JTAG-EW
I
TGPWR
I
TGPWR,threshold2
I
TGPWR,threshold1
comparators
implemented
via firmware
request to
halt target