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

Generate Bender.yml file #1

Closed
jagjordi opened this issue Feb 11, 2025 · 2 comments
Closed

Generate Bender.yml file #1

jagjordi opened this issue Feb 11, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@jagjordi
Copy link
Member

Generate a Bender.yml file populated with the SV files needed for synthesis.
Template:

package:
  name: {{ name }}
  authors: ["SiLago team <[email protected]>"]

%{ if dependencies %}
dependencies:
  {% for dep in dependencies %}
  {% if dep.type == "git" %}
  {{ dep.name }}: \{ git: "{{ dep.git_url}}", rev: "{{ dep.git_rev }}" \}
  {% else %}
  {{ dep.name }}: \{ path: "{{ dep.path }}" \}
  {% endif %}
  {% endfor %}
{% endif %}

sources:
  {% for source in sources %}
  - {{ source }}
  {% endfor %}
@jagjordi jagjordi added the enhancement New feature or request label Feb 11, 2025
@jagjordi
Copy link
Member Author

The list of sources should exclude the testbench file (not synthesizable).
It can be conditionally included as a target sim in bender

sources:
  {% for source in sources %}
  - {{ source }}
  {% endfor %}
  {% if testbench %}
  - target: sim
    files: 
    {% for tb in testbench_files %}
    - {{ tb }}
    {% endfor %}
  {% endif %}

@herenvarno
Copy link
Member

Done

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

No branches or pull requests

2 participants