Fatal error: Unknown device type: a (UC3875)

Converting a complex LTspice subcircuit with A-devices and Diode/Switch models containing unique LTspice instance parameters (e.g., Ilimit, Vser) can be challenging. I had set this task aside since Qspice launched but until last month, as I needed to focus on supporting a case involving the conversion of a model from ValVol.lib by Valentin Volodin, requested by my colleague.

This message requested UC3875 Phase Shift Resonant Controller from ValVol.lib (models), the simulation could not run successfully using its LTspice example test_uc3875.asc until I removed its power stage. Once I eliminated the power stage, the example ran properly in LTspice. I am in need of an example that can help me verify that the subcircuit conversion has been done correctly. (let me know if you know how to make the original test_uc3875.asc can run in LTspice).

This task is quite tedious and requires in-depth knowledge of both SPICE platforms.
My goal is to achieve a one-to-one match for each unique LTspice device (A-device or Diode/SW model with parameters like Ilimit, Vser, etc.). Currently, I am doing my best to match these devices. However, if you believe there is a better equivalent subcircuit, please feel free to share your suggestions as I aim to ensure that this modification work is of the highest quality.

Here is my work for anyone who feel interest to review.
[ I don’t know how good the model from Valentin Volodin is; this work is solely a direct conversion from LTspice to Qspice with no intention to alter its behavior.]

example.UC3875.BasicFunction.qsch (11.9 KB)
ValVol-UC3875-251109.txt (7.7 KB)