The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 4:24pm
Pages: 1
Send Topic Print
instantiating a module for several times (Read 3265 times)
navids
New Member
*
Offline



Posts: 2

instantiating a module for several times
May 20th, 2011, 1:23am
 
Dear all,
I have encountered a problem. I want to use a block for 40 times in my verilog-A code. I have written a module for it, but in the main module I can't instantiate it in a "for/generate" loop.
The problem is that the "for/generate" loops should be in the analog block while the instantiating should be outside of the analog block. At least this is the issue that I found. Does anybody have any solution for that?
Kind regards,
Navids
Back to top
 
 
View Profile   IP Logged
boe
Community Fellow
*****
Offline



Posts: 615

Re: instantiating a module for several times
Reply #1 - May 27th, 2011, 10:25am
 
Navids,

See post http://www.designers-guide.org/Forum/YaBB.pl?num=1291392799#6 and its follow-ups.
B O E
Back to top
 
 
View Profile   IP Logged
navids
New Member
*
Offline



Posts: 2

Re: instantiating a module for several times
Reply #2 - May 30th, 2011, 12:27am
 
Hi B O E,

Thank you for your suggestion. I had already done that. But I encounter another problem.
In my overall system, I have 8 stages that in each of them I should use 155 times of my child module. If I write the code of the child module directly in the main module with for/generate loops, it works for one stage. but when I tried with three stages, there was this error:

Internal error found in spectre during SpectreHDL complie, during generation of Artist DPLs. Please run 'getSpectreFiles' or send the netlist, the spectre log file, the behavioral model files, and any other information that can help identify the problem to support@cadence.com.
 assertion failed.

I should mention that the child module is not complicated. It two inputs/outputs and according to the control line the inputs are connected to the outputs in parallel/crossed.

Navids
Back to top
 
 
View Profile   IP Logged
boe
Community Fellow
*****
Offline



Posts: 615

Re: instantiating a module for several times
Reply #3 - May 30th, 2011, 12:50am
 
Navids,

It seems your example exceeds some internal limit of Spectre. I suggest you contact Cadence about that internal error.

B O E
Back to top
 
 
View Profile   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.