Generated reference › Gaussian RF Pulse — Control Systems/Waveform Functions
kind: generated#block#control-systems-waveform-functions

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 gauspuls returns 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 gauspuls defaults 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#

FactValue
registered typeControl_Systems/Waveform_Functions/Gaussian_RF_Pulse
familyControl_Systems/Waveform_Functions
solver environment classICoreBlock_0_Control_Systems_1_Waveform_Functions_2_Gaussian_RF_Pulse
sourcesrc/ICoreBlocks/ICoreBlockLibrary/Blocks/Control_Systems/Waveform_Functions/Gaussian_RF_Pulse/ICoreBlock_0_Control_Systems_1_Waveform_Functions_2_Gaussian_RF_Pulse.cpp
headersrc/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 canvas80 × 80 px
ports at insert1 in, 3 out
code generators implementedPython, MATLAB, Java, Rust, C, C++, VHDL, Verilog, SystemVerilog, PLC Structured Text

Ports#

#DirectionSignal typeDescription label
1inICoreDouble—
2outICoreDoubleI
3outICoreDoubleQ
4outICoreDoubleenv

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 variableDefaultSimulink parameter
Center Frequency (Hz)1—
Fractional Bandwidth0.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.

supportSupport::None
Simulink path—
port-count rulePortsParam::None
SampleTime parameteryes

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#

Gaussian RF Pulse — Repeating Sequence Stair: [-2 -1 -0.5 0 0.5 1 2 3], one entry per sampleGaussian RF Pulse — Repeating Sequence Stair: [-2 -1 -0.5 0 0.5 1 2 3], one entry per sample-202012345t (s)in ICoreDouble-Out-0out ICoreDouble-Out-0out ICoreDouble-Out-1out ICoreDouble-Out-2
tin ICoreDouble-Out-0out ICoreDouble-Out-0out ICoreDouble-Out-1out ICoreDouble-Out-2
0-20.02811.377e-170.0281
0.40.5-0.79999.796e-170.7999
0.8-20.02811.377e-170.0281
1.20.5-0.79999.796e-170.7999
1.6-20.02811.377e-170.0281
20.5-0.79999.796e-170.7999
2.4-20.02811.377e-170.0281
2.80.5-0.79999.796e-170.7999
3.2-20.02811.377e-170.0281
3.60.5-0.79999.796e-170.7999
4-20.02811.377e-170.0281
4.40.5-0.79999.796e-170.7999
4.8-20.02811.377e-170.0281
5.20.5-0.79999.796e-170.7999

Every 4th of 60 samples, from the table stimulus.

The same rig also ran:

StimulusWhat it isOutput range
impulseImpulse: one sample of 1 at k = 5, 0 elsewhere (Repeating Sequence Stair)0.4094 … 1
rampRamp: slope 1 from t = 0-0.7999 … 1
sineSine Wave: amplitude 1, 2 rad/s, no phase, no bias-0.8044 … 1
stepStep: 0 -> 1 at t = 1 s0.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).