Hello, Drew, An ideal voltage source can give/sink any current. Likewise, voltage across an ideal current source can be any value. So it is perfectly valid for a paralleled Vsrc and Isrc, that Vsrc's current is zero all the time, while voltage across Isrc equals Vsrc's. Secondly, it is not clear what the original poster's intent. A G-element can be used to model either a real source, or a device (e.g. a diode). To answer the pure syntax question, it would be gxxx 1 2 cur='sin(v(1)-v(2))' in NSpice. I'm not sure what Spectre's syntaxt is, though. However, it should be emphasized that controlling nodes are the same as the VCCS nodes is perfectly legal and should NOT a problem for any simulator. Regards, Yu === Drew Plant wrote: >Hello Shalini, > >You're describing placing a V-source in parallel with an I-source. I don't >know if >this is what you want, because the V-source (unless you specify a non-zero >output impedance) will effectively suck up all of the current from the >I-source, >and the net current going out of or into nodes 1 and 2 will be determined by >the rest >of the circuit hooked up to these nodes, not the V-controlled I-source. > >Regards, >Drew > >-----Original Message----- >From: si-list-bounce@xxxxxxxxxxxxx >[mailto:si-list-bounce@xxxxxxxxxxxxx]On Behalf Of shalini gautam >Sent: Sunday, May 11, 2003 2:09 AM >To: si-list@xxxxxxxxxxxxx >Subject: [SI-LIST] Hspice related question > > > > > > I have to model a voltage >controlled current source, problem is that the > controlling node is the same as >the node across which this VCCS is > connected something like this. [ >it's a kind of non-linear resistor too.] > > GXXX 1 2 1 2 >value{sin(v(1)-v(2)} > > but somehow this sentence gives >syntax error. > I am simulating in spectreS >(similar as hspice) environment. > > Any clue why this shows syntax >error. > >__________________________________ >Do you Yahoo!? >The New Yahoo! Search - Faster. Easier. Bingo. >http://search.yahoo.com >------------------------------------------------------------------ >To unsubscribe from si-list: >si-list-request@xxxxxxxxxxxxx with 'unsubscribe' in the Subject field > >or to administer your membership from a web page, go to: >//www.freelists.org/webpage/si-list > >For help: >si-list-request@xxxxxxxxxxxxx with 'help' in the Subject field > >List archives are viewable at: > //www.freelists.org/archives/si-list >or at our remote archives: > http://groups.yahoo.com/group/si-list/messages >Old (prior to June 6, 2001) list archives are viewable at: > http://www.qsl.net/wb6tpu > > >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.478 / Virus Database: 275 - Release Date: 5/6/2003 > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.478 / Virus Database: 275 - Release Date: 5/6/2003 > >------------------------------------------------------------------ >To unsubscribe from si-list: >si-list-request@xxxxxxxxxxxxx with 'unsubscribe' in the Subject field > >or to administer your membership from a web page, go to: >//www.freelists.org/webpage/si-list > >For help: >si-list-request@xxxxxxxxxxxxx with 'help' in the Subject field > >List archives are viewable at: > //www.freelists.org/archives/si-list >or at our remote archives: > http://groups.yahoo.com/group/si-list/messages >Old (prior to June 6, 2001) list archives are viewable at: > http://www.qsl.net/wb6tpu > > ------------------------------------------------------------------ To unsubscribe from si-list: si-list-request@xxxxxxxxxxxxx with 'unsubscribe' in the Subject field or to administer your membership from a web page, go to: //www.freelists.org/webpage/si-list For help: si-list-request@xxxxxxxxxxxxx with 'help' in the Subject field List archives are viewable at: //www.freelists.org/archives/si-list or at our remote archives: http://groups.yahoo.com/group/si-list/messages Old (prior to June 6, 2001) list archives are viewable at: http://www.qsl.net/wb6tpu