multiple connection

Guest #3743861
Rate this post
• ▲ useful
▼ not useful
Hi,

I want to connect 2 components in vhdl but I have some trouble to write 
the code because of multiple connections in port map.

The output of the component is a real_vector(0 to 3) and is connected to 
multiple outputs of an other component as below:

fast_anlog_in(0) => adc1_vinp(0), adc2_vinp(0)
fast_anlog_in(1) => adc1_vinn(0), adc1_vinp(1), adc2_vinn(0), 
adc2_vinp(1)
fast_anlog_in(2) => adc3_vinp(0)
fast_anlog_in(3) => adc3_vinn(0), adc3_vinp(1)

What is the good way to proceed ?

Thank you !
Moderator (Company: Titel) #3744070
Rate this post
• ▲ useful
▼ not useful
sebgimi wrote:
> The output of the component is a real_vector(0 to 3) and is connected to
> multiple outputs of an other component as below:
You cannot connect multiple outputs unless your data type can resolve 
such conflicts.
If you have to connect several outputs to one input you must use a 
multiplexer to select the active output.
Guest #3744166
Rate this post
• ▲ useful
▼ not useful
Sorry, maybe I was not clear enough...

I have one component with one output that I want to connect to several 
outputs of an other component. In attchment you have a draw of the 
system for a better understanding.
Attached files:
Guest #3744275
Rate this post
• ▲ useful
▼ not useful
sebgimi wrote:
> I have one component with one output that I want to connect to several
> outputs of an other component. In attchment you have a draw of the
> system for a better understanding.

I guess that's a typo and you actually want to connect a single output 
to multiple inputs? Everything else won't make sense.
Guest #3744313
Rate this post
• ▲ useful
▼ not useful
The structure on the photo is not the structure typically described via 
port map.
It is a component that is instantiated within another component.
So give the signal a name und "attach" the outputs from the "inner" 
component to the signal

sig1 <= Out1

and then attach the outputs of the "outer" component to that signal

Output1 <= sig1;
Output2 <= sig1;

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.