Quantcast
Channel: Cadence Custom IC Design Forum
Viewing all articles
Browse latest Browse all 4906

How to Describe Branch Current with Bsource

$
0
0

Hi, I'm new spectre user.

I found simulator reference with GOOGLE.

It mentioned that we could use this syntax:

name (node1 node2) bsource behav_param param_list

subckt as below

vsrc (P 1) DC=0

r1 (1 N) resistor=1

bsrc (1 N) bsource i = {sgn(i("vsrc:1"))*ABS(i("vsrc:1")**2)/2000)}

I got these error message:    

1. ERROR (SFE-874): "xxx.scs" 16: Cannot run the simulation because syntax error `Unexpected block statement "{"' was encountered at line 16, column 20. Correct the syntax error and rerun the simulation.
2. ERROR (SFE-874): "xxx.scs" 16: Cannot run the simulation because syntax error `Unexpected quoted string ""vsrc:1". Expected end of file or end of line' was encountered at line 16, column 27. Correct the syntax error and rerun the simulation.
3. ERROR (SFE-709): "xxx.scs" 16: No master specified for instance `ABS'

4. ERROR (SFE-709): "xxx" 16: No master specified for instance `i'.

Is there something illegal? (Except 1, 3)


Viewing all articles
Browse latest Browse all 4906

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>