# Linux Kernel Module Cheat

###### 24.22.4.2.3. TimingSimpleCPU analysis #2

This is just the startup of the second rank, see: TimingSimpleCPU analysis #1.

`se.py` allocates the memory controller at `configs/common/MemConfig.py`:

    def config_mem(options, system):

        ...

        opt_mem_channels = options.mem_channels

        ...

        nbr_mem_ctrls = opt_mem_channels

        ...

        for r in system.mem_ranges:
            for i in range(nbr_mem_ctrls):
                mem_ctrl = create_mem_ctrl(cls, r, i, nbr_mem_ctrls, intlv_bits,
                                           intlv_size)

                ...

                mem_ctrls.append(mem_ctrl)