VHDL beginner - signal conflict resolution

OP (Company: SSBV UK) #2525427
Rate this post
• ▲ useful
▼ not useful
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
Rate this post
• ▲ useful
▼ not useful
> 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...)

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

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.