[SOLVED] Spice syntax problem - Need correction

Status
Not open for further replies.

omahens

Newbie level 3
Joined
May 7, 2008
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,315
Hello,

I write some code for spice, where I use two cvcs and two transistors at input, at the output I have ideal opamp where I get 0 or 3.3 voltages signals. Everything works fine, but I would like to add switch on/off, which would power my circuit (comparator) on when clkc will be on 1 (3.3V) and power of when 0 (0V). I add two switches (sw1 and sw2), where I would have at input agd1p8 (dacout) and at output agd (dac), so position 0 is open loop, power off, position 1 (clock=1 (3.3V)), power on.

Could someone help me add switch please?

If you look the code, I add inverter and two clkc, because in future I must invert the clkc but this is not the problem right now.

 

I found a solution, but not with the switch. I use nor2 gate and one vcvs for positive signal, for negative I have three vcvs's and one transisotr. I made what I wont to made, but if someone know how to use switch in that language, please tell. Thanks!

Solution:


 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…