Piecewise Linear Error In Spectre
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Piecewise Linear Error In Spectre
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence

Author Message
digital-l0gik



Joined: 30 Apr 2010
Posts: 2

Posted: Fri Apr 30, 2010 8:11 pm    Post subject: Piecewise Linear Error In Spectre Reply with quote

I am trying to simulate my circuit in virtuoso using spectre. I wrote the following stimulus file .scs file. I am getting errors on all the inputs with PWL sources. I am not sure how to fix it. The name of pwl sources are the exact same names as my pins in my schematic, perhaps this is the problem. I am new to the tool set and I would appreciate some assistance. Thanks and regards.

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
+]


Errors I am getting
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.


Back to top
View user's profile Send private message
digital-l0gik



Joined: 30 Apr 2010
Posts: 2

Posted: Sat May 01, 2010 1:15 am    Post subject: Reply with quote

Thanks to some help on edaboards, the error was rather trivial. When specifying time in terms of an algebraic expression in the pwl function, one should enclose the expression in parentheses.
Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Access Forum - Microsoft Office Forum - Electronics

Contact Us Powered by phpBB