fix: add missing deps and sources in Bender.yml - #155
Conversation
|
Hi @ricted98, Thanks for your proposal. AXI-related modules wereintentionally kept out of the manifests (Flist and Bender.yaml) of this repository because they are not instantiated directly in the HPDcache. AXI-related modules are instantiated at the core or SoC level if AXI is the implemented NoC interface. My feeling was then that those files should be referred to in the core's or SoC's manifests. |
|
Hi @cfuguet, thanks for the feedback. I would actually argue in favor of adding them in this repo's manifest, as I see two potential pitfalls:
As a more elegant solution, what if we add a target to make their inclusion optional? For example, Bender would only include them if |
|
@ricted98 I like your proposal of adding a specific target. I prefer this. If AXI is not used, no need to bring that dependency. Let's make it shorter: what about --axi ? Thanks ! |
|
Thanks! I added a commit showing how we can use the |
|
Yes, this looks good. I did not know that targets passed on the top level project are global (propagated to all dependencies). In this case, it is indeed a good idea to prefix with hpdcache_. Anyway, in the CVA6 project, as the most common case is to use the AXI interface of the HPDcache, we could use the pass_targets configuration option to pass the hpdcache_axi target to the HPDcache dependency in the cva6/bender.yml. This way, we do not need to add the -t hpdcache_axi option explicitly when calling bender from the CVA6 project. Right? |
|
Yes indeed! I honestly forgot about that option, as it was likely added recently and I still use it rarely. It would nevertheless be a perfect fit for this case. I tried on my local clone of Cheshire + CVA6 (master_candidate) + HPDCache and it works. |
No description provided.