r/rfelectronics • • Mar 16 '26

question How to compute inverse FFT of s2p/s4p (touchstone) file?

9 Upvotes

Hi all, I have an S4P file, I need to run transient simulation on this, however ltspice or ngspice cannot do this, I'm aware ADS can, but I don't have access to ADS.

After reading through many many articles and forum posts, I have realised I have to do this myself by computing the inverse FFT, finding the impulse response and convoluting it with input signal to get the transient response.

I opened the S4P file in notepad but there are no headings for the rows or columns, so I'm not able to make sense of the information. How do I compute the IFFT?

Anyone has experience doing this before? Please help.

Thanks.