VHDL beginner - signal conflict resolution

OP (Company: SSBV UK) #2525427
Hello all!

I'm new to VHDL and am looking to learn it as fast as possible. I've 
been reading all I can on the topic and think I have a fairly good grasp 
of what's going on. However, something bothers me about the 
simultaneousness of evaluation.

Take, for example, two processes. The first process assigns a binary '1' 
to a signal. Another process assigns '0' to the same signal. Given that 
both processes are converted to hardware which do not execute 
sequentially, both processes will simultaneously be trying to pull the 
signal in a conflicting manner. What happens in this situation? Have I 
misunderstood something that prevents this situation from occurring in 
the first place?

Thank you!
   Alexandicity
Moderator (Company: Titel) #2525470
> What happens in this situation?
Where?
In simulation: you will get a collision on this signal. When the 
assigned value is different it depends on the signals type how the 
simulator copes up with this problem. For std_logic a resolution table 
exists. With that the colliding signals will be resolved (and result 
usually in a 'X').

In hardware: you will not get synthesized such a description.
(Because todays fpgas don't have "wires" to which more than 1 output can 
be connected to...)
Moderator (Company: Titel) #2525567
You can and will get all three of them.
And maybe even if the simulation does not report an error (because your 
stimuli always drives the same value from both outsputs to the signal), 
the syntheses will not be able to resolve it...

Reply

A question of your own? This thread is over 14 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.