This paper presented a fiber Bragg grating(FBG) design method based on causality analysis. The method was applied to design the structure parameters of uniform FBG for filtering
and chirped FBG for dispersion compensation. The results show that the analysis curve of the gratings designed here is in good agreement with the expected curve.