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.

How to create a VHDL library and use it.

Status
Not open for further replies.

anonymous.

Junior Member level 3
Junior Member level 3
Joined
Apr 16, 2012
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,485
There are lots of components that are really much used in designs (Muxes,Buffers, etc). rewriting them each time or copying files from project to project is nonsense.
I want to create a VHDL library and save these components in it. I've searched about this and I can't find a good reference on this. can any body help me on creaing a library, adding files or components and using them?
 

No, I think you can write the component declaration inside the package declaration (not the package body).

example

package mypack is

component comp is
port
(
.................
);
end component;

end;


package body mypack is

end package body;

and then you can instantiate the component in the top module but first write
use work.mypack.all;
in the top file where u want to instantiate the component.
 

Sorry I could not understand your reply, rajavel.rv . But I think you ask about how to instantiate a component in another file
You instantiate it like any other component whether the component in defined in a package or in the file itself
Anyway, you do instantiation like this

block_obj: module
port map (
...........
);
 
Last edited:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top