Rational resampler
Keywords
electrical, unidirectional
Ports
Name | Type |
---|---|
input | Electrical Signal |
output | Electrical Signal |
Properties
General Properties
Name | Default value | Default unit | Range |
---|---|---|---|
name Defines the name of the element. |
Rational Resampler | - | - |
annotate Defines whether or not to display annotations on the schematic editor. |
true | - | [true, false] |
enabled Defines whether or not the element is enabled. |
true | - | [true, false] |
type Defines the element unique type (read only). |
Rational Resampler | - | - |
description A brief description of the elements functionality. |
Rational resampler | - | - |
prefix Defines the element name prefix. |
RSMPL | - | - |
model Defines the element model name. |
- | - | - |
library Defines the element location or source in the library (custom or design kit). |
- | - | - |
local path Defines the local path or working folder $LOCAL for the element. |
- | - | - |
url An optional URL address pointing to the element online help. |
- | - | - |
Standard Properties
Name | Default value | Default unit | Range |
---|---|---|---|
upsample rate factor The factor to be multiplied to the input sampling rate |
1 | - | [1, +∞) |
downsample rate factor The factor to divide the input sampling rate by |
1 | - | [1, +∞) |
Numerical/Digital Filter Properties
Name | Default value | Default unit | Range |
---|---|---|---|
number of fir taps Defines the number of coefficients for digital filter. |
256 | - | [1, +∞) |
====================================
Implementation Details
The electrical rational resampler resamples the input signal according to the sampling ratio setting. The following figure shows the system in the example file Electrical_Rational_Resampler.icp.
The factors that will define the resampling ratio for this element is the "upsample rate factor" and the "downsample rate factor". The upsample ratio is defined as
$$ R_{u p}=\frac{1}{R_{\text {down }}}=\frac{\text { upsample - rate - factor }}{\text { downsample - rate }-\text { factor }} $$ .
Following are two examples for the electrical rational resampler with upsample rsatio = 2 and downsample ratio = 2, respectively. Note the number of samples' difference between the two oscilloscopes.