Looking for / Sharing a working SPICE model for CD4051 (8:1 analog multiplexer)
Alternatively, here's a I've used for basic functionality (no Ron variation): cd4051 spice model
Non-linearity : The "on" resistance changes based on the input voltage relative to the power supply rails. Looking for / Sharing a working SPICE model
The digital section consists of the level shifting and decoding circuitry. In a physical CD4051, this logic allows the device to select one of eight channels based on three binary control inputs (A, B, C) and an inhibit pin. In a SPICE model, this is often implemented using primitive logic gates (AND, NOT, OR) or behavioral sources. The fidelity of this block is crucial; the model must replicate the propagation delay ($t_pd$) and transition times to accurately simulate timing hazards or race conditions in high-speed switching applications. In a SPICE model, this is often implemented