PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, April 21, 2022

[FIXED] How to connect ports to a Bus properly in VHDL?

 April 21, 2022     bus, connection, port, vhdl     No comments   

Issue

i am currently fooling around with some VHDL Code to try out a view things. For my current approach i need to split up a bus into ports. Therefore it would be the prettiest solution to "hard connect" the bus with the ports in the entity declaration. Is this possible?

Or is the only solution to connect them in the architecture and "write" them into each other in there?

This is the snippet i am trying to implement accordingly.

entity test is
  port (
    bus    : out std_ulogic_vector(3 downto 0);
    port3   : out std_ulogic;
    port2   : out std_ulogic;
    port1   : out std_ulogic;
    port0   : out std_ulogic;
  );
end test;

Thank you very much for your help.


Solution

The entity describes the external connectivity. The Architecture describes its internal behaviour. So "hardwiring" in the entity is not possible.

In your example, you would need to connect the ports to the same connects as the "bus" output

Note: bus is a reserved word in VHDL.



Answered By - Tricky
Answer Checked By - Dawn Plyler (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing