Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Connection ports using VHDL

Status
Not open for further replies.

stevy

Newbie level 3
Joined
Nov 30, 2004
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
27
Hi, I am a newbie in VHDL. Hence, the question I am going to ask may seema little stupid, but I could not find an answer?

What are the commands needed to connect the output port of a counter to the input port of a multiplexor???
 

Salam,

Ok it seems that your design is compose of subcomponents like counter, mux,.... (Structural)

You can use direct or component instantiations to connect these subcomponents to form final model (top design)

In both cases you use "port map" commands to connect the subcomponents together.

Search for "component instantiations" for more details or look to this example

**broken link removed**

Bye
Eng. Amr Ahmed
 

For example you have a 2 bit counter then let its ports be c1,c2.
Let the mux have ports m1,m2
then..
in the top module you declare signals of same type as c1(= m1) and c2(= m2)
ex if the types are std_logic then
signal a1: std_logic;
signal a2: std_logic;
begin

counter_inst: counter portmap(c1=>a1,c2=>a2);
mux_inst : mux(m1=>a1,m2=>a2);
-----
-----
the above will connect the ports of your counter module to mux module.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top