I’ve read this : https://numenta.com/blog/2018/05/25/how-grid-cells-map-space/

My question is if you have 1D grid modules how do you generate SDR, as shown in the example.

I mean what are the steps/algorithm.

I suspect you represent grid cell module by a coefficient i.e. if coef = 5, then grid-cells that activate the module are :

5,10,15,20,25,30,…