This PR adds some functions for working with S-parameters, such as calculating step and pulse responses for measurements in a *.s4p file. The code is adapted from earlier work in the hslink-emu repository.
Details
Added a new channel_type for the Channel class called s4p. This can be used to construct a channel from S-parameter measurements. Example:
Summary
This PR adds some functions for working with S-parameters, such as calculating step and pulse responses for measurements in a
*.s4p
file. The code is adapted from earlier work in thehslink-emu
repository.Details
channel_type
for theChannel
class calleds4p
. This can be used to construct a channel from S-parameter measurements. Example:s4p_to_step(s4p, dt, T, zs, zl)
s4p
is the name of the*.s4p
filedt
is the desired time increment between points in the step responseT
is the duration of the step responsezs
is the source impedance (optional argument, defaults to50
)zl
is the load impedance (optional argument, defaults to50
)s4p_to_impulse
with the same arguments. For the pulse response, use theget_pulse_resp
function of theChannel
class.Case4_FM_13SI_20_T_D13_L6.s4p