The most straight forward method is to precalculate the codes and store them in FPGAs memories. Then you need only to read these codes and steam them with right clock. The other method is to execute the algorithm calculating such codes by VHDL code. There is compilers called Xilinx system generators that converts Simulink code into VHDL code.
The second solution may take more time than the first method.