Modern day particle accelerators use resonating RF cavities to generate high electric field for enhancing the kinetic energy of particles for beam acceleration. These RF cavities are made using normal conducting or superconducting material. A closed loop control electronics is applied to maintain stability of the field gradient inside the cavity in terms of its amplitude and phase. Normal conducting mode has more control bandwidth than the superconducting mode and this makes it a difficult process. Another important requirement for achieving superconductivity is the usage of huge amounts of liquid nitrogen, liquid helium, and high degree of evacuation. Developing and testing of any control electronics for such cavities in poses a big challenge since multiple test iterations are desired, which is not economical or sustainable due to associated infrastructural needs. So, in order to perform iterative design, development and deployment in an economical and sustainable manner, cavity simulators are used to mimic the behavior of the cavity characteristics in terms of its electrical and mechanical parameters. In the present paper, the electrical and mechanical model of a superconducting RF cavity is mathematically built on the Simulink platform of MATLAB. The models are then converted to fixed point format and tested on a FPGA device to develop a digital equivalent of a superconducting RF cavity.