Coder Social home page Coder Social logo

fusesoc export xsa file about fusesoc HOT 3 CLOSED

isomoye avatar isomoye commented on June 20, 2024 1
fusesoc export xsa file

from fusesoc.

Comments (3)

garankonic avatar garankonic commented on June 20, 2024 1

In the top-level project, you can create a dedicated target which build xsa (without bitstream):

filesets:
   xsa:
        files:
          - scripts/export_xsa.tcl: { file_type: tclSource }
targets:
    xsa_target:
        toplevel: your_toplevel
        filesets:
          - xsa
        flow: vivado
        flow_options:
          part: your_part
          source_mgmt_mode: All
          jobs: 1

In this way XSA script will be the last one to execute. The script itself looks as follows:

# switches to vhdl top-level
set_property target_language VHDL [current_project]
# generate output products
generate_target all [get_files *.bd]
# export xsa
write_hw_platform -fixed -force -file file.xsa

from fusesoc.

olofk avatar olofk commented on June 20, 2024

I think the easiest way is to add some tcl script that does the xsa export. You can add custom tcl files by setting file_type : tclSource. Now, the trick is to make sure the tcl script is executed at the right time. I'm not familiar with xsa in particular, but generally speaking there are two options here. Either, it's just a property that you set for the project, and then you will get your xsa file, or it's an extra command that needs to be run at the right point. For the latter, which I suspect is the case here, you would need to define a script hook in your custom TCL script so that Vivado will pick it up at the right time. Let me see if I can find some example of that.

from fusesoc.

isomoye avatar isomoye commented on June 20, 2024

This solution worked. Thansk @garankonic . closing issue.

from fusesoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.