@holger Herr Holger, I am not sure I understand how your example from Simulation with XSPICE code models works, for example the NAND3_2_DFF schematic. I see you used a .param vcc=2
parameter to set up the amplitude for V1 and V2. But somehow this parameter is passed automatically to all XPICE circuits, in a non-explicit way.
The problem arises if I replace the amplitude of V1 with y1=0 y2=5 td=2n tr=2n tf=2n tw=50n per=100n
, the amplitude of V1 with: y1=0 y2=5 td=0.8u tr=2n tf=2n tw=1.4u per=1
(instead of using the vcc param I use a direct voltage value for y2) and I delete the .param vcc=2
All of a sudden all XPICE circuits are working now at 3.3 V logic, instead of the expected 1 V logic. Is there in KiCad a hidden default parameter .param vcc
and that non existing param vcc is now automatically set to 3.3 V and passed to all circuits? Or ngspice has a hidden vcc param that defaults to 3.3 V and is used all over by ngspice?
Mit freundlichen Grüßen,
Adi