FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > VHDL

VHDL comp.lang.vhdl newsgroup / Usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-15-2004, 02:37 AM
JJ
Guest
 
Posts: n/a
Default Modelsim: Operator overloading

Hi,
I am currently writing a test bench that contains a signal assignment within
a sequential process,

a<= b;

'a' is never assigned the value b during the run. I have several packages
included in this bench. I suspect operator overloading occuring. Can/does
Modelsim (the IDE I am using) have the capability to detect this is
happening? Or does anyone know a good way to trace or eliminate this
possibility?

Thanks


Reply With Quote
  #2 (permalink)  
Old 06-15-2004, 09:29 AM
Egbert Molenkamp
Guest
 
Posts: n/a
Default Re: Modelsim: Operator overloading


"JJ" <[email protected]> wrote in message
news:Owrzc.1519$[email protected] ...
> Hi,
> I am currently writing a test bench that contains a signal assignment

within
> a sequential process,
>
> a<= b;
>
> 'a' is never assigned the value b during the run. I have several packages
> included in this bench. I suspect operator overloading occuring. Can/does


The assignment operator can not be overloaded.

My first quess would be that signal a is untentionally multiple driven (from
different processes). Since you use ModelSim you can use the command:
drivers a <return>
to find the driver for signal a.

Egbert Molenkamp





Reply With Quote
  #3 (permalink)  
Old 06-15-2004, 05:38 PM
[email protected]
Guest
 
Posts: n/a
Default Re: Modelsim: Operator overloading

"Egbert Molenkamp" <[email protected]> writes:

> "JJ" <[email protected]> wrote in message
> news:Owrzc.1519$[email protected] ...
> > Hi,
> > I am currently writing a test bench that contains a signal assignment

> within
> > a sequential process,
> >
> > a<= b;
> >
> > 'a' is never assigned the value b during the run. I have several packages
> > included in this bench. I suspect operator overloading occuring. Can/does

>
> The assignment operator can not be overloaded.
>
> My first quess would be that signal a is untentionally multiple driven (from
> different processes). Since you use ModelSim you can use the command:
> drivers a <return>
> to find the driver for signal a.
>
> Egbert Molenkamp


As usual, Egbert's advice is good, but I would also put a breakpoint at the
beginning of your sequential process and see if the process sensitivity list or
other IF/THEN code is not working the way you expect it to by single stepping
through the process.

Note too that a signal with no driver will be a 'U' but a signal with multiple
drivers will likely be an 'X'.
Reply With Quote
  #4 (permalink)  
Old 06-16-2004, 02:12 AM
JJ
Guest
 
Posts: n/a
Default Re: Modelsim: Operator overloading

I ended up calling Modelsim - I had upgraded to 5.8c from 5.5(something),
the advice was "Always blow away your work directory and start again when
you upgrade" - Guess what? Worked like a charm...

I'm not going crazy after all!


"JJ" <[email protected]> wrote in message
news:Owrzc.1519$[email protected] ...
> Hi,
> I am currently writing a test bench that contains a signal assignment

within
> a sequential process,
>
> a<= b;
>
> 'a' is never assigned the value b during the run. I have several packages
> included in this bench. I suspect operator overloading occuring. Can/does
> Modelsim (the IDE I am using) have the capability to detect this is
> happening? Or does anyone know a good way to trace or eliminate this
> possibility?
>
> Thanks
>
>



Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Concatenation operator, value ordering, bug in ModelSim, or ??? Edmond Coté Verilog 1 02-13-2007 04:49 PM
Verilog exponential operator issues in simulation (ISE 7.1 SP3 w/ ModelSim 6.0a) Nju Njoroge FPGA 6 07-12-2005 07:03 PM
Verilog exponential operator issues in simulation (ISE 7.1 SP3 w/ ModelSim 6.0a) Nju Njoroge Verilog 6 07-12-2005 07:03 PM
Re: Operator Overloading in Verilog Ajeetha Kumari Verilog 0 06-28-2003 06:39 PM
Re: Operator Overloading in Verilog Jonathan Bromley Verilog 0 06-27-2003 10:44 AM


All times are GMT +1. The time now is 02:31 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved