- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a VHDL blackbox file my_file_bb.vhd in which I declare all the input and output ports.
When I instantiate it from another program ... entity TEST: my_file port map.... Quartus keeps complaining that object my_file is used but not declared. I thought the blackbox file already takes care of all the declarations. Do I need to do anything else to use the blackbox file?
Thanks
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Have you done the declaration of component for my_file_bb.vhd in TEST ?
Please refer the below video for the reference & try at your end,
https://www.youtube.com/watch?v=JUVDRNeywI8
Regards,
Vicky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
May I know any update or should I consider that case to be closed?
Regards,
Vicky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes, it's closed. Sorry that i cannot log in for a long time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you post your code for the black box file and the instantiation? That would help to analyze this.
#iwork4intel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The issue here is you've used the VHDL black box module without declaring it. Before you use the BB module in your VHDL Architecture block via a Port Map, you have to declare the BB module as a Component. All you need to do is to add a component declaration for the black box module under the Architecture block and then use it in the Port Map.
Architecture RTL of XXX Is
Component my_file Is
Port (
.....
.....
);
end component;
Begin
Port Map ( );
It should resolve the issue. Else post back with your code and we'll help you resolve it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's working now. I forgot to declare it as a component.
Thanks
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page