Gaussian RF Pulse — Control Systems/Waveform Functions
Control_Systems/Waveform_Functions/Gaussian_RF_Pulse · 1 input / 3 output port(s) at insert · exports to Python, MATLAB, Java, Rust, C, C++, VHDL, Verilog, SystemVerilog, PLC Structured Text
Description#
The block's own DESCRIPTION_HTML, rendered verbatim — the same text the config dialog's info panel and the library navigator show. Fix a wrong sentence in the block's .cpp (R-D9), never here.
Gaussian RF Pulse
Control Systems / Waveform Functions
A Gaussian envelope carrying a sinusoid of centre frequency fc, evaluated entry by entry and emitted as all three of its parts:
- envelope e = exp(−x² / (2·tv))
- in phase I = e·cos(2π·fc·x)
- quadrature Q = e·sin(2π·fc·x)
The time-domain variance tv is not set directly: it is derived from the frequency-domain specification the parameters state – a fractional bandwidth bw measured at a reference level bwr dB below the peak of the spectrum – as r = 10bwr/20, fv = −(bw·fc)² / (8·ln r), tv = 1 / (4π²·fv).
Ports
- Input – the argument x of the relations above, of any size [m,n], applied entry by entry. It is a time, in the unit the centre frequency is the reciprocal of.
- Output I – the in-phase pulse I, of the SAME size [m,n].
This is the value MATLAB's
gauspulsreturns when asked for one output. - Output Q – the quadrature pulse Q, of the SAME size [m,n]: the same envelope on a carrier a quarter turn behind.
- Output env – the envelope e alone, of the SAME size [m,n], in (0,1]. It is the modulus of the other two taken together.
The block never reshapes a signal: all three outputs carry the input's size.
Parameters
- Center Frequency (Hz) – the carrier frequency fc, a
non-negative scalar. Default 1 – MATLAB's
gauspulsdefaults to 1000 instead, so set 1000 to reproduce a script exactly; at 1 kHz the whole pulse is about a millisecond wide and reads as flat zero at any ordinary step size. - Fractional Bandwidth – the bandwidth bw as a fraction of the centre frequency, a strictly positive scalar. Default 0.5.
- Bandwidth Reference Level (dB) – the level bwr at which that bandwidth is measured, a strictly NEGATIVE scalar, in dB relative to the peak of the spectrum. Default −6. Zero is rejected: at 0 dB the reference level is the peak itself, ln r is zero, and the bandwidth stops naming a width.
- Sampling Time (s) – zero or less inherits the solver's rate; a positive value runs the block at that period.
Code export
All ten targets: Python, MATLAB, Java, Rust, C, C++, VHDL, Verilog, SystemVerilog and PLC Structured Text.
All three parameters are structural: twice the time-domain variance and the carrier's angular frequency are folded once at export time and written into the body as decimal literals, so the generated core carries no tunable parameter and never re-derives the variance from the bandwidth. Re-export after changing any of the three.
The three HDL targets are simulation-only. The Q16.16 datapath carries
neither an exponential nor a sine, and the squared argument inside the envelope
spans a range sixteen fractional bits cannot hold, so the generated cores convert
at the port boundary and evaluate in real arithmetic – correct
in simulation, but not offered as synthesizable.
Simulink bridge
None. The Simulink standard library has no Gaussian RF pulse block:
MathWorks offers it as the Signal Processing Toolbox function
gauspuls, which is not a block and has no library path a diagram
could name. A model carrying this block is reported rather than silently dropped
when it crosses, and none of its configuration crosses either – "Center
Frequency (Hz)", "Fractional Bandwidth", "Bandwidth Reference Level (dB)" and
"Sampling Time (s)" have no counterparts to be written to.
Notes
- Algebraic, with no state: the outputs depend only on the current input.
- Not linear, so the block deliberately carries no state space and model reduction reports it as unmergeable.
- Three outputs rather than three blocks. The envelope is common to all three parts, and splitting them would evaluate the same exponential more than once – agreeing to within the last bit rather than exactly.
- The envelope never reaches zero: it decays without bound but stays strictly positive, so a pulse "ends" only at the precision of the arithmetic.
Code facts#
| Fact | Value |
|---|---|
| registered type | Control_Systems/Waveform_Functions/Gaussian_RF_Pulse |
| family | Control_Systems/Waveform_Functions |
| solver environment class | ICoreBlock_0_Control_Systems_1_Waveform_Functions_2_Gaussian_RF_Pulse |
| source | src/ICoreBlocks/ICoreBlockLibrary/Blocks/Control_Systems/Waveform_Functions/Gaussian_RF_Pulse/ICoreBlock_0_Control_Systems_1_Waveform_Functions_2_Gaussian_RF_Pulse.cpp |
| header | src/ICoreBlocks/ICoreBlockLibrary/Blocks/Control_Systems/Waveform_Functions/Gaussian_RF_Pulse/ICoreBlock_0_Control_Systems_1_Waveform_Functions_2_Gaussian_RF_Pulse.h |
| default size on canvas | 80 × 80 px |
| ports at insert | 1 in, 3 out |
| code generators implemented | Python, MATLAB, Java, Rust, C, C++, VHDL, Verilog, SystemVerilog, PLC Structured Text |
Ports#
| # | Direction | Signal type | Description label |
|---|---|---|---|
| 1 | in | ICoreDouble | — |
| 2 | out | ICoreDouble | I |
| 3 | out | ICoreDouble | Q |
| 4 | out | ICoreDouble | env |
Ports the constructor creates. A block whose port list changes with its configuration adds or removes ports at load time; the count above is the one a freshly inserted block has.
Configuration variables#
| Config variable | Default | Simulink parameter |
|---|---|---|
Center Frequency (Hz) | 1 | — |
Fractional Bandwidth | 0.5 | — |
Bandwidth Reference Level (dB) | -6 | — |
Every block also carries Sampling Time (s) from ICoreBlockSolverEnvironment: zero or less inherits the solver's rate, a positive value runs the block at that period.
Simulink bridge#
| support | Support::None |
| Simulink path | — |
| port-count rule | PortsParam::None |
SampleTime parameter | yes |
Caveat (shown to the user): the Gaussian-modulated sinusoidal pulse is a Signal Processing Toolbox FUNCTION (gauspuls), not a Simulink library block, so there is no path a diagram could name; the block is reported rather than dropped when a model crosses
Catalog contract: src/ICoreBlocks/ICoreCoder/ICoreCommandSystem/SimulinkBridge/ICoreSimulinkBlockCatalog.h
Description vs code#
The lists agree. check_block_descriptions.py finds no disagreement between the description's Ports, Parameters, Code export and Simulink bridge lists and the code's.
The verdict above is
tools/docs/check_block_descriptions.py(P7.1), which compares LISTS. It cannot read a sentence: "stateless" on a block with a state, an initial-value semantic the recursion does not implement, a "not synthesizable" caveat the HDL banner contradicts. That is the agent audit (P7.3) on BLOCK_DESCRIPTION_AUDIT.md, and this tool's green is not a substitute for one.
File banner (developer view)#
The top comment of the block's .cpp — the maths, the realization and the export strategy, addressed to whoever changes it. It must not contradict the description above (P7.5).
Gaussian RF Pulse -- a Gaussian envelope carrying a sinusoid, with all three parts out e = exp(-x^2 / (2*tv)), I = e*cos(2*pi*fc*x), Q = e*sin(2*pi*fc*x). Algebraic and stateless. No state space -- see the header, which also derives tv from the frequency-domain specification the parameters actually state.
Three outputs rather than three blocks: the envelope is common to all three parts, and a diagram that needed the in-phase and quadrature halves separately would otherwise evaluate the same exponential twice and drift apart in the last bit of it.
Two constants are folded once, here, and embedded in every generated core as decimal literals: twice the time-domain variance, and the carrier's angular frequency. No target re-derives them from the bandwidth, so no target rounds the derivation differently.
The three hardware-description targets evaluate in floating point and are offered as simulation-only: the Q16.16 datapath carries neither an exponential nor a sine, and the squared argument inside the envelope spans a range no sixteen fractional bits can hold.
Sample results#
| t | in ICoreDouble-Out-0 | out ICoreDouble-Out-0 | out ICoreDouble-Out-1 | out ICoreDouble-Out-2 |
|---|---|---|---|---|
| 0 | -2 | 0.0281 | 1.377e-17 | 0.0281 |
| 0.4 | 0.5 | -0.7999 | 9.796e-17 | 0.7999 |
| 0.8 | -2 | 0.0281 | 1.377e-17 | 0.0281 |
| 1.2 | 0.5 | -0.7999 | 9.796e-17 | 0.7999 |
| 1.6 | -2 | 0.0281 | 1.377e-17 | 0.0281 |
| 2 | 0.5 | -0.7999 | 9.796e-17 | 0.7999 |
| 2.4 | -2 | 0.0281 | 1.377e-17 | 0.0281 |
| 2.8 | 0.5 | -0.7999 | 9.796e-17 | 0.7999 |
| 3.2 | -2 | 0.0281 | 1.377e-17 | 0.0281 |
| 3.6 | 0.5 | -0.7999 | 9.796e-17 | 0.7999 |
| 4 | -2 | 0.0281 | 1.377e-17 | 0.0281 |
| 4.4 | 0.5 | -0.7999 | 9.796e-17 | 0.7999 |
| 4.8 | -2 | 0.0281 | 1.377e-17 | 0.0281 |
| 5.2 | 0.5 | -0.7999 | 9.796e-17 | 0.7999 |
Every 4th of 60 samples, from the table stimulus.
The same rig also ran:
| Stimulus | What it is | Output range |
|---|---|---|
impulse | Impulse: one sample of 1 at k = 5, 0 elsewhere (Repeating Sequence Stair) | 0.4094 … 1 |
ramp | Ramp: slope 1 from t = 0 | -0.7999 … 1 |
sine | Sine Wave: amplitude 1, 2 rad/s, no phase, no bias | -0.8044 … 1 |
step | Step: 0 -> 1 at t = 1 s | 0.4094 … 1 |
Plotted: table — Repeating Sequence Stair: [-2 -1 -0.5 0 0.5 1 2 3], one entry per sample
Category static · sample time 0.1 · 60 steps · commit 87d3936094fa2ff37688c80c5846c4dd08d6a27d · produced by docsSample --out <folder> --blocks Sinc Rectangular_Pulse Triangular_Pulse Gaussian_Monopulse Gaussian_RF_Pulse Dirichlet_Function --steps 60 · data docs/generated/samples/Control_Systems__Waveform_Functions__Gaussian_RF_Pulse.json · the SVG is generated from those numbers by tools/docs/plot_svg.py, so it is a run and not a drawing (R-D10).