Files
Gen4_R-Car_Trace32/2_Trunk/perdap.per
2025-10-14 09:52:32 +09:00

639 lines
32 KiB
Plaintext

; --------------------------------------------------------------------------------
; @Title: DAP Debug Port Register
; @Props: Released
; @Author: PEG
; @Manufacturer: ARM
; @Doc: ARM Debug Interface Architecture Specification IHI0074A
; @Copyright: (C) 1989-2014 Lauterbach GmbH, licensed for use with TRACE32(R) only
; --------------------------------------------------------------------------------
; $Id: perdap.per 8110 2017-07-28 11:15:52Z pegold $
config 16. 8.
// Address format: 0x4100<dpbanksel><registeraddress>
// <dpbanksel> = Bit[7:4]
// <registeraddress> = Bit[3:0]
// NOTE: IDCODE does not follow this scheme and uses a fixed address.
width 10.
base edbg:0x41000000
if SYStem.CONFIG.DebugPortType()=="JTAG"&&((d.l(edbg:0x41000000)&0x0000f000)==0x00001000)
rgroup 0x00++3 "JTAG-DP DPv1 Register"
line.long 0x0 "DPIDR,Debug Port Identification Register"
hexmask.long.byte 0x0 28.--31. 1. "REVISION ,Revision Code"
textline " "
hexmask.long.word 0x0 20.--27. 1. "PARTNO ,Part Number"
textline " "
bitfld.long 0x0 16. "MIN ,Minimal Debug Port (MINDP) Functions Implemented" "No,Yes"
textline " "
bitfld.long 0x0 12.--15. "VERSION ,Debug Port Architecture Version" "Reserved,DPv1,DPv2,DPv3,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved"
textline " "
hexmask.long.word 0x0 1.--11. 1. "DESIGNER ,Designer ID"
group 0x04++3
line.long 0x0 "CTRL/STAT,Control/Status Register"
bitfld.long 0x0 31. "CSYSPWRUPACK ,System Power-Up Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 30. "CSYSPWRUPREQ ,System Power-Up Request" "No,Yes"
textline " "
bitfld.long 0x0 29. "CDBGPWRUPACK ,Debug Power-Up Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 28. "CDBGPWRUPREQ ,Debug Power-Up Request" "No,Yes"
textline " "
bitfld.long 0x0 27. "CDBGRSTACK ,Debug Reset Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 26. "CDBGRSTREQ ,Debug Reset Request" "No,Yes"
textline " "
hexmask.long.word 0x0 12.--23. 1. "TRNCNT ,Transaction Counter"
textline " "
bitfld.long 0x0 8.--11. "MASKLANE ,Byte Mask" "0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F"
textline " "
bitfld.long 0x0 7. "WDATAERR ,Error on Last Write" "No,Yes"
textline " "
bitfld.long 0x0 6. "READOK ,Last Read OK" "No,Yes"
textline " "
bitfld.long 0x0 5. "STICKYERR ,Error on Access Port Transaction" "No,Yes"
textline " "
bitfld.long 0x0 4. "STICKYCMP ,Match on Pushed Compare or Pushed Verify" "No,Yes"
textline " "
bitfld.long 0x0 2.--3. "TRNMODE ,Transfer Mode" "0,1,2,3"
textline " "
bitfld.long 0x0 1. "STICKYORUN ,Overrun Occurred" "No,Yes"
textline " "
bitfld.long 0x0 0. "ORUNDETECT ,Overrun Detection" "Off,On"
wgroup 0x08++3
line.long 0x0 "SELECT,AP Select Register"
hexmask.long.byte 0x0 24.--31. 1. "APSEL ,Access Port Select"
textline " "
hexmask.long.byte 0x0 4.--7. 16. "APBANKSEL ,Access Port Four-Word Register Bank Select"
textline " "
bitfld.long 0x0 0.--3. "DPBANKSEL ,Debug Port Address Bank Select" "CTRL/STAT,DCLR,TARGETID,DLPIDR,EVENTSTAT,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved"
rgroup 0x0c++3
line.long 0x0 "RDBUFF,Read Buffer Register"
group 0x14++3
line.long 0x0 "DLCR,Data Link Control Register"
bitfld.long 0x0 8.--9. "TURNROUND ,Turnaround Tristate Data Periods" "1,2,3,4"
rgroup 0x100++3 "JTAG-DP DPv1 Register by IR-Scan"
line.long 0x0 "IDCODE,ID Code Register"
hexmask.long.byte 0x0 24.--31. 1. "VERSION ,Version Code"
textline " "
hexmask.long.word 0x0 12.--27. 1. "PARTNO ,Part Number"
textline " "
hexmask.long.word 0x0 1.--11. 1. "DESIGNER ,Designer ID"
wgroup 0x100++3
line.long 0x0 "ABORT,Abort Register"
bitfld.long 0x0 4. "ORUNERRCLR ,Clear the CTRL/STAT.STICKYORUN Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 3. "WDERRCLR ,Clear the CTRL/STAT.WDATAERR Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 2. "STKERRCLR ,Clear the CTRL/STAT.STICKYERR Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 1. "STKCMPCLR ,Clear the CTRL/STAT.STICKYCMP Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 0. "DAPABORT ,Abort Current AP Transaction" "-,Abort"
elif SYStem.CONFIG.DebugPortType()=="JTAG"&&((d.l(edbg:0x41000000)&0x0000f000)==0x00002000)
rgroup 0x00++3 "JTAG-DP DPv2 Register"
line.long 0x0 "DPIDR,Debug Port Identification Register"
hexmask.long.byte 0x0 28.--31. 1. "REVISION ,Revision Code"
textline " "
hexmask.long.word 0x0 20.--27. 1. "PARTNO ,Part Number"
textline " "
bitfld.long 0x0 16. "MIN ,Minimal Debug Port (MINDP) Functions Implemented" "No,Yes"
textline " "
bitfld.long 0x0 12.--15. "VERSION ,Debug Port Architecture Version" "Reserved,DPv1,DPv2,DPv3,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved"
textline " "
hexmask.long.word 0x0 1.--11. 1. "DESIGNER ,Designer ID"
group 0x04++3
line.long 0x0 "CTRL/STAT,Control/Status Register"
bitfld.long 0x0 31. "CSYSPWRUPACK ,System Power-Up Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 30. "CSYSPWRUPREQ ,System Power-Up Request" "No,Yes"
textline " "
bitfld.long 0x0 29. "CDBGPWRUPACK ,Debug Power-Up Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 28. "CDBGPWRUPREQ ,Debug Power-Up Request" "No,Yes"
textline " "
bitfld.long 0x0 27. "CDBGRSTACK ,Debug Reset Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 26. "CDBGRSTREQ ,Debug Reset Request" "No,Yes"
textline " "
hexmask.long.word 0x0 12.--23. 1. "TRNCNT ,Transaction Counter"
textline " "
bitfld.long 0x0 8.--11. "MASKLANE ,Byte Mask" "0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F"
textline " "
bitfld.long 0x0 7. "WDATAERR ,Error on Last Write" "No,Yes"
textline " "
bitfld.long 0x0 6. "READOK ,Last Read OK" "No,Yes"
textline " "
bitfld.long 0x0 5. "STICKYERR ,Error on Access Port Transaction" "No,Yes"
textline " "
bitfld.long 0x0 4. "STICKYCMP ,Match on Pushed Compare or Pushed Verify" "No,Yes"
textline " "
bitfld.long 0x0 2.--3. "TRNMODE ,Transfer Mode" "0,1,2,3"
textline " "
bitfld.long 0x0 1. "STICKYORUN ,Overrun Occurred" "No,Yes"
textline " "
bitfld.long 0x0 0. "ORUNDETECT ,Overrun Detection" "Off,On"
wgroup 0x08++3
line.long 0x0 "SELECT,AP Select Register"
hexmask.long.byte 0x0 24.--31. 1. "APSEL ,Access Port Select"
textline " "
hexmask.long.byte 0x0 4.--7. 16. "APBANKSEL ,Access Port Four-Word Register Bank Select"
textline " "
bitfld.long 0x0 0.--3. "DPBANKSEL ,Debug Port Address Bank Select" "CTRL/STAT,DCLR,TARGETID,DLPIDR,EVENTSTAT,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved"
rgroup 0x0c++3
line.long 0x0 "RDBUFF,Read Buffer Register"
group 0x14++3
line.long 0x0 "DLCR,Data Link Control Register"
bitfld.long 0x0 8.--9. "TURNROUND ,Turnaround Tristate Data Periods" "1,2,3,4"
rgroup 0x24++3
line.long 0x0 "TARGETID,Target Identification Register"
hexmask.long.byte 0x0 24.--31. 1. "TREVISION ,Target Revision"
textline " "
hexmask.long.word 0x0 12.--27. 1. "TPARTNO ,Target Part Number"
textline " "
hexmask.long.word 0x0 1.--11. 1. "TDESIGNER ,Target Designer"
rgroup 0x34++3
line.long 0x0 "DLPIDR,Data Link Protocol Identification Register"
hexmask.long.byte 0x0 28.--31. 1. "TINSTANCE ,Target Instance Number"
textline " "
hexmask.long.byte 0x0 0.--3. 1. "PROTVSN ,SWD Protocol Version"
rgroup 0x44++3
line.long 0x0 "EVENTSTAT,Event Status Register"
bitfld.long 0x0 0. "EA ,Event Status Flag" "No,Yes"
rgroup 0x100++3 "JTAG-DP DPv2 Register by IR-Scan"
line.long 0x0 "IDCODE,ID Code Register"
hexmask.long.byte 0x0 24.--31. 1. "VERSION ,Version Code"
textline " "
hexmask.long.word 0x0 12.--27. 1. "PARTNO ,Part Number"
textline " "
hexmask.long.word 0x0 1.--11. 1. "DESIGNER ,Designer ID"
wgroup 0x100++3
line.long 0x0 "ABORT,Abort Register"
bitfld.long 0x0 4. "ORUNERRCLR ,Clear the CTRL/STAT.STICKYORUN Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 3. "WDERRCLR ,Clear the CTRL/STAT.WDATAERR Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 2. "STKERRCLR ,Clear the CTRL/STAT.STICKYERR Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 1. "STKCMPCLR ,Clear the CTRL/STAT.STICKYCMP Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 0. "DAPABORT ,Abort Current AP Transaction" "-,Abort"
elif SYStem.CONFIG.DebugPortType()=="JTAG"&&((d.l(edbg:0x41000000)&0x0000f000)==0x00003000)
rgroup 0x00++3 "JTAG-DP DPv3 Register"
line.long 0x0 "DPIDR,Debug Port Identification Register"
hexmask.long.byte 0x0 28.--31. 1. "REVISION ,Revision Code"
textline " "
hexmask.long.word 0x0 20.--27. 1. "PARTNO ,Part Number"
textline " "
bitfld.long 0x0 16. "MIN ,Minimal Debug Port (MINDP) Functions Implemented" "No,Yes"
textline " "
bitfld.long 0x0 12.--15. "VERSION ,Debug Port Architecture Version" "Reserved,DPv1,DPv2,DPv3,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved"
textline " "
hexmask.long.word 0x0 1.--11. 1. "DESIGNER ,Designer ID"
group 0x04++3
line.long 0x0 "CTRL/STAT,Control/Status Register"
bitfld.long 0x0 31. "CSYSPWRUPACK ,System Power-Up Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 30. "CSYSPWRUPREQ ,System Power-Up Request" "No,Yes"
textline " "
bitfld.long 0x0 29. "CDBGPWRUPACK ,Debug Power-Up Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 28. "CDBGPWRUPREQ ,Debug Power-Up Request" "No,Yes"
textline " "
bitfld.long 0x0 27. "CDBGRSTACK ,Debug Reset Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 26. "CDBGRSTREQ ,Debug Reset Request" "No,Yes"
textline " "
hexmask.long.word 0x0 12.--23. 1. "TRNCNT ,Transaction Counter"
textline " "
bitfld.long 0x0 8.--11. "MASKLANE ,Byte Mask" "0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F"
textline " "
bitfld.long 0x0 7. "WDATAERR ,Error on Last Write" "No,Yes"
textline " "
bitfld.long 0x0 6. "READOK ,Last Read OK" "No,Yes"
textline " "
bitfld.long 0x0 5. "STICKYERR ,Error on Access Port Transaction" "No,Yes"
textline " "
bitfld.long 0x0 4. "STICKYCMP ,Match on Pushed Compare or Pushed Verify" "No,Yes"
textline " "
bitfld.long 0x0 2.--3. "TRNMODE ,Transfer Mode" "0,1,2,3"
textline " "
bitfld.long 0x0 1. "STICKYORUN ,Overrun Occurred" "No,Yes"
textline " "
bitfld.long 0x0 0. "ORUNDETECT ,Overrun Detection" "Off,On"
wgroup 0x54++3
line.long 0x0 "SELECT1,AP Select 1 Register"
hexmask.long.long 0x0 0.--31. 1. "ADDR[63:32] ,Address[63:32]"
wgroup 0x08++3
line.long 0x0 "SELECT,AP Select Register"
hexmask.long.long 0x0 4.--31. 0x10 "ADDR[31:4] ,Address[31:4]"
textline " "
bitfld.long 0x0 0.--3. "DPBANKSEL ,Debug Port Address Bank Select" "CTRL/STAT,DCLR,TARGETID,DLPIDR,EVENTSTAT,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved"
rgroup 0x0c++3
line.long 0x0 "RDBUFF,Read Buffer Register"
rgroup 0x10++3
line.long 0x0 "DPIDR1,Debug Port Identification Register 1"
bitfld.long 0x0 7. "ERRMODE ,CTRL/STAT.ERRMODE is Implemented" "No,Yes"
textline " "
hexmask.long.byte 0x0 0.--6. 1. "ASIZE ,Address Size of SELECT, SELECT1, BASEPTR0, BASEPTR1"
group 0x14++3
line.long 0x0 "DLCR,Data Link Control Register"
bitfld.long 0x0 8.--9. "TURNROUND ,Turnaround Tristate Data Periods" "1,2,3,4"
rgroup 0x30++3
line.long 0x0 "BASEPTR1,Base Pointer 1"
hexmask.long.long 0x0 0.--31. 1. "PTR[63:32] ,Base Pointer 1"
rgroup 0x20++3
line.long 0x0 "BASEPTR0,Base Pointer 0"
hexmask.long.long 0x0 22.--31. 0x1000 "PTR[31:12] ,Base Pointer 0"
textline " "
bitfld.long 0x0 0. "VALID ,Valid" "No,Yes"
rgroup 0x24++3
line.long 0x0 "TARGETID,Target Identification Register"
hexmask.long.byte 0x0 24.--31. 1. "TREVISION ,Target Revision"
textline " "
hexmask.long.word 0x0 12.--27. 1. "TPARTNO ,Target Part Number"
textline " "
hexmask.long.word 0x0 1.--11. 1. "TDESIGNER ,Target Designer"
rgroup 0x34++3
line.long 0x0 "DLPIDR,Data Link Protocol Identification Register"
hexmask.long.byte 0x0 28.--31. 1. "TINSTANCE ,Target Instance Number"
textline " "
hexmask.long.byte 0x0 0.--3. 1. "PROTVSN ,SWD Protocol Version"
rgroup 0x44++3
line.long 0x0 "EVENTSTAT,Event Status Register"
bitfld.long 0x0 0. "EA ,Event Status Flag" "No,Yes"
rgroup 0x100++3 "JTAG-DP DPv3 Register by IR-Scan"
line.long 0x0 "IDCODE,ID Code Register"
hexmask.long.byte 0x0 24.--31. 1. "VERSION ,Version Code"
textline " "
hexmask.long.word 0x0 12.--27. 1. "PARTNO ,Part Number"
textline " "
hexmask.long.word 0x0 1.--11. 1. "DESIGNER ,Designer ID"
wgroup 0x100++3
line.long 0x0 "ABORT,Abort Register"
bitfld.long 0x0 4. "ORUNERRCLR ,Clear the CTRL/STAT.STICKYORUN Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 3. "WDERRCLR ,Clear the CTRL/STAT.WDATAERR Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 2. "STKERRCLR ,Clear the CTRL/STAT.STICKYERR Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 1. "STKCMPCLR ,Clear the CTRL/STAT.STICKYCMP Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 0. "DAPABORT ,Abort Current AP Transaction" "-,Abort"
elif SYStem.CONFIG.DebugPortType()=="JTAG"
group 0x04++3 "JTAG-DP DPv0 Register"
line.long 0x0 "CTRL/STAT,Control/Status Register"
bitfld.long 0x0 31. "CSYSPWRUPACK ,System Power-Up Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 30. "CSYSPWRUPREQ ,System Power-Up Request" "No,Yes"
textline " "
bitfld.long 0x0 29. "CDBGPWRUPACK ,Debug Power-Up Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 28. "CDBGPWRUPREQ ,Debug Power-Up Request" "No,Yes"
textline " "
bitfld.long 0x0 27. "CDBGRSTACK ,Debug Reset Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 26. "CDBGRSTREQ ,Debug Reset Request" "No,Yes"
textline " "
hexmask.long.word 0x0 12.--23. 1. "TRNCNT ,Transaction Counter"
textline " "
bitfld.long 0x0 8.--11. "MASKLANE ,Byte Mask" "0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F"
textline " "
bitfld.long 0x0 7. "WDATAERR ,Error on Last Write" "No,Yes"
textline " "
bitfld.long 0x0 5. "STICKYERR ,Error on Access Port Transaction" "No,Yes"
textline " "
bitfld.long 0x0 4. "STICKYCMP ,Match on Pushed Compare or Pushed Verify" "No,Yes"
textline " "
bitfld.long 0x0 2.--3. "TRNMODE ,Transfer Mode" "0,1,2,3"
textline " "
bitfld.long 0x0 1. "STICKYORUN ,Overrun Occurred" "No,Yes"
textline " "
bitfld.long 0x0 0. "ORUNDETECT ,Overrun Detection" "Off,On"
group 0x08++3
line.long 0x0 "SELECT,AP Select Register"
hexmask.long.byte 0x0 24.--31. 1. "APSEL ,Access Port Select"
textline " "
hexmask.long.byte 0x0 4.--7. 16. "APBANKSEL ,Access Port Four-Word Register Bank Select"
textline " "
bitfld.long 0x0 0.--3. "DPBANKSEL ,Debug Port Address Bank Select" "CTRL/STAT,DCLR,TARGETID,DLPIDR,EVENTSTAT,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved"
rgroup 0x0c++3
line.long 0x0 "RDBUFF,Read Buffer Register"
rgroup 0x100++3 "JTAG-DP DPv0 Register by IR-Scan"
line.long 0x0 "IDCODE,ID Code Register"
hexmask.long.byte 0x0 24.--31. 1. "VERSION ,Version Code"
textline " "
hexmask.long.word 0x0 12.--27. 1. "PARTNO ,Part Number"
textline " "
hexmask.long.word 0x0 1.--11. 1. "DESIGNER ,Designer ID"
wgroup 0x100++3
line.long 0x0 "ABORT,Abort Register"
bitfld.long 0x0 0. "DAPABORT ,Abort Current AP Transaction" "-,Abort"
elif SYStem.CONFIG.DEBUGPORTTYPE()=="SWD"&&((d.l(edbg:0x41000000)&0x0000f000)==0x00001000)
rgroup 0x00++3 "SW-DP DPv1 Register"
line.long 0x0 "DPIDR,Debug Port Identification Register"
hexmask.long.byte 0x0 28.--31. 1. "REVISION ,Revision Code"
textline " "
hexmask.long.word 0x0 20.--27. 1. "PARTNO ,Part Number"
textline " "
bitfld.long 0x0 16. "MIN ,Minimal Debug Port (MINDP) Functions Implemented" "No,Yes"
textline " "
bitfld.long 0x0 12.--15. "VERSION ,Debug Port Architecture Version" "Reserved,DPv1,DPv2,DPv3,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved"
textline " "
hexmask.long.word 0x0 1.--11. 1. "DESIGNER ,Designer ID"
wgroup 0x00++3
line.long 0x0 "ABORT,Abort Register"
bitfld.long 0x0 4. "ORUNERRCLR ,Clear the CTRL/STAT.STICKYORUN Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 3. "WDERRCLR ,Clear the CTRL/STAT.WDATAERR Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 2. "STKERRCLR ,Clear the CTRL/STAT.STICKYERR Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 1. "STKCMPCLR ,Clear the CTRL/STAT.STICKYCMP Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 0. "DAPABORT ,Abort Current AP Transaction" "-,Abort"
group 0x04++3
line.long 0x0 "CTRL/STAT,Control/Status Register"
bitfld.long 0x0 31. "CSYSPWRUPACK ,System Power-Up Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 30. "CSYSPWRUPREQ ,System Power-Up Request" "No,Yes"
textline " "
bitfld.long 0x0 29. "CDBGPWRUPACK ,Debug Power-Up Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 28. "CDBGPWRUPREQ ,Debug Power-Up Request" "No,Yes"
textline " "
bitfld.long 0x0 27. "CDBGRSTACK ,Debug Reset Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 26. "CDBGRSTREQ ,Debug Reset Request" "No,Yes"
textline " "
hexmask.long.word 0x0 12.--23. 1. "TRNCNT ,Transaction Counter"
textline " "
bitfld.long 0x0 8.--11. "MASKLANE ,Byte Mask" "0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F"
textline " "
bitfld.long 0x0 7. "WDATAERR ,Error on Last Write" "No,Yes"
textline " "
bitfld.long 0x0 6. "READOK ,Last Read OK" "No,Yes"
textline " "
bitfld.long 0x0 5. "STICKYERR ,Error on Access Port Transaction" "No,Yes"
textline " "
bitfld.long 0x0 4. "STICKYCMP ,Match on Pushed Compare or Pushed Verify" "No,Yes"
textline " "
bitfld.long 0x0 2.--3. "TRNMODE ,Transfer Mode" "0,1,2,3"
textline " "
bitfld.long 0x0 1. "STICKYORUN ,Overrun Occurred" "No,Yes"
textline " "
bitfld.long 0x0 0. "ORUNDETECT ,Overrun Detection" "Off,On"
hgroup 0x08++3
hide.long 0x0 "RESEND,Resend Register"
in
wgroup 0x08++3
line.long 0x0 "SELECT,AP Select Register"
hexmask.long.byte 0x0 24.--31. 1. "APSEL ,Access Port Select"
textline " "
hexmask.long.byte 0x0 4.--7. 16. "APBANKSEL ,Access Port Four-Word Register Bank Select"
textline " "
bitfld.long 0x0 0.--3. "DPBANKSEL ,Debug Port Address Bank Select" "CTRL/STAT,DCLR,TARGETID,DLPIDR,EVENTSTAT,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved"
rgroup 0x0c++3
line.long 0x0 "RDBUFF,Read Buffer Register"
group 0x14++3
line.long 0x0 "DLCR,Data Link Control Register"
bitfld.long 0x0 8.--9. "TURNROUND ,Turnaround Tristate Data Periods" "1,2,3,4"
elif SYStem.CONFIG.DebugPortType()=="SWD"&&((d.l(edbg:0x41000000)&0x0000f000)==0x00002000)
rgroup 0x00++3 "SW-DP DPv2 Register"
line.long 0x0 "DPIDR,Debug Port Identification Register"
hexmask.long.byte 0x0 28.--31. 1. "REVISION ,Revision Code"
textline " "
hexmask.long.word 0x0 20.--27. 1. "PARTNO ,Part Number"
textline " "
bitfld.long 0x0 16. "MIN ,Minimal Debug Port (MINDP) Functions Implemented" "No,Yes"
textline " "
bitfld.long 0x0 12.--15. "VERSION ,Debug Port Architecture Version" "Reserved,DPv1,DPv2,DPv3,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved"
textline " "
hexmask.long.word 0x0 1.--11. 1. "DESIGNER ,Designer ID"
wgroup 0x00++3
line.long 0x0 "ABORT,Abort Register"
bitfld.long 0x0 4. "ORUNERRCLR ,Clear the CTRL/STAT.STICKYORUN Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 3. "WDERRCLR ,Clear the CTRL/STAT.WDATAERR Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 2. "STKERRCLR ,Clear the CTRL/STAT.STICKYERR Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 1. "STKCMPCLR ,Clear the CTRL/STAT.STICKYCMP Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 0. "DAPABORT ,Abort Current AP Transaction" "-,Abort"
group 0x04++3
line.long 0x0 "CTRL/STAT,Control/Status Register"
bitfld.long 0x0 31. "CSYSPWRUPACK ,System Power-Up Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 30. "CSYSPWRUPREQ ,System Power-Up Request" "No,Yes"
textline " "
bitfld.long 0x0 29. "CDBGPWRUPACK ,Debug Power-Up Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 28. "CDBGPWRUPREQ ,Debug Power-Up Request" "No,Yes"
textline " "
bitfld.long 0x0 27. "CDBGRSTACK ,Debug Reset Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 26. "CDBGRSTREQ ,Debug Reset Request" "No,Yes"
textline " "
hexmask.long.word 0x0 12.--23. 1. "TRNCNT ,Transaction Counter"
textline " "
bitfld.long 0x0 8.--11. "MASKLANE ,Byte Mask" "0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F"
textline " "
bitfld.long 0x0 7. "WDATAERR ,Error on Last Write" "No,Yes"
textline " "
bitfld.long 0x0 6. "READOK ,Last Read OK" "No,Yes"
textline " "
bitfld.long 0x0 5. "STICKYERR ,Error on Access Port Transaction" "No,Yes"
textline " "
bitfld.long 0x0 4. "STICKYCMP ,Match on Pushed Compare or Pushed Verify" "No,Yes"
textline " "
bitfld.long 0x0 2.--3. "TRNMODE ,Transfer Mode" "0,1,2,3"
textline " "
bitfld.long 0x0 1. "STICKYORUN ,Overrun Occurred" "No,Yes"
textline " "
bitfld.long 0x0 0. "ORUNDETECT ,Overrun Detection" "Off,On"
hgroup 0x08++3
hide.long 0x0 "RESEND,Resend Register"
in
wgroup 0x08++3
line.long 0x0 "SELECT,AP Select Register"
hexmask.long.byte 0x0 24.--31. 1. "APSEL ,Access Port Select"
textline " "
hexmask.long.byte 0x0 4.--7. 16. "APBANKSEL ,Access Port Four-Word Register Bank Select"
textline " "
bitfld.long 0x0 0.--3. "DPBANKSEL ,Debug Port Address Bank Select" "CTRL/STAT,DCLR,TARGETID,DLPIDR,EVENTSTAT,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved"
rgroup 0x0c++3
line.long 0x0 "RDBUFF,Read Buffer Register"
wgroup 0x0c++3
line.long 0x0 "TARGETSEL,Target Selection Register"
hexmask.long.byte 0x0 28.--31. 1. "TINSTANCE ,Target Instance Number"
textline " "
hexmask.long.word 0x0 12.--27. 1. "TPARTNO ,Target Part Number"
textline " "
hexmask.long.word 0x0 1.--11. 1. "TDESIGNER ,Target Designer"
group 0x14++3
line.long 0x0 "DLCR,Data Link Control Register"
bitfld.long 0x0 8.--9. "TURNROUND ,Turnaround Tristate Data Periods" "1,2,3,4"
rgroup 0x24++3
line.long 0x0 "TARGETID,Target Identification Register"
hexmask.long.byte 0x0 24.--31. 1. "TREVISION ,Target Revision"
textline " "
hexmask.long.word 0x0 12.--27. 1. "TPARTNO ,Target Part Number"
textline " "
hexmask.long.word 0x0 1.--11. 1. "TDESIGNER ,Target Designer"
rgroup 0x34++3
line.long 0x0 "DLPIDR,Data Link Protocol Identification Register"
hexmask.long.byte 0x0 28.--31. 1. "TINSTANCE ,Target Instance Number"
textline " "
hexmask.long.byte 0x0 0.--3. 1. "PROTVSN ,SWD Protocol Version"
rgroup 0x44++3
line.long 0x0 "EVENTSTAT,Event Status Register"
bitfld.long 0x0 0. "EA ,Event Status Flag" "No,Yes"
elif SYStem.CONFIG.DebugPortType()=="SWD"&&((d.l(edbg:0x41000000)&0x0000f000)==0x00003000)
rgroup 0x00++3 "SW-DP DPv3 Register"
line.long 0x0 "DPIDR,Debug Port Identification Register"
hexmask.long.byte 0x0 28.--31. 1. "REVISION ,Revision Code"
textline " "
hexmask.long.word 0x0 20.--27. 1. "PARTNO ,Part Number"
textline " "
bitfld.long 0x0 16. "MIN ,Minimal Debug Port (MINDP) Functions Implemented" "No,Yes"
textline " "
bitfld.long 0x0 12.--15. "VERSION ,Debug Port Architecture Version" "Reserved,DPv1,DPv2,DPv3,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved"
textline " "
hexmask.long.word 0x0 1.--11. 1. "DESIGNER ,Designer ID"
wgroup 0x00++3
line.long 0x0 "ABORT,Abort Register"
bitfld.long 0x0 4. "ORUNERRCLR ,Clear the CTRL/STAT.STICKYORUN Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 3. "WDERRCLR ,Clear the CTRL/STAT.WDATAERR Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 2. "STKERRCLR ,Clear the CTRL/STAT.STICKYERR Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 1. "STKCMPCLR ,Clear the CTRL/STAT.STICKYCMP Error Bit" "-,Clear"
textline " "
bitfld.long 0x0 0. "DAPABORT ,Abort Current AP Transaction" "-,Abort"
group 0x04++3
line.long 0x0 "CTRL/STAT,Control/Status Register"
bitfld.long 0x0 31. "CSYSPWRUPACK ,System Power-Up Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 30. "CSYSPWRUPREQ ,System Power-Up Request" "No,Yes"
textline " "
bitfld.long 0x0 29. "CDBGPWRUPACK ,Debug Power-Up Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 28. "CDBGPWRUPREQ ,Debug Power-Up Request" "No,Yes"
textline " "
bitfld.long 0x0 27. "CDBGRSTACK ,Debug Reset Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 26. "CDBGRSTREQ ,Debug Reset Request" "No,Yes"
textline " "
hexmask.long.word 0x0 12.--23. 1. "TRNCNT ,Transaction Counter"
textline " "
bitfld.long 0x0 8.--11. "MASKLANE ,Byte Mask" "0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F"
textline " "
bitfld.long 0x0 7. "WDATAERR ,Error on Last Write" "No,Yes"
textline " "
bitfld.long 0x0 6. "READOK ,Last Read OK" "No,Yes"
textline " "
bitfld.long 0x0 5. "STICKYERR ,Error on Access Port Transaction" "No,Yes"
textline " "
bitfld.long 0x0 4. "STICKYCMP ,Match on Pushed Compare or Pushed Verify" "No,Yes"
textline " "
bitfld.long 0x0 2.--3. "TRNMODE ,Transfer Mode" "0,1,2,3"
textline " "
bitfld.long 0x0 1. "STICKYORUN ,Overrun Occurred" "No,Yes"
textline " "
bitfld.long 0x0 0. "ORUNDETECT ,Overrun Detection" "Off,On"
hgroup 0x08++3
hide.long 0x0 "RESEND,Resend Register"
in
wgroup 0x54++3
line.long 0x0 "SELECT1,AP Select 1 Register"
hexmask.long.long 0x0 0.--31. 1. "ADDR[63:32] ,Address[63:32]"
wgroup 0x08++3
line.long 0x0 "SELECT,AP Select Register"
hexmask.long.long 0x0 4.--31. 0x10 "ADDR[31:4] ,Address[31:4]"
textline " "
bitfld.long 0x0 0.--3. "DPBANKSEL ,Debug Port Address Bank Select" "CTRL/STAT,DCLR,TARGETID,DLPIDR,EVENTSTAT,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved"
rgroup 0x0c++3
line.long 0x0 "RDBUFF,Read Buffer Register"
wgroup 0x0c++3
line.long 0x0 "TARGETSEL,Target Selection Register"
hexmask.long.byte 0x0 28.--31. 1. "TINSTANCE ,Target Instance Number"
textline " "
hexmask.long.word 0x0 12.--27. 1. "TPARTNO ,Target Part Number"
textline " "
hexmask.long.word 0x0 1.--11. 1. "TDESIGNER ,Target Designer"
rgroup 0x10++3
line.long 0x0 "DPIDR1,Debug Port Identification Register 1"
bitfld.long 0x0 7. "ERRMODE ,CTRL/STAT.ERRMODE is Implemented" "No,Yes"
textline " "
hexmask.long.byte 0x0 0.--6. 1. "ASIZE ,Address Size of SELECT, SELECT1, BASEPTR0, BASEPTR1"
group 0x14++3
line.long 0x0 "DLCR,Data Link Control Register"
bitfld.long 0x0 8.--9. "TURNROUND ,Turnaround Tristate Data Periods" "1,2,3,4"
rgroup 0x30++3
line.long 0x0 "BASEPTR1,Base Pointer 1"
hexmask.long.long 0x0 0.--31. 1. "PTR[63:32] ,Base Pointer 1"
rgroup 0x20++3
line.long 0x0 "BASEPTR0,Base Pointer 0"
hexmask.long.long 0x0 22.--31. 0x1000 "PTR[31:12] ,Base Pointer 0"
textline " "
bitfld.long 0x0 0. "VALID ,Valid" "No,Yes"
rgroup 0x24++3
line.long 0x0 "TARGETID,Target Identification Register"
hexmask.long.byte 0x0 24.--31. 1. "TREVISION ,Target Revision"
textline " "
hexmask.long.word 0x0 12.--27. 1. "TPARTNO ,Target Part Number"
textline " "
hexmask.long.word 0x0 1.--11. 1. "TDESIGNER ,Target Designer"
rgroup 0x34++3
line.long 0x0 "DLPIDR,Data Link Protocol Identification Register"
hexmask.long.byte 0x0 28.--31. 1. "TINSTANCE ,Target Instance Number"
textline " "
hexmask.long.byte 0x0 0.--3. 1. "PROTVSN ,SWD Protocol Version"
rgroup 0x44++3
line.long 0x0 "EVENTSTAT,Event Status Register"
bitfld.long 0x0 0. "EA ,Event Status Flag" "No,Yes"
elif SYStem.CONFIG.DEBUGPORTTYPE()=="SWD"
wgroup 0x00++3 "SW-DP DPv0 Register"
line.long 0x0 "ABORT,Abort Register"
bitfld.long 0x0 0. "DAPABORT ,Abort Current AP Transaction" "-,Abort"
group 0x04++3
line.long 0x0 "CTRL/STAT,Control/Status Register"
bitfld.long 0x0 31. "CSYSPWRUPACK ,System Power-Up Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 30. "CSYSPWRUPREQ ,System Power-Up Request" "No,Yes"
textline " "
bitfld.long 0x0 29. "CDBGPWRUPACK ,Debug Power-Up Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 28. "CDBGPWRUPREQ ,Debug Power-Up Request" "No,Yes"
textline " "
bitfld.long 0x0 27. "CDBGRSTACK ,Debug Reset Acknowledge" "No,Yes"
textline " "
bitfld.long 0x0 26. "CDBGRSTREQ ,Debug Reset Request" "No,Yes"
textline " "
hexmask.long.word 0x0 12.--23. 1. "TRNCNT ,Transaction Counter"
textline " "
bitfld.long 0x0 8.--11. "MASKLANE ,Byte Mask" "0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F"
textline " "
bitfld.long 0x0 7. "WDATAERR ,Error on Last Write" "No,Yes"
textline " "
bitfld.long 0x0 5. "STICKYERR ,Error on Access Port Transaction" "No,Yes"
textline " "
bitfld.long 0x0 4. "STICKYCMP ,Match on Pushed Compare or Pushed Verify" "No,Yes"
textline " "
bitfld.long 0x0 2.--3. "TRNMODE ,Transfer Mode" "0,1,2,3"
textline " "
bitfld.long 0x0 1. "STICKYORUN ,Overrun Occurred" "No,Yes"
textline " "
bitfld.long 0x0 0. "ORUNDETECT ,Overrun Detection" "Off,On"
group 0x08++3
line.long 0x0 "SELECT,AP Select Register"
hexmask.long.byte 0x0 24.--31. 1. "APSEL ,Access Port Select"
textline " "
hexmask.long.byte 0x0 4.--7. 16. "APBANKSEL ,Access Port Four-Word Register Bank Select"
textline " "
bitfld.long 0x0 0.--3. "DPBANKSEL ,Debug Port Address Bank Select" "CTRL/STAT,DCLR,TARGETID,DLPIDR,EVENTSTAT,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved"
rgroup 0x0c++3
line.long 0x0 "RDBUFF,Read Buffer Register"
endif
textline ""