Text this: Enhancing SRM Performance through Multi-Platform Optimization and FPGA-Based Real-Time Simulation