$r = qq%
[$name]
FPGAtrbnetAddr=0x$addr
-RAMtrbnetAddr=0xa%.($id*2).qq%00
-CMDreg_trbnetAddr=0xa%.($id*2+1).qq%20
-RAMbase_trbnetAddr=0xa%.($id*2+1).qq%21
-DATAreg_trbnetAddr=0xa%.($id*2+1).qq%22
+RAMtrbnetAddr=0xa%.($id*4).qq%00
+CMDreg_trbnetAddr=0xa%.($id*4+1).qq%20
+RAMbase_trbnetAddr=0xa%.($id*4+1).qq%21
+DATAreg_trbnetAddr=0xa%.($id*4+1).qq%22
STAT_NIBBLEStrbnetAddr=0x008d
-STATUSCRCCHECKtrbnetAddr=0xa%.($id*2+1).qq%00
-STATUS2RAM3BBASEADDRREGtrbnetAddr=0xa%.($id*2+1).qq%63
-STATUS2STARTEDtrbnetAddr=0xa%.($id*2+1).qq%64
-STATUS2RAM3BtrbnetAddr=0xa%.($id*2+1).qq%70
+STATUSCRCCHECKtrbnetAddr=0xa%.($id*4+1).qq%00
+STATUS2RAM3BBASEADDRREGtrbnetAddr=0xa%.($id*4+1).qq%63
+STATUS2STARTEDtrbnetAddr=0xa%.($id*4+1).qq%64
+STATUS2RAM3BtrbnetAddr=0xa%.($id*4+1).qq%70
CONFsignals_trbnetAddr=0xb020
CONFresetafterfirstwrite_trbnetAddr=0xb011
CONFresetbeforeinit_trbnetAddr=0xb010
CONFtrigrunjtag_trbnetAddr=0xb00f
CONFtrigwriteonce_trbnetAddr=0xb014
CONFtriginitseq_trbnetAddr=0xb00c
+CONFCommandBaseAddr=0xa%.($id*4+2).qq%00
chainnr=$id
-DEBUGram1baddr=0xa%.($id*2+1).qq%47
-DEBUGram1bdata=0xa%.($id*2+1).qq%48
-DEBUGram1caddr=0xa%.($id*2+1).qq%49
-DEBUGram1cdata=0xa%.($id*2+1).qq%4a
-DEBUGram1crun=0xa%.($id*2+1).qq%4b
+DEBUGram1baddr=0xa%.($id*4+1).qq%47
+DEBUGram1bdata=0xa%.($id*4+1).qq%48
+DEBUGram1caddr=0xa%.($id*4+1).qq%49
+DEBUGram1cdata=0xa%.($id*4+1).qq%4a
+DEBUGram1crun=0xa%.($id*4+1).qq%4b
;BEGIN GENERATE_CHAINORDER $name
%;