This has nothing to do directly with MathWorks products. There is no error in the generated code. Your HDL design simply has too many primary I/O ports for the device you are targeting. The two obvious approaches are:
- Reduce the number of IOs your design requires
- Target a chip that has more IO pins
