Skip to content

problem with variable declarations #9

@gjcoram

Description

@gjcoram

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions