Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using dependencies with file sets #666

Open
JinoRomano opened this issue Jan 15, 2024 · 1 comment
Open

Using dependencies with file sets #666

JinoRomano opened this issue Jan 15, 2024 · 1 comment

Comments

@JinoRomano
Copy link

Hi,

i am using FuseSoc to try and establish a way for managing all of my different kinds of files sets used in my design.
i am currently trying to build a file list that contains a TOP with an analog block inside which includes a behavioral model while simulating the design and needs to be removed when going to implementation (as it is read as a .lib file in synth).

i tried to follow the instructions with an rtl file set + a tb file set and indeed when working on the block level of the analog block it seems to be working fine.

core - analog_block

rtl_file_set
files:
- a.v
- b.v
- c.v

tb_file_set
files:

  • BM.v

core - TOP_block

rtl_file_set
depend:
- analog_block:core:1.0.0
files:
- x.v
- y.v

but when i try to build the TOP using the same target - "sim" i do not get the behavioral model file in the list.

i tried adding an empty tb file set in the TOP core file as well despite it being redundant but it did not help.
i am using Fusesoc latest version.

is there a way to use the different file sets to be taken into account when using dependencies?
otherwise what is the purpose of these filesets if it can't be used hierarchically?

if anyone else encountered this problem and has a way to bypass / solve it please share.

thanks!

ana_block.core.txt
top_block.core.txt

@olofk
Copy link
Owner

olofk commented Jan 22, 2024

There are several ways around this, but the easiest would be to split out the behavioral model into a separate core.
I added an example to the documentation, which I hope should help illustrate the solution in more detail https://fusesoc.readthedocs.io/en/latest/user/knowledgebase.html#dependency-tree-for-a-core-with-optional-components Let me know if this is of any help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants