Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17266 Discussions

.bdf, .bsf and according .vhd file

Altera_Forum
Honored Contributor II
6,077 Views

Hi, 

 

I have an IIR filter design created and exported as *.vhd with Matlab. 

 

I copied this .vhd file into a folder in my current Quartus II project which I called say "Filter". 

 

So the structure is now project_root/Filter. 

 

Now, I opened this .vhd-file in my current Quartus project (not added it, just opened) and I created a symbol file from it by clicking "File/Create_Update/Create Symbol files for current File".  

 

The created .bsf file I copied fom project_root to project_root/Filter. 

 

Then I put the project_root/Filter path to the Project libraries. 

 

Now, when I add a new .bdf File to my project and I put in there my just creates filter-.bsf symbol. I can't open the design file by double clicking on the symbol file. I just get the message "Cannot locate design file for entity "Filter"". 

 

What have I done wrong or how is the normal procedure to create a bsf file? 

 

Regards, 

Maik
0 Kudos
9 Replies
Altera_Forum
Honored Contributor II
4,073 Views

 

--- Quote Start ---  

Hi, 

 

I have an IIR filter design created and exported as *.vhd with Matlab. 

 

I copied this .vhd file into a folder in my current Quartus II project which I called say "Filter". 

 

So the structure is now project_root/Filter. 

 

Now, I opened this .vhd-file in my current Quartus project (not added it, just opened) and I created a symbol file from it by clicking "File/Create_Update/Create Symbol files for current File".  

 

The created .bsf file I copied fom project_root to project_root/Filter. 

 

Then I put the project_root/Filter path to the Project libraries. 

 

Now, when I add a new .bdf File to my project and I put in there my just creates filter-.bsf symbol. I can't open the design file by double clicking on the symbol file. I just get the message "Cannot locate design file for entity "Filter"". 

 

What have I done wrong or how is the normal procedure to create a bsf file? 

 

Regards, 

Maik 

--- Quote End ---  

 

 

Hi Maik, 

 

I would guess you have to use the "add file" function for both files, the bsf and the vhd file. 

 

Kind regards 

 

GPK
0 Kudos
Altera_Forum
Honored Contributor II
4,073 Views

Hi pletz, 

 

thanks for your reply! 

 

Well, I thought that if I added the "project_root/Filter"-folder to my library path, I don't need to add the files to my project. . . .  

 

Maik
0 Kudos
Altera_Forum
Honored Contributor II
4,073 Views

 

--- Quote Start ---  

Hi pletz, 

 

thanks for your reply! 

 

Well, I thought that if I added the "project_root/Filter"-folder to my library path, I don't need to add the files to my project. . . .  

 

Maik 

--- Quote End ---  

 

 

Hi Maik, 

 

that should work. Maybe a stupid question, did you copy your vhd file in the Filter folder ? 

If have a small project attached. Is that what you are doing ? 

 

Kind regards 

 

GPK
0 Kudos
Altera_Forum
Honored Contributor II
4,073 Views

Hi pletz, 

 

yes, I copied it in there. 

 

I tried to write down the exact procedure how I set everything up in my opening post. 

 

I have two file in my "project_root/Filter"-folder: filter.vhd and filter.bsf. 

 

The filter.bsf I had to copy in that folder, too, after I created it because Quartus put it into the "project_root" path. 

 

I really wonder why this is such a big problem for me because I thought if I put it into the library search path of my project everything should be fine . . .  

 

Maik
0 Kudos
Altera_Forum
Honored Contributor II
4,073 Views

 

--- Quote Start ---  

Hi pletz, 

 

yes, I copied it in there. 

 

I tried to write down the exact procedure how I set everything up in my opening post. 

 

I have two file in my "project_root/Filter"-folder: filter.vhd and filter.bsf. 

 

The filter.bsf I had to copy in that folder, too, after I created it because Quartus put it into the "project_root" path. 

 

I really wonder why this is such a big problem for me because I thought if I put it into the library search path of my project everything should be fine . . .  

 

Maik 

--- Quote End ---  

 

 

Hi Maik, 

 

I have a project to my last post attached. Please have a look to it. Is that what you are doing ? 

 

Kind regards 

 

GPK
0 Kudos
Altera_Forum
Honored Contributor II
4,073 Views

Hi pletz, 

 

thanks for your help! 

 

It is almost what I am doing. Maybe I got my mistake. 

 

Youe have a folder "project_root/Register" that contains the register.v file of your module. 

However, your register.bsf file is in your "project_root". The "project_root" seems to be the destination if you create a symbol file from a hdl-file.  

 

I copied my .bsf-file from the "project_root" to "project_root/filter"-folder. Maybe this is the mistake. I must not copy the .bsf-file. 

 

I thought, i create a .bsf-File, copy it to the according hdl-file folder and can use these files from then on by setting the library path to this folder path. 

 

Later on I will check if it will work if I leave the .bsf file, where it was created. 

 

By the way, after I have added the filter.vhd file to my project, it compiles without error. But in the end this is not what I wanted. 

 

Maik
0 Kudos
Altera_Forum
Honored Contributor II
4,073 Views

 

--- Quote Start ---  

Hi pletz, 

 

thanks for your help! 

 

It is almost what I am doing. Maybe I got my mistake. 

 

Youe have a folder "project_root/Register" that contains the register.v file of your module. 

However, your register.bsf file is in your "project_root". The "project_root" seems to be the destination if you create a symbol file from a hdl-file.  

 

I copied my .bsf-file from the "project_root" to "project_root/filter"-folder. Maybe this is the mistake. I must not copy the .bsf-file. 

 

I thought, i create a .bsf-File, copy it to the according hdl-file folder and can use these files from then on by setting the library path to this folder path. 

 

Later on I will check if it will work if I leave the .bsf file, where it was created. 

 

By the way, after I have added the filter.vhd file to my project, it compiles without error. But in the end this is not what I wanted. 

 

Maik 

--- Quote End ---  

 

 

Hi MAik, 

 

It also works with the bsf not in the project root. I have my project modified. 

You have to change the path to the Libray, because Quartus uses an absolute path. 

I did not find a way to use a relative path. 

 

When you look into my project you will find a warning, where Quartus is complaining about missing the designfile register.v . It works because Quartus is looking in the specified Libraries in order to find the designfile. I think that is a weakness of Quartus, because you can get rid of this message only by adding the design to the project. 

 

Kind regards 

 

GPK
0 Kudos
Altera_Forum
Honored Contributor II
4,073 Views

Hi pletz, 

 

well you get the warning but in the end if you double click on the symbol, the design file is opened. 

 

In my case, Quartus gave me an error until I added the design file to the project. maybe I have done something else that was not correct, which I'm not able to figure out. 

 

In the end, the discussion with you helped my understanding for the library stuff. It proved that basically I know how to use the library functionallity. Unfortunatly I still don't know, what went wrong in my current case. 

 

Thanks again, 

Maik
0 Kudos
Altera_Forum
Honored Contributor II
4,073 Views

Hi, 

I get the same problem,then I find that reason is the file name was not same to the module name. 

maybe it will help to you. 

:cool:
0 Kudos
Reply