Rkddr: a rockchip ddr editor

my interpretation was each dq was 2 bits (0,1,2,3), so 16dqs consume 4 bytes of space

image
I don’t understand. There are 16 dq (0-15) on one channel. If you encode each dq pin with two bits, there are only 4 states (dq0-dq3), how do you encode the remaining 12 (dq4-dq15)? How do you reassign, for example,
dq0 to dq12
dq1 to dq5
dq2 to dq15

if you look at lp2 and lp3 dq config, it is exactly as you said, but for ddr4 it is different, i am not sure if CS is somehow relevant or ddr4 is split in X4 mode for each dq, btw according to the config i think there are 32 dqs for ddr4 not 16 (may be for each channel 16?). just to make things more confusing :slight_smile: