Z-domain discrete time control subcircuit symbols library

I have created a number of subcircuit symbols for discrete-time control (z-domain) and uploaded them to my symbol library on GitHub (Qspice/Symbols at KSKelvin-Github/Qspice). Instructions on how to download the library can be found at the above link by scrolling down to the bottom. The corresponding symbols are located in /Symbols-KSKelvin/control/.digital control/

Here are examples that use the devices in my symbol library
I hope this can help members who are not familiar with C++ in Qspice to have an easy way to work on discrete-time control related to the z-domain.

Example #1 : Various method to compute the step response of a z-domain transfer function
z-domain.TransferFunction.qsch (21.1 KB)

Example #2 : A PFC with digital inner/outer loops. Based on an example in PSIM.

z-domain.PFC_vi_d.qsch (36.7 KB)