The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design Languages >> Verilog-AMS >> Is there a limitation for the vector size in Spectre?
https://designers-guide.org/forum/YaBB.pl?num=1244478970

Message started by couragebo on Jun 8th, 2009, 9:36am

Title: Is there a limitation for the vector size in Spectre?
Post by couragebo on 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!

Title: Re: Is there a limitation for the vector size in Spectre?
Post by Andrew Beckett on 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.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.