The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design Languages >> Verilog-AMS >> Identifier has conflicting contexts.
https://designers-guide.org/forum/YaBB.pl?num=1665756611

Message started by manish123456 on Oct 14th, 2022, 7:10am

Title: Identifier has conflicting contexts.
Post by manish123456 on Oct 14th, 2022, 7:10am

i am getting issue into my verilogams code
 vrefout = (3E-5)*(cf_trim_dec**2) - (0.0044)*(cf_trim_dec) + 0.653;
it is saying vrefout   Identifier has conflicting contexts.

i defined
real vrefout;

Title: Re: Identifier has conflicting contexts.
Post by Ken Kundert on Oct 14th, 2022, 11:19pm

A variable is associated with the discrete kernel if it is initialized or if it is assigned a value in an initial block or an always block.

A variable is associated with the continuous kernel if it is assigned a value in the analog block.

A variable with conflicting conflicts is associated with both kernel.

If you want further help, you should show your model.

Title: Re: Identifier has conflicting contexts.
Post by Geoffrey_Coram on Mar 6th, 2023, 7:59am

Do you initialize it somewhere else in your code?
 vrefout = 0;

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