GLM-NIRS- GLM sequence and parameters

Hello everyone.

I need help, it seems I can’t understand the sequence of execution of the GLM model for individual and group analysis?

Tell me which steps are performed sequentially

and another question : the stim_dur parameter in the design matrix . What does it mean? The duration of exactly one stimulus within a block ? Or the whole block itself?

In my experiment: one stimulus lasts 4 seconds, a total of 20 such stimuli in 5 blocks. Tell me, do I understand correctly that I need to specify 4 seconds in this parameter?