The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Mar 29th, 2024, 12:10am
Pages: 1
Send Topic Print
Identifier has conflicting contexts. (Read 385 times)
manish123456
New Member
*
Offline



Posts: 2

Identifier has conflicting contexts.
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;
Back to top
 
 
View Profile   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2384
Silicon Valley
Re: Identifier has conflicting contexts.
Reply #1 - 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.
Back to top
 
 
View Profile WWW   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1998
Massachusetts, USA
Re: Identifier has conflicting contexts.
Reply #2 - Mar 6th, 2023, 7:59am
 
Do you initialize it somewhere else in your code?
 vrefout = 0;
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   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.