-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhw_cpu_itm.h
1122 lines (1005 loc) · 53.2 KB
/
hw_cpu_itm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/******************************************************************************
* Filename: hw_cpu_itm_h
* Revised: 2017-01-31 09:37:48 +0100 (Tue, 31 Jan 2017)
* Revision: 48345
*
* Copyright (c) 2015 - 2017, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1) Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2) Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3) Neither the name of the ORGANIZATION nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
******************************************************************************/
#ifndef __HW_CPU_ITM_H__
#define __HW_CPU_ITM_H__
//*****************************************************************************
//
// This section defines the register offsets of
// CPU_ITM component
//
//*****************************************************************************
// Stimulus Port 0
#define CPU_ITM_O_STIM0 0x00000000
// Stimulus Port 1
#define CPU_ITM_O_STIM1 0x00000004
// Stimulus Port 2
#define CPU_ITM_O_STIM2 0x00000008
// Stimulus Port 3
#define CPU_ITM_O_STIM3 0x0000000C
// Stimulus Port 4
#define CPU_ITM_O_STIM4 0x00000010
// Stimulus Port 5
#define CPU_ITM_O_STIM5 0x00000014
// Stimulus Port 6
#define CPU_ITM_O_STIM6 0x00000018
// Stimulus Port 7
#define CPU_ITM_O_STIM7 0x0000001C
// Stimulus Port 8
#define CPU_ITM_O_STIM8 0x00000020
// Stimulus Port 9
#define CPU_ITM_O_STIM9 0x00000024
// Stimulus Port 10
#define CPU_ITM_O_STIM10 0x00000028
// Stimulus Port 11
#define CPU_ITM_O_STIM11 0x0000002C
// Stimulus Port 12
#define CPU_ITM_O_STIM12 0x00000030
// Stimulus Port 13
#define CPU_ITM_O_STIM13 0x00000034
// Stimulus Port 14
#define CPU_ITM_O_STIM14 0x00000038
// Stimulus Port 15
#define CPU_ITM_O_STIM15 0x0000003C
// Stimulus Port 16
#define CPU_ITM_O_STIM16 0x00000040
// Stimulus Port 17
#define CPU_ITM_O_STIM17 0x00000044
// Stimulus Port 18
#define CPU_ITM_O_STIM18 0x00000048
// Stimulus Port 19
#define CPU_ITM_O_STIM19 0x0000004C
// Stimulus Port 20
#define CPU_ITM_O_STIM20 0x00000050
// Stimulus Port 21
#define CPU_ITM_O_STIM21 0x00000054
// Stimulus Port 22
#define CPU_ITM_O_STIM22 0x00000058
// Stimulus Port 23
#define CPU_ITM_O_STIM23 0x0000005C
// Stimulus Port 24
#define CPU_ITM_O_STIM24 0x00000060
// Stimulus Port 25
#define CPU_ITM_O_STIM25 0x00000064
// Stimulus Port 26
#define CPU_ITM_O_STIM26 0x00000068
// Stimulus Port 27
#define CPU_ITM_O_STIM27 0x0000006C
// Stimulus Port 28
#define CPU_ITM_O_STIM28 0x00000070
// Stimulus Port 29
#define CPU_ITM_O_STIM29 0x00000074
// Stimulus Port 30
#define CPU_ITM_O_STIM30 0x00000078
// Stimulus Port 31
#define CPU_ITM_O_STIM31 0x0000007C
// Trace Enable
#define CPU_ITM_O_TER 0x00000E00
// Trace Privilege
#define CPU_ITM_O_TPR 0x00000E40
// Trace Control
#define CPU_ITM_O_TCR 0x00000E80
// Lock Access
#define CPU_ITM_O_LAR 0x00000FB0
// Lock Status
#define CPU_ITM_O_LSR 0x00000FB4
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM0
//
//*****************************************************************************
// Field: [31:0] STIM0
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA0 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM0_STIM0_W 32
#define CPU_ITM_STIM0_STIM0_M 0xFFFFFFFF
#define CPU_ITM_STIM0_STIM0_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM1
//
//*****************************************************************************
// Field: [31:0] STIM1
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA1 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM1_STIM1_W 32
#define CPU_ITM_STIM1_STIM1_M 0xFFFFFFFF
#define CPU_ITM_STIM1_STIM1_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM2
//
//*****************************************************************************
// Field: [31:0] STIM2
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA2 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM2_STIM2_W 32
#define CPU_ITM_STIM2_STIM2_M 0xFFFFFFFF
#define CPU_ITM_STIM2_STIM2_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM3
//
//*****************************************************************************
// Field: [31:0] STIM3
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA3 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM3_STIM3_W 32
#define CPU_ITM_STIM3_STIM3_M 0xFFFFFFFF
#define CPU_ITM_STIM3_STIM3_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM4
//
//*****************************************************************************
// Field: [31:0] STIM4
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA4 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM4_STIM4_W 32
#define CPU_ITM_STIM4_STIM4_M 0xFFFFFFFF
#define CPU_ITM_STIM4_STIM4_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM5
//
//*****************************************************************************
// Field: [31:0] STIM5
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA5 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM5_STIM5_W 32
#define CPU_ITM_STIM5_STIM5_M 0xFFFFFFFF
#define CPU_ITM_STIM5_STIM5_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM6
//
//*****************************************************************************
// Field: [31:0] STIM6
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA6 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM6_STIM6_W 32
#define CPU_ITM_STIM6_STIM6_M 0xFFFFFFFF
#define CPU_ITM_STIM6_STIM6_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM7
//
//*****************************************************************************
// Field: [31:0] STIM7
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA7 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM7_STIM7_W 32
#define CPU_ITM_STIM7_STIM7_M 0xFFFFFFFF
#define CPU_ITM_STIM7_STIM7_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM8
//
//*****************************************************************************
// Field: [31:0] STIM8
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA8 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM8_STIM8_W 32
#define CPU_ITM_STIM8_STIM8_M 0xFFFFFFFF
#define CPU_ITM_STIM8_STIM8_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM9
//
//*****************************************************************************
// Field: [31:0] STIM9
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA9 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM9_STIM9_W 32
#define CPU_ITM_STIM9_STIM9_M 0xFFFFFFFF
#define CPU_ITM_STIM9_STIM9_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM10
//
//*****************************************************************************
// Field: [31:0] STIM10
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA10 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM10_STIM10_W 32
#define CPU_ITM_STIM10_STIM10_M 0xFFFFFFFF
#define CPU_ITM_STIM10_STIM10_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM11
//
//*****************************************************************************
// Field: [31:0] STIM11
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA11 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM11_STIM11_W 32
#define CPU_ITM_STIM11_STIM11_M 0xFFFFFFFF
#define CPU_ITM_STIM11_STIM11_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM12
//
//*****************************************************************************
// Field: [31:0] STIM12
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA12 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM12_STIM12_W 32
#define CPU_ITM_STIM12_STIM12_M 0xFFFFFFFF
#define CPU_ITM_STIM12_STIM12_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM13
//
//*****************************************************************************
// Field: [31:0] STIM13
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA13 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM13_STIM13_W 32
#define CPU_ITM_STIM13_STIM13_M 0xFFFFFFFF
#define CPU_ITM_STIM13_STIM13_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM14
//
//*****************************************************************************
// Field: [31:0] STIM14
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA14 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM14_STIM14_W 32
#define CPU_ITM_STIM14_STIM14_M 0xFFFFFFFF
#define CPU_ITM_STIM14_STIM14_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM15
//
//*****************************************************************************
// Field: [31:0] STIM15
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA15 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM15_STIM15_W 32
#define CPU_ITM_STIM15_STIM15_M 0xFFFFFFFF
#define CPU_ITM_STIM15_STIM15_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM16
//
//*****************************************************************************
// Field: [31:0] STIM16
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA16 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM16_STIM16_W 32
#define CPU_ITM_STIM16_STIM16_M 0xFFFFFFFF
#define CPU_ITM_STIM16_STIM16_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM17
//
//*****************************************************************************
// Field: [31:0] STIM17
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA17 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM17_STIM17_W 32
#define CPU_ITM_STIM17_STIM17_M 0xFFFFFFFF
#define CPU_ITM_STIM17_STIM17_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM18
//
//*****************************************************************************
// Field: [31:0] STIM18
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA18 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM18_STIM18_W 32
#define CPU_ITM_STIM18_STIM18_M 0xFFFFFFFF
#define CPU_ITM_STIM18_STIM18_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM19
//
//*****************************************************************************
// Field: [31:0] STIM19
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA19 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM19_STIM19_W 32
#define CPU_ITM_STIM19_STIM19_M 0xFFFFFFFF
#define CPU_ITM_STIM19_STIM19_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM20
//
//*****************************************************************************
// Field: [31:0] STIM20
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA20 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM20_STIM20_W 32
#define CPU_ITM_STIM20_STIM20_M 0xFFFFFFFF
#define CPU_ITM_STIM20_STIM20_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM21
//
//*****************************************************************************
// Field: [31:0] STIM21
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA21 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM21_STIM21_W 32
#define CPU_ITM_STIM21_STIM21_M 0xFFFFFFFF
#define CPU_ITM_STIM21_STIM21_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM22
//
//*****************************************************************************
// Field: [31:0] STIM22
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA22 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM22_STIM22_W 32
#define CPU_ITM_STIM22_STIM22_M 0xFFFFFFFF
#define CPU_ITM_STIM22_STIM22_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM23
//
//*****************************************************************************
// Field: [31:0] STIM23
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA23 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM23_STIM23_W 32
#define CPU_ITM_STIM23_STIM23_M 0xFFFFFFFF
#define CPU_ITM_STIM23_STIM23_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM24
//
//*****************************************************************************
// Field: [31:0] STIM24
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA24 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM24_STIM24_W 32
#define CPU_ITM_STIM24_STIM24_M 0xFFFFFFFF
#define CPU_ITM_STIM24_STIM24_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM25
//
//*****************************************************************************
// Field: [31:0] STIM25
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA25 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM25_STIM25_W 32
#define CPU_ITM_STIM25_STIM25_M 0xFFFFFFFF
#define CPU_ITM_STIM25_STIM25_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM26
//
//*****************************************************************************
// Field: [31:0] STIM26
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA26 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM26_STIM26_W 32
#define CPU_ITM_STIM26_STIM26_M 0xFFFFFFFF
#define CPU_ITM_STIM26_STIM26_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM27
//
//*****************************************************************************
// Field: [31:0] STIM27
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA27 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM27_STIM27_W 32
#define CPU_ITM_STIM27_STIM27_M 0xFFFFFFFF
#define CPU_ITM_STIM27_STIM27_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM28
//
//*****************************************************************************
// Field: [31:0] STIM28
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA28 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM28_STIM28_W 32
#define CPU_ITM_STIM28_STIM28_M 0xFFFFFFFF
#define CPU_ITM_STIM28_STIM28_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM29
//
//*****************************************************************************
// Field: [31:0] STIM29
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA29 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM29_STIM29_W 32
#define CPU_ITM_STIM29_STIM29_M 0xFFFFFFFF
#define CPU_ITM_STIM29_STIM29_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM30
//
//*****************************************************************************
// Field: [31:0] STIM30
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA30 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM30_STIM30_W 32
#define CPU_ITM_STIM30_STIM30_M 0xFFFFFFFF
#define CPU_ITM_STIM30_STIM30_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_STIM31
//
//*****************************************************************************
// Field: [31:0] STIM31
//
// A write to this location causes data to be written into the FIFO if
// TER.STIMENA31 is set. Reading from the stimulus port returns the FIFO status
// in bit [0]: 0 = full, 1 = not full. The polled FIFO interface does not
// provide an atomic read-modify-write, so it's users responsibility to ensure
// exclusive read-modify-write if this ITM port is used concurrently by
// interrupts or other threads.
#define CPU_ITM_STIM31_STIM31_W 32
#define CPU_ITM_STIM31_STIM31_M 0xFFFFFFFF
#define CPU_ITM_STIM31_STIM31_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_TER
//
//*****************************************************************************
// Field: [31] STIMENA31
//
// Bit mask to enable tracing on ITM stimulus port 31.
#define CPU_ITM_TER_STIMENA31 0x80000000
#define CPU_ITM_TER_STIMENA31_BITN 31
#define CPU_ITM_TER_STIMENA31_M 0x80000000
#define CPU_ITM_TER_STIMENA31_S 31
// Field: [30] STIMENA30
//
// Bit mask to enable tracing on ITM stimulus port 30.
#define CPU_ITM_TER_STIMENA30 0x40000000
#define CPU_ITM_TER_STIMENA30_BITN 30
#define CPU_ITM_TER_STIMENA30_M 0x40000000
#define CPU_ITM_TER_STIMENA30_S 30
// Field: [29] STIMENA29
//
// Bit mask to enable tracing on ITM stimulus port 29.
#define CPU_ITM_TER_STIMENA29 0x20000000
#define CPU_ITM_TER_STIMENA29_BITN 29
#define CPU_ITM_TER_STIMENA29_M 0x20000000
#define CPU_ITM_TER_STIMENA29_S 29
// Field: [28] STIMENA28
//
// Bit mask to enable tracing on ITM stimulus port 28.
#define CPU_ITM_TER_STIMENA28 0x10000000
#define CPU_ITM_TER_STIMENA28_BITN 28
#define CPU_ITM_TER_STIMENA28_M 0x10000000
#define CPU_ITM_TER_STIMENA28_S 28
// Field: [27] STIMENA27
//
// Bit mask to enable tracing on ITM stimulus port 27.
#define CPU_ITM_TER_STIMENA27 0x08000000
#define CPU_ITM_TER_STIMENA27_BITN 27
#define CPU_ITM_TER_STIMENA27_M 0x08000000
#define CPU_ITM_TER_STIMENA27_S 27
// Field: [26] STIMENA26
//
// Bit mask to enable tracing on ITM stimulus port 26.
#define CPU_ITM_TER_STIMENA26 0x04000000
#define CPU_ITM_TER_STIMENA26_BITN 26
#define CPU_ITM_TER_STIMENA26_M 0x04000000
#define CPU_ITM_TER_STIMENA26_S 26
// Field: [25] STIMENA25
//
// Bit mask to enable tracing on ITM stimulus port 25.
#define CPU_ITM_TER_STIMENA25 0x02000000
#define CPU_ITM_TER_STIMENA25_BITN 25
#define CPU_ITM_TER_STIMENA25_M 0x02000000
#define CPU_ITM_TER_STIMENA25_S 25
// Field: [24] STIMENA24
//
// Bit mask to enable tracing on ITM stimulus port 24.
#define CPU_ITM_TER_STIMENA24 0x01000000
#define CPU_ITM_TER_STIMENA24_BITN 24
#define CPU_ITM_TER_STIMENA24_M 0x01000000
#define CPU_ITM_TER_STIMENA24_S 24
// Field: [23] STIMENA23
//
// Bit mask to enable tracing on ITM stimulus port 23.
#define CPU_ITM_TER_STIMENA23 0x00800000
#define CPU_ITM_TER_STIMENA23_BITN 23
#define CPU_ITM_TER_STIMENA23_M 0x00800000
#define CPU_ITM_TER_STIMENA23_S 23
// Field: [22] STIMENA22
//
// Bit mask to enable tracing on ITM stimulus port 22.
#define CPU_ITM_TER_STIMENA22 0x00400000
#define CPU_ITM_TER_STIMENA22_BITN 22
#define CPU_ITM_TER_STIMENA22_M 0x00400000
#define CPU_ITM_TER_STIMENA22_S 22
// Field: [21] STIMENA21
//
// Bit mask to enable tracing on ITM stimulus port 21.
#define CPU_ITM_TER_STIMENA21 0x00200000
#define CPU_ITM_TER_STIMENA21_BITN 21
#define CPU_ITM_TER_STIMENA21_M 0x00200000
#define CPU_ITM_TER_STIMENA21_S 21
// Field: [20] STIMENA20
//
// Bit mask to enable tracing on ITM stimulus port 20.
#define CPU_ITM_TER_STIMENA20 0x00100000
#define CPU_ITM_TER_STIMENA20_BITN 20
#define CPU_ITM_TER_STIMENA20_M 0x00100000
#define CPU_ITM_TER_STIMENA20_S 20
// Field: [19] STIMENA19
//
// Bit mask to enable tracing on ITM stimulus port 19.
#define CPU_ITM_TER_STIMENA19 0x00080000
#define CPU_ITM_TER_STIMENA19_BITN 19
#define CPU_ITM_TER_STIMENA19_M 0x00080000
#define CPU_ITM_TER_STIMENA19_S 19
// Field: [18] STIMENA18
//
// Bit mask to enable tracing on ITM stimulus port 18.
#define CPU_ITM_TER_STIMENA18 0x00040000
#define CPU_ITM_TER_STIMENA18_BITN 18
#define CPU_ITM_TER_STIMENA18_M 0x00040000
#define CPU_ITM_TER_STIMENA18_S 18
// Field: [17] STIMENA17
//
// Bit mask to enable tracing on ITM stimulus port 17.
#define CPU_ITM_TER_STIMENA17 0x00020000
#define CPU_ITM_TER_STIMENA17_BITN 17
#define CPU_ITM_TER_STIMENA17_M 0x00020000
#define CPU_ITM_TER_STIMENA17_S 17
// Field: [16] STIMENA16
//
// Bit mask to enable tracing on ITM stimulus port 16.
#define CPU_ITM_TER_STIMENA16 0x00010000
#define CPU_ITM_TER_STIMENA16_BITN 16
#define CPU_ITM_TER_STIMENA16_M 0x00010000
#define CPU_ITM_TER_STIMENA16_S 16
// Field: [15] STIMENA15
//
// Bit mask to enable tracing on ITM stimulus port 15.
#define CPU_ITM_TER_STIMENA15 0x00008000
#define CPU_ITM_TER_STIMENA15_BITN 15
#define CPU_ITM_TER_STIMENA15_M 0x00008000
#define CPU_ITM_TER_STIMENA15_S 15
// Field: [14] STIMENA14
//
// Bit mask to enable tracing on ITM stimulus port 14.
#define CPU_ITM_TER_STIMENA14 0x00004000
#define CPU_ITM_TER_STIMENA14_BITN 14
#define CPU_ITM_TER_STIMENA14_M 0x00004000
#define CPU_ITM_TER_STIMENA14_S 14
// Field: [13] STIMENA13
//
// Bit mask to enable tracing on ITM stimulus port 13.
#define CPU_ITM_TER_STIMENA13 0x00002000
#define CPU_ITM_TER_STIMENA13_BITN 13
#define CPU_ITM_TER_STIMENA13_M 0x00002000
#define CPU_ITM_TER_STIMENA13_S 13
// Field: [12] STIMENA12
//
// Bit mask to enable tracing on ITM stimulus port 12.
#define CPU_ITM_TER_STIMENA12 0x00001000
#define CPU_ITM_TER_STIMENA12_BITN 12
#define CPU_ITM_TER_STIMENA12_M 0x00001000
#define CPU_ITM_TER_STIMENA12_S 12
// Field: [11] STIMENA11
//
// Bit mask to enable tracing on ITM stimulus port 11.
#define CPU_ITM_TER_STIMENA11 0x00000800
#define CPU_ITM_TER_STIMENA11_BITN 11
#define CPU_ITM_TER_STIMENA11_M 0x00000800
#define CPU_ITM_TER_STIMENA11_S 11
// Field: [10] STIMENA10
//
// Bit mask to enable tracing on ITM stimulus port 10.
#define CPU_ITM_TER_STIMENA10 0x00000400
#define CPU_ITM_TER_STIMENA10_BITN 10
#define CPU_ITM_TER_STIMENA10_M 0x00000400
#define CPU_ITM_TER_STIMENA10_S 10
// Field: [9] STIMENA9
//
// Bit mask to enable tracing on ITM stimulus port 9.
#define CPU_ITM_TER_STIMENA9 0x00000200
#define CPU_ITM_TER_STIMENA9_BITN 9
#define CPU_ITM_TER_STIMENA9_M 0x00000200
#define CPU_ITM_TER_STIMENA9_S 9
// Field: [8] STIMENA8
//
// Bit mask to enable tracing on ITM stimulus port 8.
#define CPU_ITM_TER_STIMENA8 0x00000100
#define CPU_ITM_TER_STIMENA8_BITN 8
#define CPU_ITM_TER_STIMENA8_M 0x00000100
#define CPU_ITM_TER_STIMENA8_S 8
// Field: [7] STIMENA7
//
// Bit mask to enable tracing on ITM stimulus port 7.
#define CPU_ITM_TER_STIMENA7 0x00000080
#define CPU_ITM_TER_STIMENA7_BITN 7
#define CPU_ITM_TER_STIMENA7_M 0x00000080
#define CPU_ITM_TER_STIMENA7_S 7
// Field: [6] STIMENA6
//
// Bit mask to enable tracing on ITM stimulus port 6.
#define CPU_ITM_TER_STIMENA6 0x00000040
#define CPU_ITM_TER_STIMENA6_BITN 6
#define CPU_ITM_TER_STIMENA6_M 0x00000040
#define CPU_ITM_TER_STIMENA6_S 6
// Field: [5] STIMENA5
//
// Bit mask to enable tracing on ITM stimulus port 5.
#define CPU_ITM_TER_STIMENA5 0x00000020
#define CPU_ITM_TER_STIMENA5_BITN 5
#define CPU_ITM_TER_STIMENA5_M 0x00000020
#define CPU_ITM_TER_STIMENA5_S 5
// Field: [4] STIMENA4
//
// Bit mask to enable tracing on ITM stimulus port 4.
#define CPU_ITM_TER_STIMENA4 0x00000010
#define CPU_ITM_TER_STIMENA4_BITN 4
#define CPU_ITM_TER_STIMENA4_M 0x00000010
#define CPU_ITM_TER_STIMENA4_S 4
// Field: [3] STIMENA3
//
// Bit mask to enable tracing on ITM stimulus port 3.
#define CPU_ITM_TER_STIMENA3 0x00000008
#define CPU_ITM_TER_STIMENA3_BITN 3
#define CPU_ITM_TER_STIMENA3_M 0x00000008
#define CPU_ITM_TER_STIMENA3_S 3
// Field: [2] STIMENA2
//
// Bit mask to enable tracing on ITM stimulus port 2.
#define CPU_ITM_TER_STIMENA2 0x00000004
#define CPU_ITM_TER_STIMENA2_BITN 2
#define CPU_ITM_TER_STIMENA2_M 0x00000004
#define CPU_ITM_TER_STIMENA2_S 2
// Field: [1] STIMENA1
//
// Bit mask to enable tracing on ITM stimulus port 1.
#define CPU_ITM_TER_STIMENA1 0x00000002
#define CPU_ITM_TER_STIMENA1_BITN 1
#define CPU_ITM_TER_STIMENA1_M 0x00000002
#define CPU_ITM_TER_STIMENA1_S 1
// Field: [0] STIMENA0
//
// Bit mask to enable tracing on ITM stimulus port 0.
#define CPU_ITM_TER_STIMENA0 0x00000001
#define CPU_ITM_TER_STIMENA0_BITN 0
#define CPU_ITM_TER_STIMENA0_M 0x00000001
#define CPU_ITM_TER_STIMENA0_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_TPR
//
//*****************************************************************************
// Field: [3:0] PRIVMASK
//
// Bit mask to enable unprivileged (User) access to ITM stimulus ports:
//
// Bit [0] enables stimulus ports 0, 1, ..., and 7.
// Bit [1] enables stimulus ports 8, 9, ..., and 15.
// Bit [2] enables stimulus ports 16, 17, ..., and 23.
// Bit [3] enables stimulus ports 24, 25, ..., and 31.
//
// 0: User access allowed to stimulus ports
// 1: Privileged access only to stimulus ports
#define CPU_ITM_TPR_PRIVMASK_W 4
#define CPU_ITM_TPR_PRIVMASK_M 0x0000000F
#define CPU_ITM_TPR_PRIVMASK_S 0
//*****************************************************************************
//
// Register: CPU_ITM_O_TCR
//
//*****************************************************************************
// Field: [23] BUSY
//
// Set when ITM events present and being drained.
#define CPU_ITM_TCR_BUSY 0x00800000
#define CPU_ITM_TCR_BUSY_BITN 23
#define CPU_ITM_TCR_BUSY_M 0x00800000
#define CPU_ITM_TCR_BUSY_S 23
// Field: [22:16] ATBID
//
// Trace Bus ID for CoreSight system. Optional identifier for multi-source
// trace stream formatting. If multi-source trace is in use, this field must be
// written with a non-zero value.
#define CPU_ITM_TCR_ATBID_W 7