Comments (3)
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.
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.
This solution worked. Thansk @garankonic . closing issue.
from fusesoc.
Related Issues (20)
- Proposal: PIP installable edatools HOT 3
- Add option to never export specific files HOT 2
- Generator Cache doesn't work with --no-export HOT 2
- Builtin fusesoc parsing cores tree command HOT 1
- Feature request: ability to control arguments to Generators HOT 2
- Modelsim with Cocotb [new flow] HOT 2
- Question: Different cores from the same provider HOT 1
- Question: `env` section problem. HOT 3
- Invalid choice: 'migrate-capi1-to-capi2' HOT 1
- Setting vivado parameters using core file HOT 1
- Generator instance that depends on other cores HOT 8
- Bugs of flags only with numeric
- Librarys from git
- fusesoc is not working for tool=QuestaSim in Linux RedHat. HOT 2
- Reseting cache HOT 2
- script order with conditional statements
- Using multiple revisions of the same library in a project
- Is there any way to pass a *value* to an `Edatool`'s`tool_options` attribute via the command line HOT 2
- Fusesoc yosys target creates fusesoc error and a partially complete Makefile
- Variables in script arguments
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fusesoc.