Download Embedded Systems Trace Solutions
Transcript
8.3. Event Resources 37 State 1 State 2 State 3 Figure 8.3: ETM Sequencer 6 4 3 Resource Type 0 Resource Index Figure 8.4: ETM Resource The following list shows the resources available in the ETMv1 architecture: • Memory access resources – Single address comparators that match on instruction or data accesses, optionally combined with a data comparator to match only when a certain word is read from an address. – Address range comparators are like single address comparators but match on a whole address range instead of a single address. An addres range comparator matches when an address is >= address A and < address B. – EmbeddedICE watchpoint comparators can be used if the RANGEOUT feature supported. They operate similar to single address comparators. – Memory map decoders divide the ASIC specific memory map for example to identify onchip RAM, ROM and registers. Using the memory map decoder requires further information from the chip vendor. • Derived resources Derived resources allow more complex terms to be formulated by combining memory access resources with additional logic: – 16 bit counters that count down at the full system clock with a counter enable event based on any of the other event resources. – The sequencer is a three state statemachine as shown in figure 8.3. This allows multi-stage triggers to be set up, for example to trigger only inside function X if function Y was called before. The state machine advances to another state based on events from other resources. • External resources – Hardwired “true” is a resource that’s always true. – External inputs are ASIC specific inputs that can be true or false. ETM resources as shown in figure 8.4 are defined by the type of resoure, encoded in bits six to four, and a four bit index in bits three to zero. The resource type is one of the types listed in table 8.3, and the index selects a particular instance of the selected resource, like an address comparator pair or one of the counters. Table 8.3 shows how the Resource Type encoding maps to the ETM resources described above.