With regards to adding S-Function block in CPU, I tried to check the checkbox of non-inline
S-Function in configuration parameter window of CPU model.
But when compiling CPU got an error saying
Error: #5: cannot open source input file "tmwtypes.h".
So I tried to add the include path "..../MATLAB/R2018b/externinclude" in the makefile
and then got a new error saying "simstruc.h: No such file or directory "
but after adding the path of simstruc.h file, I am getting below error saying "Unrecognized use"
"simulink/include/simstruc_compcond.h", line 244: Error: #35: #error directive: Unrecognized use. #error Unrecognized use."
Please let me know what could be the necessary settings when using non-inline S-Function.