0
\$\begingroup\$

In structural VHDL, is it acceptable to use signals declared with the same name in different components?

For example:

Component_1 uses a signal declared Temp_1

Component_2 also uses a signal declared Temp_1

These two components are both instantiated in the same higher top level source code?

\$\endgroup\$

1 Answer 1

3
\$\begingroup\$

Signal names are isolated within VHDL modules. So there is no "connection" between same-named signals between modules. So it's perfectly acceptable to use the name "Temp_1" in different modules. The only way to connect is via ports.

\$\endgroup\$
1
  • \$\begingroup\$ Thank you, I thought this was the case but just wanted to be double check. \$\endgroup\$
    – David777
    Feb 12, 2021 at 20:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.