Using a behavioral voltage source as a zero crossing detector for inductance current in LTSpice
I couldn't get the switches to turn on until I set vref to 0.1V, after that it started switching, so either change Vref or check your VFB.
Generally speaking, you should never have a voltage source that can source infinite amounts of current. This creates problems for the solver.
So put a series resistor (like 0.1Ω) on B6,B7,B8,B4 and maybe B2 and B3
B2 and B3 need thresholds, they aren't producing voltage
Instead of V=(V(LQ) &amp; !V(ZCD))
You need an if statement, so your voltages are defined, something like this:
V=IF((V(LQ)&gt;0) &amp; (V(ZCD)&lt;5),0,1)
Dont use !, use a defined comparison statement. Spice doesn't know what the ! voltage of V(ZCD) is, you have to define that.