MatBucher / ekv3model

Other
14 stars 4 forks source link

problem with variable declarations #9

Open gjcoram opened 7 months ago

gjcoram commented 7 months ago

The variables VS, VD, VG, are declared in two places: 1) ekv3_include/ekv3_variables_oppoint.va, lines 12-14 2) ekv3_include/ekv3_variables.va, lines 171-173

The oppoint file is included at module scope (outside the "analog" block), and then the other file is included inside a block named EKV3 (see excerpt from ekv3.va below). The variables are only set in the block EKV3, which means the code is setting the second set of variables, and the operating-point variables are never given values. This is the reason why VAMPyRE complains that the op-pt variables are never set.

ERROR in file ekv3_include/ekv3_variables_oppoint.va, line 12: Operating-point variable 'VS' was never assigned a value ERROR in file ekv3_include/ekv3_variables_oppoint.va, line 13: Operating-point variable 'VD' was never assigned a value ERROR in file ekv3_include/ekv3_variables_oppoint.va, line 14: Operating-point variable 'VG' was never assigned a value

//include "ekv3_include/ekv3_variables.va" include "ekv3_include/ekv3_functions_def.va" include "ekv3_include/ekv3_parameters.va" include "ekv3_include/ekv3_variables_oppoint.va" analog begin

//////////////////////////////////////////////////////////////////////////////// // LEVEL 0 // // MODEL LEVEL CALCULATIONS // //////////////////////////////////////////////////////////////////////////////// begin:EKV3 include "ekv3_include/ekv3_variables.va" MODEL begin

gjcoram commented 7 months ago

IG, Leff, Weff, WeffNF all have the same problem.

On the other hand, the op-pt variables VB and sat are never given values.