Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

Instantiating AHDL module in VHDL without component part

Altera_Forum
Honored Contributor II
1,215 Views

Hi, 

I really like the idea of instantiating a module without a component part and then in main code using entity work. : 

 

HA2 : entity work.halfadder port map (s1,cin,sum,c2);The idea came from this link: 

 

http://vhdlguru.blogspot.com/2010/03/entity-instantiation-easy-way-of-port.html 

 

It works fine for my VHDL modules, but when i have some AHDL modules in my design and i want to instantiate them the same way, Quartus II gives me an error: 

 

--- Quote Start ---  

Error (10481): VHDL Use Clause error at main.vhd(155): design library "work" does not contain primary unit "ahdl_module" 

 

--- Quote End ---  

Is there a way to work it around and not to use components when instantiating ahdl modules ? Perhaps quartus puts ahdl modules into some different library, or adds some name in the entity of that module - i wasn't able to find it. 

 

best regards 

madness
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
508 Views

Nope. For mixed language you need to use components, because the VHDL compiler has no knowledge of the AHDL, hence you need it to be a black box - which is what components are for.

0 Kudos
Altera_Forum
Honored Contributor II
508 Views

Hi, 

thanks for the reply :) i won't be trying to do that. 

best regards 

madness
0 Kudos
Reply