The N_GLOBAL_NODES overflow error is not documented.
Through the C code, I think that the maximum of subckt nodes is 1005 : is that the wright understanding ?
Status: open Group: v1.0 (example) Created: Fri May 24, 2019 09:35 AM UTC by Laurent Last Updated: Fri May 24, 2019 09:35 AM UTC Owner: nobody
The N_GLOBAL_NODES overflow error is not documented.
Through the C code, I think that the maximum of subckt nodes is 1005 :
is that the wright understanding ?
BRgds,
Laurent
Is this one or two questions?
The biggest circuit I have here has more than a million nodes.
When I wrap it in a single subckt it still works?
/---------------------------------------------------------------------
* table is used in settrans and gettrans -- it holds the netnames used
* in the .subckt definition (t_old), and in the subcircuit invocation
* (t_new) --------------------------------------------------------------------/
static struct tab {
char t_old;
char t_new;
} table[N_GLOBAL_NODES]; / That had better be enough. */
Maybe the naming is a bit misleading for the error message.
Dietmar
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I suggest to place N_GLOBAL_NODES as an option.
I agre that 1005 shoud be OK for most of the circuit.
In my case, I want to simulate a very large array of cells (1000x1000), with n inputs/outputs so the connection to the array is : 1000 x n I/Os
If I could change that value with an option N_GLOBAL_NODES, NGspice would be perfect !
Thanks! Best regards !
Laurent
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On 2019-05-24 11:35, Laurent wrote:
Is this one or two questions?
The biggest circuit I have here has more than a million nodes.
When I wrap it in a single subckt it still works?
-marcel
Related
Support Requests: #36
This a remark about the documentation of : "N_GLOBAL_NODES overflow"
Second, I found out that it is a limitation in the number of pin of a subckt : < 1005
Is it right that the number of subckt pins is limited ?
Laurent
Yes, it is right.
Extract from subckt.c:
define N_GLOBAL_NODES 1005
/---------------------------------------------------------------------
* table is used in settrans and gettrans -- it holds the netnames used
* in the .subckt definition (t_old), and in the subcircuit invocation
* (t_new)
--------------------------------------------------------------------/
static struct tab {
char t_old;
char t_new;
} table[N_GLOBAL_NODES]; / That had better be enough. */
Maybe the naming is a bit misleading for the error message.
Dietmar
I suggest to place N_GLOBAL_NODES as an option.
I agre that 1005 shoud be OK for most of the circuit.
In my case, I want to simulate a very large array of cells (1000x1000), with n inputs/outputs so the connection to the array is : 1000 x n I/Os
If I could change that value with an option N_GLOBAL_NODES, NGspice would be perfect !
Thanks! Best regards !
Laurent