Tip of the Month
Generating a sinusoidal signal with resettable phase
How do you generate a sinusoidal signal, of which phase can be reset by an external input? A 'sin_gen' primitive followed by a 'switch' primitive won't do it.

How do you generate a sinusoidal signal, of which phase can be reset by an external input? A 'sin_gen' primitive followed by a 'switch' primitive won't do it.
Here is a model of the gated ring oscillator (GRO) presented in the paper "A Multi-Path Gated Ring Oscillator TDC With First-Order Noise Shaping" by M. Z. Straayer and M. H. Perrott.
This primitive defines a piecewise-linear (PWL) function from an xreal-type input to an xreal-type output.
Silicon Photonics Simulation with XMODEL, Measuring I-V Curves, and More
Catching Elusive Voltage Spikes with Assertions, Modeling VCO with Extra Digital Inputs, and More
Modeling Delta-Sigma Digital-to-Analog Converters, XMODEL at DVCon US, and More
Modeling Mixed-Signal Processing-in-Memory Circuits, Filtering Phase Noise, and More
Modeling a Digital LDO, Tips on Modeling High-Pass Filters, and More