Error In Using Cadence .scs file

Status
Not open for further replies.

Digital-L0gik

Member level 2
Joined
Jan 26, 2009
Messages
44
Helped
5
Reputation
10
Reaction score
4
Trophy points
1,288
Activity points
1,577
I am using cadence virtuoso and spectre to simulate a complicated circuit I am building. I am trying to set up my stimulus properly so I wrote this .scs file. I am having trouble getting the piecewise linear function working. Can anyone please provide me with some help? I am very new to the tool set. I appreciate the assistance.
Code:
Error found by spectre during hierarchy flattening.
    ERROR (SFE-1997): "/home/scf-03/dhindaw/cadence/simulation/Neural_Network/spectre/schematic/netlist/stimuli/lab3.scs" 13: ErrorVH: parameter `wave': Incomplete pair of numbers specified for vector parameter (has 5 numbers).
        
    ERROR (SFE-1997): "/home/scf-03/dhindaw/cadence/simulation/Neural_Network/spectre/schematic/netlist/stimuli/lab3.scs" 18: ErrorD: parameter `wave': Incomplete pair of numbers specified for vector parameter (has 5 numbers).
        
    ERROR (SFE-1997): "/home/scf-03/dhindaw/cadence/simulation/Neural_Network/spectre/schematic/netlist/stimuli/lab3.scs" 24: P31: parameter `wave': Incomplete pair of numbers specified for vector parameter (has 9 numbers).
        
    ERROR (SFE-1997): "/home/scf-03/dhindaw/cadence/simulation/Neural_Network/spectre/schematic/netlist/stimuli/lab3.scs" 30: P32: parameter `wave': Incomplete pair of numbers specified for vector parameter (has 9 numbers).
        
    ERROR (SFE-1997): "/home/scf-03/dhindaw/cadence/simulation/Neural_Network/spectre/schematic/netlist/stimuli/lab3.scs" 36: P33: parameter `wave': Incomplete pair of numbers specified for vector parameter (has 9 numbers).
        
    ERROR (SFE-1997): "/home/scf-03/dhindaw/cadence/simulation/Neural_Network/spectre/schematic/netlist/stimuli/lab3.scs" 42: P34: parameter `wave': Incomplete pair of numbers specified for vector parameter (has 9 numbers).
        
    ERROR (SFE-1997): "/home/scf-03/dhindaw/cadence/simulation/Neural_Network/spectre/schematic/netlist/stimuli/lab3.scs" 48: P35: parameter `wave': Incomplete pair of numbers specified for vector parameter (has 9 numbers).
        
    ERROR (SFE-1997): "/home/scf-03/dhindaw/cadence/simulation/Neural_Network/spectre/schematic/netlist/stimuli/lab3.scs" 54: P13: parameter `wave': Incomplete pair of numbers specified for vector parameter (has 9 numbers).
        
    ERROR (SFE-1997): "/home/scf-03/dhindaw/cadence/simulation/Neural_Network/spectre/schematic/netlist/stimuli/lab3.scs" 60: P23: parameter `wave': Incomplete pair of numbers specified for vector parameter (has 9 numbers).
        
    ERROR (SFE-1997): "/home/scf-03/dhindaw/cadence/simulation/Neural_Network/spectre/schematic/netlist/stimuli/lab3.scs" 66: P43: parameter `wave': Incomplete pair of numbers specified for vector parameter (has 9 numbers).
        
    ERROR (SFE-1997): "/home/scf-03/dhindaw/cadence/simulation/Neural_Network/spectre/schematic/netlist/stimuli/lab3.scs" 72: P53: parameter `wave': Incomplete pair of numbers specified for vector parameter (has 9 numbers).
        
    ERROR (SFE-1997): "/home/scf-03/dhindaw/cadence/simulation/Neural_Network/spectre/schematic/netlist/stimuli/lab3.scs" 78: P15: parameter `wave': Incomplete pair of numbers specified for vector parameter (has 9 numbers).
        
    ERROR (SFE-1997): "/home/scf-03/dhindaw/cadence/simulation/Neural_Network/spectre/schematic/netlist/stimuli/lab3.scs" 84: P24: parameter `wave': Incomplete pair of numbers specified for vector parameter (has 9 numbers).
        
    ERROR (SFE-1997): "/home/scf-03/dhindaw/cadence/simulation/Neural_Network/spectre/schematic/netlist/stimuli/lab3.scs" 90: P42: parameter `wave': Incomplete pair of numbers specified for vector parameter (has 9 numbers).
        
    ERROR (SFE-1997): "/home/scf-03/dhindaw/cadence/simulation/Neural_Network/spectre/schematic/netlist/stimuli/lab3.scs" 96: P51: parameter `wave': Incomplete pair of numbers specified for vector parameter (has 9 numbers).
        
    ERROR (SFE-1997): "/home/scf-03/dhindaw/cadence/simulation/Neural_Network/spectre/schematic/netlist/stimuli/lab3.scs" 102: P11: parameter `wave': Incomplete pair of numbers specified for vector parameter (has 9 numbers).
        
    ERROR (SFE-1997): "/home/scf-03/dhindaw/cadence/simulation/Neural_Network/spectre/schematic/netlist/stimuli/lab3.scs" 108: P22: parameter `wave': Incomplete pair of numbers specified for vector parameter (has 9 numbers).
        
    ERROR (SFE-1997): "/home/scf-03/dhindaw/cadence/simulation/Neural_Network/spectre/schematic/netlist/stimuli/lab3.scs" 114: P44: parameter `wave': Incomplete pair of numbers specified for vector parameter (has 9 numbers).
        
    ERROR (SFE-1997): "/home/scf-03/dhindaw/cadence/simulation/Neural_Network/spectre/schematic/netlist/stimuli/lab3.scs" 120: P55: parameter `wave': Incomplete pair of numbers specified for vector parameter (has 9 numbers).
        

spectre terminated prematurely due to fatal error.

This is my .scs file:

Code:
simulator lang=spectre

parameters T=10n

vdd (vdd! 0) vsource  dc=2.5

gnd (gnd! 0) vsource dc=0

load (vdd! 0) vsource  dc=2.5

clk (clk 0) vsource type=pulse  val0=0 val1=2.5 delay=0 rise=0.1n fall=0.1n

ErrorVH (ErrorVH 0) vsource type=pwl wave=\[ 
+ 0n 2.5
+ 3*T 2.5
+]

ErrorD (ErrorD 0) vsource type=pwl wave=\[ 
+ 0n 2.5
+ 3*T 2.5
+]


P31 (P31 0) vsource type=pwl wave=\[ 
+ 0n 0
+ 3*T 0
+ 3*T+.1n 2.5
+]

P32 (P32 0) vsource type=pwl wave=\[ 
+ 0n 0
+ 3*T 0
+ 3*T+.1n 2.5
+]

P33 (P33 0) vsource type=pwl wave=\[ 
+ 0n 0
+ 3*T 0
+ 3*T+.1n 2.5
+]

P34 (P34 0) vsource type=pwl wave=\[ 
+ 0n 0
+ 3*T 0
+ 3*T+.1n 2.5
+]

P35 (P35 0) vsource type=pwl wave=\[ 
+ 0n 0
+ 3*T 0
+ 3*T+.1n 2.5
+]

P13 (P13 0) vsource type=pwl wave=\[ 
+ 0n 0
+ 3*T 0
+ 3*T+.1n 2.5
+]

P23 (P23 0) vsource type=pwl wave=\[ 
+ 0n 0
+ 3*T 0
+ 3*T+.1n 2.5
+]

P43 (P43 0) vsource type=pwl wave=\[ 
+ 0n 0
+ 3*T 0
+ 3*T+.1n 2.5
+]

P53 (P53 0) vsource type=pwl wave=\[ 
+ 0n 0
+ 3*T 0
+ 3*T+.1n 2.5
+]

P15 (P15 0) vsource type=pwl wave=\[ 
+ 0n 0
+ 3*T 0
+ 3*T+.1n 2.5
+]

P24 (P24 0) vsource type=pwl wave=\[ 
+ 0n 0
+ 3*T 0
+ 3*T+.1n 2.5
+]

P42 (P42 0) vsource type=pwl wave=\[ 
+ 0n 0
+ 3*T 0
+ 3*T+.1n 2.5
+]

P51 (P51 0) vsource type=pwl wave=\[ 
+ 0n 0
+ 3*T 0
+ 3*T+.1n 2.5
+]

P11 (P11 0) vsource type=pwl wave=\[ 
+ 0n 0
+ 3*T 0
+ 3*T+.1n 2.5
+]

P22 (P22 0) vsource type=pwl wave=\[ 
+ 0n 0
+ 3*T 0
+ 3*T+.1n 2.5
+]

P44 (P44 0) vsource type=pwl wave=\[ 
+ 0n 0
+ 3*T 0
+ 3*T+.1n 2.5
+]

P55 (P55 0) vsource type=pwl wave=\[ 
+ 0n 0
+ 3*T 0
+ 3*T+.1n 2.5
+]
[/quote]
 

Digital-L0gik said:
... I am having trouble getting the piecewise linear function working. Can anyone please provide me with some help?
I guess if you use algebraic expressions, you should enclose them by (round brackets).
 

Thanks so much, that was exactly my issue. I appreciate it!
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…