The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 4:20am
Pages: 1
Send Topic Print
Is there a limitation for the vector size in Spectre? (Read 70 times)
couragebo
Junior Member
**
Offline



Posts: 18

Is there a limitation for the vector size in Spectre?
Jun 8th, 2009, 9:36am
 
I am using Spectre to create a VerilogA model.

I defined a port using a vector named "n1"; the size of this vector is NUM (constant), like below:

Code:
`define NUM 200
module num_array(n1, n2);

  input [1:`NUM] n1;  
  output n2;
  electrical [1:`NUM] n1;
  electrical n2;  
 



The curious thing is that when NUM is big enough (>150), the compilation encounters always an error:

Internal error found in Spectre during SpectreHDL compile, during the generation of Artist DPLs.

However, when NUM is small (eg. 20), there is no problem.

Who can help to explain this?

I think there might be a conflict with laplace function or other analog function, because if I remove laplace function, there will be no error reporting.

The code is as below:

Code:
`include "constants.vams"
`include "disciplines.vams"

`define NUM 200

module num_array(n1, n2);

  input [1:`NUM] n1;  
  output n2;

  electrical [1:`NUM] n1;
  electrical n2;  

  integer i;
  real in_var [1:`NUM];
  real in_total;

  analog begin
  
   generate i (1,`NUM) begin  
     in_var[i] = V(n1[i]);
   end  
  
   for (i=1; i<= `NUM; i=i+1) begin
     in_total = in_var[i] + in_total;
   end
        
    V(n2) <+ laplace_zp(in_total,{-1,0},{-1/2n,0});

  end
endmodule
 



The problem is I need to use a large vector size. so my question is: Is there a limitation for the vector size in presence of some analog functions?

Thanks for the help!
Back to top
 
« Last Edit: Jun 08th, 2009, 3:16pm by couragebo »  
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: Is there a limitation for the vector size in Spectre?
Reply #1 - Jul 10th, 2009, 7:02am
 
I'm not aware of a limit. So the best thing is to first check with the latest MMSIM711 Hotfix, and if it still happens, report to Cadence customer support with a testcase that illustrates the problem.

Regards,

Andrew.
Back to top
 
 
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.