Altera_Forum
Honored Contributor
18 years agoHelp! Implenting a Cmex S-functions into your FPGA
Hello all
I was wondering if any one has managed to get Signal compiler in simulink to actually compile and convert your S-function to VHDl. I have completely hit a dead end and cant find any good documentation on successfully adding a custom built S-function into your FPGA. I was hoping some one could help me. I have tried numerous things:- 1. Simply added the s-function into my simulink design, the signal compile complained that its out puts could not directly drive alt blocks. I am not sure what this error means but i simply added not gates infront of them but the error persisted. 2. I tried putting my s-function into a subsystem and then run signal compiler. This time when coverting to VHDL stage I get the following error:- Unable to create subsystem HDLSubSystem.vhd Error: Entity HDLSubSystem -> block Output: Input pin(1) is not connected to an Altera Block. Error: Entity HDLSubSystem -> block Output1: Input pin(1) is not connected to an Altera Block. Error: Entity HDLSubSystem -> block Output2: Input pin(1) is not connected to an Altera Block. Error: Entity HDLSubSystem -> block Output3: Input pin(1) is not connected to an Altera Block. I hope some on can help me, it will be greatly appreciated. I will attach with this pose a copy of the sfunction, which simply suppose to read two input data values and spit the corresponding rgb values. thanks