How to create a Dynamic Entry for CB_SG_IR in S32G-VNP-RDB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create a Dynamic Entry for CB_SG_IR in S32G-VNP-RDB

1,304 Views
Atkinson
Contributor V
int WriteCB_SG_IR(uint32_t index) {
 
int cs = 0;
uint32_t CBSGIR_OFFSET     = 142;
uint32_t CBSGIR_CTRL_OFFSET = 147;
const uint32_t SWREG_BASE    = 0;
 
uint32_t CB_SG_IR_ADDRESS      = SWREG_BASE + CBSGIR_OFFSET;
uint32_t CB_SG_IR_ADDRESS_CTL  = SWREG_BASE + CBSGIR_CTRL_OFFSET;
 
if (index >= 64) {
        return -1;
    }
 
    uint32_t RTAGOFFSET_0 = 0;
    uint32_t RTAGOFFSET_1 = 0;
    uint32_t RTAGOFFSET_2 = 0;
    uint32_t RTAGOFFSET_3 = 0;
    uint32_t RTAGOFFSET_4 = 0;
    uint32_t RTAGOFFSET_5 = 0;
    uint32_t RTAGOFFSET_6 = 0;
    uint32_t RTAGOFFSET_7 = 0;
    uint32_t RTAGOFFSET_8 = 0;
    uint32_t RTAGOFFSET_9 = 0;
    uint32_t RTAGOFFSET_10 = 0;
 
    uint32_t REPLACE_PORTS = 0;
    uint32_t TAG_PORTS = 0x7FF;
    uint32_t SEQ_REC_PORTS = 0;
    uint32_t IND_REC_PORTS = 0;
    uint32_t IND_REC_TIMEOUT = 0;
    uint32_t SEQRECOFFSET = 0;
    uint32_t GENSEQNUM = 0x1;
    uint32_t SEQGENRST = 0;
 
    uint32_t VALID = 1U;
    uint32_t RDWRSET = 1U;
    uint32_t TARGETEDTBL = 0;
 
    uint32_t CB_SG_IR_Entry[CB_SGIR_ADDR_RANGE] = {0};
 
 
    CB_SG_IR_Entry[0] =
    ((GENSEQNUM & 0x1) << 28) |
    ((SEQRECOFFSET & 0x1F) << 29) |
    ((IND_REC_TIMEOUT & 0xFFFF) << 34);
 
    CB_SG_IR_Entry[1] =
    ((SEQ_REC_PORTS & 0x7FF) << 0) |
        ((IND_REC_PORTS & 0x7FF) << 11);
 
    CB_SG_IR_Entry[2] =
        ((TAG_PORTS & 0x7FF) << 0) |
        ((REPLACE_PORTS & 0x7FF) << 11);
 
    CB_SG_IR_Entry[3] =
        ((RTAGOFFSET_0 & 0x3F) << 0)  |
        ((RTAGOFFSET_1 & 0x3F) << 6) |
        ((RTAGOFFSET_2 & 0x3F) << 12) |
        ((RTAGOFFSET_3 & 0x3F) << 18) |
        ((RTAGOFFSET_4 & 0x3F) << 24);
 
    CB_SG_IR_Entry[4] =
        ((RTAGOFFSET_5 & 0x3F) << 0) |
        ((RTAGOFFSET_6 & 0x3F) << 6) |
        ((RTAGOFFSET_7 & 0x3F) << 12) |
        ((RTAGOFFSET_8 & 0x3F) << 18) |
        ((RTAGOFFSET_9 & 0x3F) << 24) |
        ((RTAGOFFSET_10 & 0x3F) << 30);
 
    uint32_t status = 0;
 
    status = spi_read_DynamicEntry(CB_SG_IR_ADDRESS_CTL, cs);
    uint8_t counter = 0;
    while ((status & (1 << 31)) != 0){
       counter++;
       status = spi_read_DynamicEntry(CB_SG_IR_ADDRESS_CTL, cs);
    }
 
    for (int i = 0; i < CB_SGIR_ADDR_RANGE; i++) {
    Std_ReturnType ret = spi_write_DynamicEntry(CB_SG_IR_ADDRESS + i, CB_SG_IR_Entry[i]);
    if (ret != E_OK) {
    return -2;
    }
 
    uint32_t readBack = 0;
    ret = spi_read_DynamicEntry(CB_SG_IR_ADDRESS + i, &readBack);
    if (ret != E_OK || readBack != CB_SG_IR_Entry[i]) {
    return -3;
    }
    }
 
    uint32_t CTRL_VALUE = (VALID << 31) |
                          (RDWRSET << 30) |
                          (SEQGENRST << 9) |
                          (TARGETEDTBL << 6) |
                          (index & 0x3F);
 
    Std_ReturnType ret = spi_write_DynamicEntry(CB_SG_IR_ADDRESS_CTL, CTRL_VALUE);
        if (ret != E_OK) {
            return -4;
        }
 
        do {
            ret = spi_read_DynamicEntry(CB_SG_IR_ADDRESS_CTL, &status);
            if (ret != E_OK) {
                return -5;
            }
        } while ((status >> 31) & 1U);
 
 
    return 0;  // Success
}


I am trying to create a Dynamic Entry for CB Sequence Generation and Recovery Table in which followed up the example from SJA1110 EVM Host tools CB_SG_IR.py. where i am facing some issue with the bit settings
Add on to that, see when we are configuring this 
((GENSEQNUM & 0x1) << 28) |
((SEQRECOFFSET & 0x1F) << 29) |
((IND_REC_TIMEOUT & 0xFFFF) << 34);

IND_REC_TIMEOUT value is written after 32 bit register value which is we are exceeding the 32 bits where the values will be written into the wrong register ryt?? can you double check whether it will be written within 32bit register 

One more thing when i debug, i could see the CB_SG_IR_Entry[0] is written with some values what we are expecting to write but in the case of other CB_SG_IR_Entr[1],[2],[3] there is no value written 
I am thinking the root cause of the issue is due to bit change ??

As you mentioned the spi_read and spi_write is as same as L2 Lookup table which i used to configure dynamically which is working fine in L2 Lookup table. 
Is there any other thing we are missing out ??

Tags (1)
0 Kudos
Reply
2 Replies

1,275 Views
PavelL
NXP Employee
NXP Employee

Hello @Atkinson ,

Finally, I understand your issue clearly.
It turns out the root cause is related to bit alignment across 32-bit words — something quite fundamental when working with hardware register programming. 

Below is the corrected code. I hope I’ve implemented it without errors, but please let me know if anything still looks off.

// Entry[0] – bits 0–31
CB_SG_IR_Entry[0] =
((GENSEQNUM & 0x1) << 28) | // Bit 28
((SEQRECOFFSET & 0x7) << 29); // Bits 29–31

// Entry[1] – bits 32–63
CB_SG_IR_Entry[1] =
((SEQRECOFFSET >> 3) & 0x3) << 0 | // Bits 32–33
((IND_REC_TIMEOUT & 0xFFFF) << 2) | // Bits 34–49
((SEQ_REC_PORTS & 0x7FF) << 18) | // Bits 50–60
((IND_REC_PORTS & 0x7FF) << 29); // Bits 61–71

// Entry[2] – bits 64–95
CB_SG_IR_Entry[2] =
((TAG_PORTS & 0x7FF) << 0) | // Bits 72–82
((REPLACE_PORTS & 0x7FF) << 11) | // Bits 83–93
((RTAGOFFSET_0 & 0x3) << 30); // Bits 94–95 (lower 2 bits)

// Entry[3] – bits 96–127
CB_SG_IR_Entry[3] =
((RTAGOFFSET_0 >> 2) & 0xF) << 0 | // Bits 96–99 (upper 4 bits)
((RTAGOFFSET_1 & 0x3F) << 4) | // Bits 100–105
((RTAGOFFSET_2 & 0x3F) << 10) | // Bits 106–111
((RTAGOFFSET_3 & 0x3F) << 16) | // Bits 112–117
((RTAGOFFSET_4 & 0x3F) << 22) | // Bits 118–123
((RTAGOFFSET_5 & 0xF) << 28); // Bits 124–127 (lower 4 bits)

// Entry[4] – bits 128–159
CB_SG_IR_Entry[4] =
((RTAGOFFSET_5 >> 4) & 0x3) << 0 | // Bits 128–129 (upper 2 bits)
((RTAGOFFSET_6 & 0x3F) << 2) | // Bits 130–135
((RTAGOFFSET_7 & 0x3F) << | // Bits 136–141
((RTAGOFFSET_8 & 0x3F) << 14) | // Bits 142–147
((RTAGOFFSET_9 & 0x3F) << 20) | // Bits 148–153
((RTAGOFFSET_10 & 0x3F) << 26); // Bits 154–159

 

Best regards,

Pavel

0 Kudos
Reply

1,263 Views
PavelL
NXP Employee
NXP Employee

Hello @Atkinson ,

I adapted example_vlan_lookup_table.py to work with the CB SG IR table. Please find the Python script attached. I’ve also included two .hex files for the SJA1110-EVM, which contain the switchcore configuration for my minimal IEEE 802.1CB example. Just remove the .txt extension from the filenames.

Save all files to the folder where host tools were unzipped, e.g. sja1110evm_hosttools_v1.2\SJA1110EVM

To load the configuration onto the board, follow the DIP switch settings as described in UM575112-AH1901 SJA1110 - EVM User Manual (v1.2), section 3.3 “Quick Start using the Python Host Tools Package”, and run:

python setup_sja1110evm.py --hex1 switchcore_0_Config_CB.hex --hex2 switchcore_1_Config_CB.hex

Then, run the dynamic change example:

python __example_cb_sgir_table.py

You should see output similar to:

CB SG/IR Lookup Table SW0:
+-----+---------------+-----------+---------------+---------------+-----------------+--------------+-----------+
| IDX | REPLACE_PORTS | TAG_PORTS | IND_REC_PORTS | SEQ_REC_PORTS | IND_REC_TIMEOUT | SEQRECOFFSET | GENSEQNUM |
+-----+---------------+-----------+---------------+---------------+-----------------+--------------+-----------+
|  0  |       0       |    1056   |       0       |       0       |        0        |      0       |     1     |
|  1  |       0       |     0     |       2       |       2       |        0        |      0       |     0     |
|  2  |       0       |     0     |       2       |       2       |        0        |      0       |     0     |
|  3  |       0       |     0     |       0       |       0       |        0        |      0       |     0     |
...
|  15 |       0       |     0     |       0       |       0       |        0        |      0       |     0     |

+-----+---------------+-----------+---------------+---------------+-----------------+--------------+-----------+
CB SG/IR Lookup Table SW1:
+-----+---------------+-----------+---------------+---------------+-----------------+--------------+-----------+
| IDX | REPLACE_PORTS | TAG_PORTS | IND_REC_PORTS | SEQ_REC_PORTS | IND_REC_TIMEOUT | SEQRECOFFSET | GENSEQNUM |
+-----+---------------+-----------+---------------+---------------+-----------------+--------------+-----------+
|  0  |       0       |     0     |       4       |       4       |        0        |      0       |     0     |
|  1  |       0       |     0     |       4       |       4       |        0        |      0       |     0     |
|  2  |       0       |    1056   |       0       |       0       |        0        |      0       |     1     |
|  3  |       0       |     0     |       0       |       0       |        0        |      0       |     0     |
...
|  15 |       0       |     0     |       0       |       0       |        0        |      0       |     0     |

+-----+---------------+-----------+---------------+---------------+-----------------+--------------+-----------+
Change entry #1.
[0, 2097152, 1, 0, 0, 0]
Reading again...
CB SG/IR Lookup Table SW0:
+-----+---------------+-----------+---------------+---------------+-----------------+--------------+-----------+
| IDX | REPLACE_PORTS | TAG_PORTS | IND_REC_PORTS | SEQ_REC_PORTS | IND_REC_TIMEOUT | SEQRECOFFSET | GENSEQNUM |
+-----+---------------+-----------+---------------+---------------+-----------------+--------------+-----------+
|  0  |       0       |    1056   |       0       |       0       |        0        |      0       |     1     |
|  1  |       0       |     0     |       8       |       8       |        0        |      0       |     0     |
|  2  |       0       |     0     |       2       |       2       |        0        |      0       |     0     |
|  3  |       0       |     0     |       0       |       0       |        0        |      0       |     0     |
...
|  15 |       0       |     0     |       0       |       0       |        0        |      0       |     0     |

+-----+---------------+-----------+---------------+---------------+-----------------+--------------+-----------+
CB SG/IR Lookup Table SW1:
+-----+---------------+-----------+---------------+---------------+-----------------+--------------+-----------+
| IDX | REPLACE_PORTS | TAG_PORTS | IND_REC_PORTS | SEQ_REC_PORTS | IND_REC_TIMEOUT | SEQRECOFFSET | GENSEQNUM |
+-----+---------------+-----------+---------------+---------------+-----------------+--------------+-----------+
|  0  |       0       |     0     |       4       |       4       |        0        |      0       |     0     |
|  1  |       0       |     0     |       4       |       4       |        0        |      0       |     0     |
|  2  |       0       |    1056   |       0       |       0       |        0        |      0       |     1     |
|  3  |       0       |     0     |       0       |       0       |        0        |      0       |     0     |
...
|  15 |       0       |     0     |       0       |       0       |        0        |      0       |     0     |

+-----+---------------+-----------+---------------+---------------+-----------------+--------------+-----------+

 

Best regards,

Pavel

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2152047%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20to%20create%20a%20Dynamic%20Entry%20for%20CB_SG_IR%20in%20S32G-VNP-RDB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2152047%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%3Eint%20WriteCB_SG_IR(uint32_t%20index)%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Eint%20cs%20%3D%200%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Euint32_t%20CBSGIR_OFFSET%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3D%20142%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Euint32_t%20CBSGIR_CTRL_OFFSET%20%3D%20147%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Econst%20uint32_t%20SWREG_BASE%26nbsp%3B%20%26nbsp%3B%20%3D%200%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Euint32_t%20CB_SG_IR_ADDRESS%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%3D%20SWREG_BASE%20%2B%20CBSGIR_OFFSET%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Euint32_t%20CB_SG_IR_ADDRESS_CTL%26nbsp%3B%20%3D%20SWREG_BASE%20%2B%20CBSGIR_CTRL_OFFSET%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Eif%20(index%20%26gt%3B%3D%2064)%20%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20return%20-1%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%7D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20RTAGOFFSET_0%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20RTAGOFFSET_1%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20RTAGOFFSET_2%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20RTAGOFFSET_3%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20RTAGOFFSET_4%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20RTAGOFFSET_5%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20RTAGOFFSET_6%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20RTAGOFFSET_7%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20RTAGOFFSET_8%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20RTAGOFFSET_9%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20RTAGOFFSET_10%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20REPLACE_PORTS%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20TAG_PORTS%20%3D%200x7FF%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20SEQ_REC_PORTS%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20IND_REC_PORTS%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20IND_REC_TIMEOUT%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20SEQRECOFFSET%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20GENSEQNUM%20%3D%200x1%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20SEQGENRST%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20VALID%20%3D%201U%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20RDWRSET%20%3D%201U%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20TARGETEDTBL%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20CB_SG_IR_Entry%5BCB_SGIR_ADDR_RANGE%5D%20%3D%20%7B0%7D%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20CB_SG_IR_Entry%5B0%5D%20%3D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20((GENSEQNUM%20%26amp%3B%200x1)%20%26lt%3B%26lt%3B%2028)%20%7C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20((SEQRECOFFSET%20%26amp%3B%200x1F)%20%26lt%3B%26lt%3B%2029)%20%7C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20((IND_REC_TIMEOUT%20%26amp%3B%200xFFFF)%20%26lt%3B%26lt%3B%2034)%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20CB_SG_IR_Entry%5B1%5D%20%3D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20((SEQ_REC_PORTS%20%26amp%3B%200x7FF)%20%26lt%3B%26lt%3B%200)%20%7C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20((IND_REC_PORTS%20%26amp%3B%200x7FF)%20%26lt%3B%26lt%3B%2011)%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20CB_SG_IR_Entry%5B2%5D%20%3D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20((TAG_PORTS%20%26amp%3B%200x7FF)%20%26lt%3B%26lt%3B%200)%20%7C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20((REPLACE_PORTS%20%26amp%3B%200x7FF)%20%26lt%3B%26lt%3B%2011)%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20CB_SG_IR_Entry%5B3%5D%20%3D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20((RTAGOFFSET_0%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%200)%26nbsp%3B%20%7C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20((RTAGOFFSET_1%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%206)%20%7C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20((RTAGOFFSET_2%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%2012)%20%7C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20((RTAGOFFSET_3%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%2018)%20%7C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20((RTAGOFFSET_4%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%2024)%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20CB_SG_IR_Entry%5B4%5D%20%3D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20((RTAGOFFSET_5%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%200)%20%7C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20((RTAGOFFSET_6%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%206)%20%7C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20((RTAGOFFSET_7%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%2012)%20%7C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20((RTAGOFFSET_8%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%2018)%20%7C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20((RTAGOFFSET_9%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%2024)%20%7C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20((RTAGOFFSET_10%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%2030)%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20status%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20status%20%3D%20spi_read_DynamicEntry(CB_SG_IR_ADDRESS_CTL%2C%20cs)%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint8_t%20counter%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20while%20((status%20%26amp%3B%20(1%20%26lt%3B%26lt%3B%2031))%20!%3D%200)%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bcounter%2B%2B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bstatus%20%3D%20spi_read_DynamicEntry(CB_SG_IR_ADDRESS_CTL%2C%20cs)%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%7D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20for%20(int%20i%20%3D%200%3B%20i%20%26lt%3B%20CB_SGIR_ADDR_RANGE%3B%20i%2B%2B)%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20Std_ReturnType%20ret%20%3D%20spi_write_DynamicEntry(CB_SG_IR_ADDRESS%20%2B%20i%2C%20CB_SG_IR_Entry%5Bi%5D)%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20if%20(ret%20!%3D%20E_OK)%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20return%20-2%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%7D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20readBack%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20ret%20%3D%20spi_read_DynamicEntry(CB_SG_IR_ADDRESS%20%2B%20i%2C%20%26amp%3BreadBack)%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20if%20(ret%20!%3D%20E_OK%20%7C%7C%20readBack%20!%3D%20CB_SG_IR_Entry%5Bi%5D)%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20return%20-3%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%7D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%7D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20uint32_t%20CTRL_VALUE%20%3D%20(VALID%20%26lt%3B%26lt%3B%2031)%20%7C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20(RDWRSET%20%26lt%3B%26lt%3B%2030)%20%7C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20(SEQGENRST%20%26lt%3B%26lt%3B%209)%20%7C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20(TARGETEDTBL%20%26lt%3B%26lt%3B%206)%20%7C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20(index%20%26amp%3B%200x3F)%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20Std_ReturnType%20ret%20%3D%20spi_write_DynamicEntry(CB_SG_IR_ADDRESS_CTL%2C%20CTRL_VALUE)%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20if%20(ret%20!%3D%20E_OK)%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20return%20-4%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20do%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20ret%20%3D%20spi_read_DynamicEntry(CB_SG_IR_ADDRESS_CTL%2C%20%26amp%3Bstatus)%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20if%20(ret%20!%3D%20E_OK)%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20return%20-5%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%20while%20((status%20%26gt%3B%26gt%3B%2031)%20%26amp%3B%201U)%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20return%200%3B%26nbsp%3B%20%2F%2F%20Success%3C%2FDIV%3E%3CDIV%3E%7D%3C%2FDIV%3E%3CP%3E%3CBR%20%2F%3EI%20am%20trying%20to%20create%20a%20Dynamic%20Entry%20for%20CB%20Sequence%20Generation%20and%20Recovery%20Table%20in%20which%20followed%20up%20the%20example%20from%20SJA1110%20EVM%20Host%20tools%20CB_SG_IR.py.%20where%20i%20am%20facing%20some%20issue%20with%20the%20bit%20settings%3CBR%20%2F%3EAdd%20on%20to%20that%2C%20see%20when%20we%20are%20configuring%20this%26nbsp%3B%3CBR%20%2F%3E((GENSEQNUM%20%26amp%3B%200x1)%20%26lt%3B%26lt%3B%2028)%20%7C%3CBR%20%2F%3E((SEQRECOFFSET%20%26amp%3B%200x1F)%20%26lt%3B%26lt%3B%2029)%20%7C%3CBR%20%2F%3E((IND_REC_TIMEOUT%20%26amp%3B%200xFFFF)%20%26lt%3B%26lt%3B%2034)%3B%3CBR%20%2F%3E%3CBR%20%2F%3EIND_REC_TIMEOUT%20value%20is%20written%20after%2032%20bit%20register%20value%20which%20is%20we%20are%20exceeding%20the%2032%20bits%20where%20the%20values%20will%20be%20written%20into%20the%20wrong%20register%20ryt%3F%3F%20can%20you%20double%20check%20whether%20it%20will%20be%20written%20within%2032bit%20register%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EOne%20more%20thing%20when%20i%20debug%2C%20i%20could%20see%20the%20CB_SG_IR_Entry%5B0%5D%20is%20written%20with%20some%20values%20what%20we%20are%20expecting%20to%20write%20but%20in%20the%20case%20of%20other%20CB_SG_IR_Entr%5B1%5D%2C%5B2%5D%2C%5B3%5D%20there%20is%20no%20value%20written%26nbsp%3B%3CBR%20%2F%3EI%20am%20thinking%20the%20root%20cause%20of%20the%20issue%20is%20due%20to%20bit%20change%20%3F%3F%3CBR%20%2F%3E%3CBR%20%2F%3EAs%20you%20mentioned%20the%20spi_read%20and%20spi_write%20is%20as%20same%20as%20L2%20Lookup%20table%20which%20i%20used%20to%20configure%20dynamically%20which%20is%20working%20fine%20in%20L2%20Lookup%20table.%26nbsp%3B%3CBR%20%2F%3EIs%20there%20any%20other%20thing%20we%20are%20missing%20out%20%3F%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2152854%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20create%20a%20Dynamic%20Entry%20for%20CB_SG_IR%20in%20S32G-VNP-RDB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2152854%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F248906%22%20target%3D%22_blank%22%3E%40Atkinson%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EI%20adapted%26nbsp%3Bexample_vlan_lookup_table.py%26nbsp%3Bto%20work%20with%20the%20CB%20SG%20IR%20table.%20Please%20find%20the%20Python%20script%20attached.%20I%E2%80%99ve%20also%20included%20two%26nbsp%3B.hex%26nbsp%3Bfiles%20for%20the%20SJA1110-EVM%2C%20which%20contain%20the%20switchcore%20configuration%20for%20my%20minimal%20IEEE%20802.1CB%20example.%20Just%20remove%20the%26nbsp%3B.txt%26nbsp%3Bextension%20from%20the%20filenames.%3C%2FP%3E%0A%3CP%3ESave%20all%20files%20to%20the%20folder%20where%20host%20tools%20were%20unzipped%2C%20e.g.%20sja1110evm_hosttools_v1.2%5CSJA1110EVM%3C%2FP%3E%0A%3CP%3ETo%20load%20the%20configuration%20onto%20the%20board%2C%20follow%20the%20DIP%20switch%20settings%20as%20described%20in%26nbsp%3BUM575112-AH1901%20SJA1110%20-%20EVM%20User%20Manual%20(v1.2)%2C%20section%203.3%20%E2%80%9CQuick%20Start%20using%20the%20Python%20Host%20Tools%20Package%E2%80%9D%2C%20and%20run%3A%3C%2FP%3E%0A%3CPRE%3Epython%20setup_sja1110evm.py%20--hex1%20switchcore_0_Config_CB.hex%20--hex2%20switchcore_1_Config_CB.hex%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%3EThen%2C%20run%20the%20dynamic%20change%20example%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%3Epython%20__example_cb_sgir_table.py%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%3EYou%20should%20see%20output%20similar%20to%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%3E%3CFONT%20size%3D%222%22%3ECB%20SG%2FIR%20Lookup%20Table%20SW0%3A%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%2B-----%2B---------------%2B-----------%2B---------------%2B---------------%2B-----------------%2B--------------%2B-----------%2B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%20IDX%20%7C%20REPLACE_PORTS%20%7C%20TAG_PORTS%20%7C%20IND_REC_PORTS%20%7C%20SEQ_REC_PORTS%20%7C%20IND_REC_TIMEOUT%20%7C%20SEQRECOFFSET%20%7C%20GENSEQNUM%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%2B-----%2B---------------%2B-----------%2B---------------%2B---------------%2B-----------------%2B--------------%2B-----------%2B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%26nbsp%3B%200%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%201056%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%26nbsp%3B%201%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%26nbsp%3B%202%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%26nbsp%3B%203%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E...%3CBR%20%2F%3E%7C%26nbsp%3B%2015%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%2B-----%2B---------------%2B-----------%2B---------------%2B---------------%2B-----------------%2B--------------%2B-----------%2B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3ECB%20SG%2FIR%20Lookup%20Table%20SW1%3A%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%2B-----%2B---------------%2B-----------%2B---------------%2B---------------%2B-----------------%2B--------------%2B-----------%2B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%20IDX%20%7C%20REPLACE_PORTS%20%7C%20TAG_PORTS%20%7C%20IND_REC_PORTS%20%7C%20SEQ_REC_PORTS%20%7C%20IND_REC_TIMEOUT%20%7C%20SEQRECOFFSET%20%7C%20GENSEQNUM%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%2B-----%2B---------------%2B-----------%2B---------------%2B---------------%2B-----------------%2B--------------%2B-----------%2B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%26nbsp%3B%200%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%204%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%204%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%26nbsp%3B%201%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%204%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%204%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%26nbsp%3B%202%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%201056%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%26nbsp%3B%203%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E...%3CBR%20%2F%3E%7C%26nbsp%3B%2015%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%2B-----%2B---------------%2B-----------%2B---------------%2B---------------%2B-----------------%2B--------------%2B-----------%2B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3EChange%20entry%20%231.%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%5B0%2C%202097152%2C%201%2C%200%2C%200%2C%200%5D%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3EReading%20again...%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3ECB%20SG%2FIR%20Lookup%20Table%20SW0%3A%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%2B-----%2B---------------%2B-----------%2B---------------%2B---------------%2B-----------------%2B--------------%2B-----------%2B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%20IDX%20%7C%20REPLACE_PORTS%20%7C%20TAG_PORTS%20%7C%20IND_REC_PORTS%20%7C%20SEQ_REC_PORTS%20%7C%20IND_REC_TIMEOUT%20%7C%20SEQRECOFFSET%20%7C%20GENSEQNUM%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%2B-----%2B---------------%2B-----------%2B---------------%2B---------------%2B-----------------%2B--------------%2B-----------%2B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%26nbsp%3B%200%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%201056%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%26nbsp%3B%201%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3CSTRONG%3E%3CFONT%20color%3D%22%23FF0000%22%3E%20%26nbsp%3B8%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%208%26nbsp%3B%26nbsp%3B%3C%2FFONT%3E%26nbsp%3B%26nbsp%3B%3C%2FSTRONG%3E%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%26nbsp%3B%202%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%26nbsp%3B%203%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E...%3CBR%20%2F%3E%7C%26nbsp%3B%2015%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%2B-----%2B---------------%2B-----------%2B---------------%2B---------------%2B-----------------%2B--------------%2B-----------%2B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3ECB%20SG%2FIR%20Lookup%20Table%20SW1%3A%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%2B-----%2B---------------%2B-----------%2B---------------%2B---------------%2B-----------------%2B--------------%2B-----------%2B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%20IDX%20%7C%20REPLACE_PORTS%20%7C%20TAG_PORTS%20%7C%20IND_REC_PORTS%20%7C%20SEQ_REC_PORTS%20%7C%20IND_REC_TIMEOUT%20%7C%20SEQRECOFFSET%20%7C%20GENSEQNUM%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%2B-----%2B---------------%2B-----------%2B---------------%2B---------------%2B-----------------%2B--------------%2B-----------%2B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%26nbsp%3B%200%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%204%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%204%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%26nbsp%3B%201%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%204%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%204%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%26nbsp%3B%202%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%201056%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7C%26nbsp%3B%203%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E...%3CBR%20%2F%3E%7C%26nbsp%3B%2015%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%2B-----%2B---------------%2B-----------%2B---------------%2B---------------%2B-----------------%2B--------------%2B-----------%2B%3C%2FFONT%3E%3C%2FPRE%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2152779%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20create%20a%20Dynamic%20Entry%20for%20CB_SG_IR%20in%20S32G-VNP-RDB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2152779%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F248906%22%20target%3D%22_blank%22%3E%40Atkinson%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EFinally%2C%20I%20understand%20your%20issue%20clearly.%3CBR%20%2F%3EIt%20turns%20out%20the%20root%20cause%20is%20related%20to%20bit%20alignment%20across%2032-bit%20words%20%E2%80%94%20something%20quite%20fundamental%20when%20working%20with%20hardware%20register%20programming.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBelow%20is%20the%20corrected%20code.%20I%20hope%20I%E2%80%99ve%20implemented%20it%20without%20errors%2C%20but%20please%20let%20me%20know%20if%20anything%20still%20looks%20off.%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%3C!--ScriptorStartFragment--%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20class%3D%22scriptor-paragraph%22%3E%0A%3CP%3E%2F%2F%20Entry%5B0%5D%20%E2%80%93%20bits%200%E2%80%9331%3CBR%20%2F%3ECB_SG_IR_Entry%5B0%5D%20%3D%3CBR%20%2F%3E((GENSEQNUM%20%26amp%3B%200x1)%20%26lt%3B%26lt%3B%2028)%20%7C%20%2F%2F%20Bit%2028%3CBR%20%2F%3E((SEQRECOFFSET%20%26amp%3B%200x7)%20%26lt%3B%26lt%3B%2029)%3B%20%2F%2F%20Bits%2029%E2%80%9331%3C%2FP%3E%0A%3CP%3E%2F%2F%20Entry%5B1%5D%20%E2%80%93%20bits%2032%E2%80%9363%3CBR%20%2F%3ECB_SG_IR_Entry%5B1%5D%20%3D%3CBR%20%2F%3E((SEQRECOFFSET%20%26gt%3B%26gt%3B%203)%20%26amp%3B%200x3)%20%26lt%3B%26lt%3B%200%20%7C%20%2F%2F%20Bits%2032%E2%80%9333%3CBR%20%2F%3E((IND_REC_TIMEOUT%20%26amp%3B%200xFFFF)%20%26lt%3B%26lt%3B%202)%20%7C%20%2F%2F%20Bits%2034%E2%80%9349%3CBR%20%2F%3E((SEQ_REC_PORTS%20%26amp%3B%200x7FF)%20%26lt%3B%26lt%3B%2018)%20%7C%20%2F%2F%20Bits%2050%E2%80%9360%3CBR%20%2F%3E((IND_REC_PORTS%20%26amp%3B%200x7FF)%20%26lt%3B%26lt%3B%2029)%3B%20%2F%2F%20Bits%2061%E2%80%9371%3C%2FP%3E%0A%3CP%3E%2F%2F%20Entry%5B2%5D%20%E2%80%93%20bits%2064%E2%80%9395%3CBR%20%2F%3ECB_SG_IR_Entry%5B2%5D%20%3D%3CBR%20%2F%3E((TAG_PORTS%20%26amp%3B%200x7FF)%20%26lt%3B%26lt%3B%200)%20%7C%20%2F%2F%20Bits%2072%E2%80%9382%3CBR%20%2F%3E((REPLACE_PORTS%20%26amp%3B%200x7FF)%20%26lt%3B%26lt%3B%2011)%20%7C%20%2F%2F%20Bits%2083%E2%80%9393%3CBR%20%2F%3E((RTAGOFFSET_0%20%26amp%3B%200x3)%20%26lt%3B%26lt%3B%2030)%3B%20%2F%2F%20Bits%2094%E2%80%9395%20(lower%202%20bits)%3C%2FP%3E%0A%3CP%3E%2F%2F%20Entry%5B3%5D%20%E2%80%93%20bits%2096%E2%80%93127%3CBR%20%2F%3ECB_SG_IR_Entry%5B3%5D%20%3D%3CBR%20%2F%3E((RTAGOFFSET_0%20%26gt%3B%26gt%3B%202)%20%26amp%3B%200xF)%20%26lt%3B%26lt%3B%200%20%7C%20%2F%2F%20Bits%2096%E2%80%9399%20(upper%204%20bits)%3CBR%20%2F%3E((RTAGOFFSET_1%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%204)%20%7C%20%2F%2F%20Bits%20100%E2%80%93105%3CBR%20%2F%3E((RTAGOFFSET_2%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%2010)%20%7C%20%2F%2F%20Bits%20106%E2%80%93111%3CBR%20%2F%3E((RTAGOFFSET_3%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%2016)%20%7C%20%2F%2F%20Bits%20112%E2%80%93117%3CBR%20%2F%3E((RTAGOFFSET_4%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%2022)%20%7C%20%2F%2F%20Bits%20118%E2%80%93123%3CBR%20%2F%3E((RTAGOFFSET_5%20%26amp%3B%200xF)%20%26lt%3B%26lt%3B%2028)%3B%20%2F%2F%20Bits%20124%E2%80%93127%20(lower%204%20bits)%3C%2FP%3E%0A%3CP%3E%2F%2F%20Entry%5B4%5D%20%E2%80%93%20bits%20128%E2%80%93159%3CBR%20%2F%3ECB_SG_IR_Entry%5B4%5D%20%3D%3CBR%20%2F%3E((RTAGOFFSET_5%20%26gt%3B%26gt%3B%204)%20%26amp%3B%200x3)%20%26lt%3B%26lt%3B%200%20%7C%20%2F%2F%20Bits%20128%E2%80%93129%20(upper%202%20bits)%3CBR%20%2F%3E((RTAGOFFSET_6%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%202)%20%7C%20%2F%2F%20Bits%20130%E2%80%93135%3CBR%20%2F%3E((RTAGOFFSET_7%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%20%3CLI-EMOJI%20id%3D%22lia_smiling-face-with-sunglasses%22%20title%3D%22%3Asmiling_face_with_sunglasses%3A%22%3E%3C%2FLI-EMOJI%3E%20%7C%20%2F%2F%20Bits%20136%E2%80%93141%3CBR%20%2F%3E((RTAGOFFSET_8%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%2014)%20%7C%20%2F%2F%20Bits%20142%E2%80%93147%3CBR%20%2F%3E((RTAGOFFSET_9%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%2020)%20%7C%20%2F%2F%20Bits%20148%E2%80%93153%3CBR%20%2F%3E((RTAGOFFSET_10%20%26amp%3B%200x3F)%20%26lt%3B%26lt%3B%2026)%3B%20%2F%2F%20Bits%20154%E2%80%93159%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3CP%3E%3CLI-WRAPPER%3E%3CSPAN%3E%3C!--ScriptorEndFragment--%3E%3C%2FSPAN%3E%3C%2FLI-WRAPPER%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E