fusesoc 2.4__tar.gz → 2.4.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fusesoc-2.4 → fusesoc-2.4.3}/.github/workflows/ci.yml +1 -1
- {fusesoc-2.4 → fusesoc-2.4.3}/.github/workflows/lint.yml +2 -5
- {fusesoc-2.4 → fusesoc-2.4.3}/NEWS +45 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/PKG-INFO +7 -5
- {fusesoc-2.4 → fusesoc-2.4.3}/README.md +2 -2
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/conf.py +5 -9
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/index.rst +1 -1
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/ref/capi1.rst +1 -1
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/ref/migrations.rst +1 -1
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/user/build_system/core_files.rst +3 -3
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/user/build_system/dependencies.rst +4 -4
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/user/build_system/flow_options.rst +1 -1
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/user/build_system/generators.rst +2 -2
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/user/build_system/index.rst +2 -0
- fusesoc-2.4.3/doc/source/user/build_system/mappings.rst +40 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/user/build_system/tool_options.rst +1 -1
- fusesoc-2.4.3/doc/source/user/build_system/virtual_cores.rst +8 -0
- fusesoc-2.4.3/doc/source/user/cli.rst +56 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/user/introduction.rst +1 -1
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/user/package_manager/index.rst +1 -1
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/capi2/core.py +9 -1
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/capi2/coredata.py +6 -10
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/capi2/json_schema.py +313 -246
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/config.py +2 -2
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/coremanager.py +165 -1
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/edalizer.py +69 -99
- fusesoc-2.4.3/fusesoc/filters/coredepsmk.py +23 -0
- fusesoc-2.4.3/fusesoc/filters/splitlib.py +23 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/fusesoc.py +12 -2
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/librarymanager.py +12 -5
- fusesoc-2.4.3/fusesoc/lockfile.py +162 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/main.py +85 -9
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/provider/git.py +3 -2
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/provider/github.py +8 -1
- fusesoc-2.4.3/fusesoc/provider/svn.py +31 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/provider/url.py +6 -1
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/version.py +9 -4
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/vlnv.py +46 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc.egg-info/PKG-INFO +7 -5
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc.egg-info/SOURCES.txt +29 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc.egg-info/requires.txt +2 -1
- {fusesoc-2.4 → fusesoc-2.4.3}/pyproject.toml +4 -3
- fusesoc-2.4.3/tests/capi2_cores/dependencies/top.core +18 -0
- fusesoc-2.4.3/tests/capi2_cores/dependencies/used-1.0.core +18 -0
- fusesoc-2.4.3/tests/capi2_cores/dependencies/used-1.1.core +18 -0
- fusesoc-2.4.3/tests/capi2_cores/mapping/a.core +8 -0
- fusesoc-2.4.3/tests/capi2_cores/mapping/b.core +6 -0
- fusesoc-2.4.3/tests/capi2_cores/mapping/c.core +9 -0
- fusesoc-2.4.3/tests/capi2_cores/mapping/d.core +10 -0
- fusesoc-2.4.3/tests/capi2_cores/mapping/e.core +6 -0
- fusesoc-2.4.3/tests/capi2_cores/mapping/f.core +6 -0
- fusesoc-2.4.3/tests/capi2_cores/mapping/map_rec.core +9 -0
- fusesoc-2.4.3/tests/capi2_cores/mapping/map_vers.core +8 -0
- fusesoc-2.4.3/tests/capi2_cores/mapping/top.core +21 -0
- fusesoc-2.4.3/tests/capi2_cores/misc/fileattrs.core +12 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/generate/generate.core +11 -1
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/generate/generators.core +5 -0
- fusesoc-2.4.3/tests/capi2_cores/virtual/top_conflict.core +22 -0
- fusesoc-2.4.3/tests/capi2_cores/virtual/top_non_deterministic.core +19 -0
- fusesoc-2.4.3/tests/cores/misc/svn.core +15 -0
- fusesoc-2.4.3/tests/lockfiles/dependencies-partial-1.0.lock.yml +2 -0
- fusesoc-2.4.3/tests/lockfiles/dependencies-partial.lock.yml +2 -0
- fusesoc-2.4.3/tests/lockfiles/dependencies.lock.yml +3 -0
- fusesoc-2.4.3/tests/lockfiles/duplicates.lock.yml +8 -0
- fusesoc-2.4.3/tests/lockfiles/works.lock.yml +7 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/test_capi2.py +22 -2
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/test_config.py +42 -1
- fusesoc-2.4.3/tests/test_coremanager.py +729 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/test_edalizer.py +82 -18
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/test_libraries.py +33 -0
- fusesoc-2.4.3/tests/test_lockfile.py +34 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/test_provider.py +13 -0
- fusesoc-2.4.3/tests/test_usecases.py +163 -0
- fusesoc-2.4.3/tests/test_vlnv.py +130 -0
- fusesoc-2.4/doc/source/user/cli.rst +0 -36
- fusesoc-2.4/tests/test_coremanager.py +0 -280
- fusesoc-2.4/tests/test_vlnv.py +0 -82
- {fusesoc-2.4 → fusesoc-2.4.3}/.editorconfig +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/.flake8 +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/.git-blame-ignore-revs +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/.gitignore +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/.pre-commit-config.yaml +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/.readthedocs.yml +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/LICENSE +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/dev-requirements.txt +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/requirements.txt +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/_static/theme_overrides.css +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/dev/devsetup.rst +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/dev/index.rst +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/ref/glossary.rst +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/ref/index.rst +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/user/build_system/eda_flows.rst +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/user/build_system/filters.rst +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/user/build_system/flags.rst +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/user/build_system/hooks.rst +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/user/build_system/vpi.rst +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/user/index.rst +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/user/installation.rst +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/user/knowledgebase.rst +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/user/optional_deps.png +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/doc/source/user/overview.rst +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/extras/bash-completion +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/capi2/coreparser.py +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/capi2/exprs.py +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/capi2/generator.py +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/capi2/inheritance.py +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/core.py +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/filters/autotype.py +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/filters/custom.py +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/filters/dot.py +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/parser/coreparser.py +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/provider/local.py +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/provider/opencores.py +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/provider/provider.py +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc/utils.py +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc.egg-info/dependency_links.txt +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc.egg-info/entry_points.txt +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/fusesoc.egg-info/top_level.txt +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/setup.cfg +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/deptree/child1.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/deptree/child2.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/deptree/child3.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/deptree/child4.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/deptree/generated_child_a.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/deptree/generated_child_a.py +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/deptree/root.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/files_out_of_hierarchy/bad.sv +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/files_out_of_hierarchy/subdir/files_out_of_hierarchy.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/files_out_of_hierarchy/subdir/good.sv +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/append.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/depends.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/dontpickthisfile +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/dummy.tcl +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/empty.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/f1 +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/f2 +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/f3 +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/f4 +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/files.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/filters.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/flags.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/flow.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/generate/file_cachetest +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/generate/testgen.py +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/hooks.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/parameters.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/scriptfile +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/subdir/dummy.extra +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/syntax_error.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/targets.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/toplevel.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/typecheck.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/uncachable.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/vhdlfile +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/vlogfile +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/vpi.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/misc/vpifile +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/override/1/basic.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/override/2/basic.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/parser/inheritance.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/parser/no_additional_properties.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/parser/with_additional_properties.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/providers/url_simple.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/providers/url_simple_with_user_agent.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/providers/url_tar.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/providers/url_zip.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/virtual/impl1.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/virtual/impl2.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/virtual/top_impl1.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/virtual/top_impl2.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/capi2_cores/virtual/user.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/adv_debug_sys/adv_debug_sys.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/atlys/atlys.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/atlys/data/atlys.ucf +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/atlys/data/dummy_backend_tcl_file.tcl +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/elf-loader/check_libelf.sh +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/elf-loader/elf-loader.c +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/elf-loader/elf-loader.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/elf-loader/vpi_wrapper.c +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/gpio/gpio.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/jtag_tap/jtag_tap-1.13.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/libstorage/libstorage-1.0.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/c3demo.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/c3demo.pcf +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/copytocore/copytocore.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/copytocore/dummy.tcl +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/copytocore/subdir/dummy.extra +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/dummy.tcl +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/dummy.xci +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/filetypes.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/ghdltest.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/gitcore.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/no_exe_script.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/nomain.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/opencorescore.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/paramtest.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/scripts/no_exe_script +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/scripts/post_build_script +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/scripts/post_run_script +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/scripts/pre_build_script +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/scripts/pre_run_script +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/scriptscore.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/misc/subdir/dummy.extra +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/mor1kx/mor1kx-3.1.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/mor1kx-arty/mor1kx-arty.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/mor1kx-arty/mor1kx-arty.system +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/mor1kx-generic/mor1kx-generic.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/mor1kx-generic/scripts/post_run_script +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/mor1kx-generic/scripts/pre_build_script +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/mor1kx-generic/scripts/pre_run_script +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/sockit/sockit.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/uart16550/uart16550-1.5.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/verilator_tb_utils/verilator_tb_utils.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/verilog-arbiter/verilog-arbiter-r1.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/verilog_utils/verilog_utils.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/verilog_utils/verilog_utils.vh +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/vga_lcd/vga_lcd.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/vlog_tb_utils/files/0001-testpatch.patch +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/vlog_tb_utils/vlog_tb_utils-1.1.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/wb_common/wb_common.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/wb_common/wb_common.v +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/wb_common/wb_common_params.v +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/wb_intercon/dummy_icarus.v +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/cores/wb_intercon/wb_intercon-1.0.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/test_capi2/generators.info +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/test_capi2/targets.info +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/test_common.py +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/test_exprs.py +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/test_ignored_dirs.py +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/test_provider/file.tar.gz +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/test_provider/file.v +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/test_provider/file.zip +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/test_provider/vlog_functions.v +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/userguide/blinky/blinky.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/userguide/blinky/data/nexys_video.xdc +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/userguide/blinky/rtl/blinky.sv +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/userguide/blinky/rtl/macros.svh +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/userguide/blinky/tb/blinky_tb.sv +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/userguide/dualblinky/data/nexys_video.xdc +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/userguide/dualblinky/dualblinky.core +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tests/userguide/dualblinky/rtl/dualblinky.sv +0 -0
- {fusesoc-2.4 → fusesoc-2.4.3}/tox.ini +0 -0
|
@@ -1,3 +1,48 @@
|
|
|
1
|
+
2.4.3 2024-04-14 Olof Kindgren <olof.kindgren@gmail.com>
|
|
2
|
+
======================================================
|
|
3
|
+
|
|
4
|
+
* Improve generator caching
|
|
5
|
+
* Check out missing core libraries on updates
|
|
6
|
+
* Added argcompletion
|
|
7
|
+
* Add lockfile support
|
|
8
|
+
* Add mapping support
|
|
9
|
+
* Expose core description files in EDAM
|
|
10
|
+
|
|
11
|
+
Contributors:
|
|
12
|
+
Erik Bånvik <erik.public@gmail.com>
|
|
13
|
+
Hugo McNally <hugo.mcnally@gmail.com>
|
|
14
|
+
Ivan <ivanmvig@gmail.com>
|
|
15
|
+
Julian Frimmel <julian@fri-me.de>
|
|
16
|
+
Nico Rumpeltin <nico@rumpeltin.de>
|
|
17
|
+
Olof Kindgren <olof.kindgren@gmail.com>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
2.4.2 2024-01-07 Olof Kindgren <olof.kindgren@gmail.com>
|
|
21
|
+
======================================================
|
|
22
|
+
|
|
23
|
+
* Support lists in file_input_parameters
|
|
24
|
+
* Add SVN provider
|
|
25
|
+
* Support file-specific defines
|
|
26
|
+
* Always build non-cached generators in work_root
|
|
27
|
+
* Add splitlib filter
|
|
28
|
+
* Warn about non-deterministic virtual cores
|
|
29
|
+
|
|
30
|
+
Contributors:
|
|
31
|
+
Erik Bånvik <erik.public@gmail.com>
|
|
32
|
+
James Wainwright <james.wainwright@lowrisc.org>
|
|
33
|
+
Mario Werner <nioshd@gmail.com>
|
|
34
|
+
Nazar Kazakov <nazar.kazakov@codethink.co.uk>
|
|
35
|
+
Nico Rumpeltin <nico@rumpeltin.de>
|
|
36
|
+
Olof Kindgren <olof.kindgren@gmail.com>
|
|
37
|
+
|
|
38
|
+
2.4.1 2024-10-07 Olof Kindgren <olof.kindgren@gmail.com>
|
|
39
|
+
======================================================
|
|
40
|
+
|
|
41
|
+
* Fix broken documentation builds
|
|
42
|
+
|
|
43
|
+
Contributors:
|
|
44
|
+
Olof Kindgren <olof.kindgren@gmail.com>
|
|
45
|
+
|
|
1
46
|
2.4 2024-10-02 Olof Kindgren <olof.kindgren@gmail.com>
|
|
2
47
|
======================================================
|
|
3
48
|
* Add conflict handling for virtual cores
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: fusesoc
|
|
3
|
-
Version: 2.4
|
|
3
|
+
Version: 2.4.3
|
|
4
4
|
Summary: Award-winnning package manager and build abstraction tool for HDL code
|
|
5
5
|
Author-email: Olof Kindgren <olof@award-winning.me>
|
|
6
6
|
Maintainer-email: Olof Kindgren <olof@award-winning.me>
|
|
@@ -20,9 +20,11 @@ License-File: LICENSE
|
|
|
20
20
|
Requires-Dist: edalize>=0.4.1
|
|
21
21
|
Requires-Dist: pyparsing>=2.3.1
|
|
22
22
|
Requires-Dist: pyyaml>=6.0
|
|
23
|
-
Requires-Dist: simplesat>=0.
|
|
23
|
+
Requires-Dist: simplesat>=0.9.1
|
|
24
24
|
Requires-Dist: fastjsonschema
|
|
25
25
|
Requires-Dist: jsonschema2md
|
|
26
|
+
Requires-Dist: argcomplete
|
|
27
|
+
Dynamic: license-file
|
|
26
28
|
|
|
27
29
|
# FuseSoC
|
|
28
30
|
|
|
@@ -61,7 +63,7 @@ full list of system requirements and installation instructions in the
|
|
|
61
63
|
### Quick start
|
|
62
64
|
|
|
63
65
|
To check if FuseSoC is working, and to get an initial feeling for how FuseSoC
|
|
64
|
-
works, you can try to simulate a simple hardware design from our core
|
|
66
|
+
works, you can try to simulate a simple hardware design from our core library.
|
|
65
67
|
|
|
66
68
|
First, create and enter an empty workspace
|
|
67
69
|
|
|
@@ -87,7 +89,7 @@ add e.g. `--tool=modelsim` or `--tool=xcelium` between `run` and `i2c`.
|
|
|
87
89
|
Did it work? Great! FuseSoC can be used to create FPGA images, perform
|
|
88
90
|
linting, manage your IP libraries or do formal verification as well.
|
|
89
91
|
Check out the [online documentation](https://fusesoc.readthedocs.io/en/stable/)
|
|
90
|
-
|
|
92
|
+
to learn more about creating your own core files and using
|
|
91
93
|
existing ones. If it didn't work, please get in touch (see below).
|
|
92
94
|
|
|
93
95
|
## Next steps
|
|
@@ -35,7 +35,7 @@ full list of system requirements and installation instructions in the
|
|
|
35
35
|
### Quick start
|
|
36
36
|
|
|
37
37
|
To check if FuseSoC is working, and to get an initial feeling for how FuseSoC
|
|
38
|
-
works, you can try to simulate a simple hardware design from our core
|
|
38
|
+
works, you can try to simulate a simple hardware design from our core library.
|
|
39
39
|
|
|
40
40
|
First, create and enter an empty workspace
|
|
41
41
|
|
|
@@ -61,7 +61,7 @@ add e.g. `--tool=modelsim` or `--tool=xcelium` between `run` and `i2c`.
|
|
|
61
61
|
Did it work? Great! FuseSoC can be used to create FPGA images, perform
|
|
62
62
|
linting, manage your IP libraries or do formal verification as well.
|
|
63
63
|
Check out the [online documentation](https://fusesoc.readthedocs.io/en/stable/)
|
|
64
|
-
|
|
64
|
+
to learn more about creating your own core files and using
|
|
65
65
|
existing ones. If it didn't work, please get in touch (see below).
|
|
66
66
|
|
|
67
67
|
## Next steps
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
import os
|
|
13
13
|
import sys
|
|
14
14
|
from datetime import datetime
|
|
15
|
-
from distutils.version import LooseVersion
|
|
16
15
|
|
|
17
16
|
import jsonschema2md
|
|
18
17
|
|
|
@@ -35,16 +34,13 @@ project = "FuseSoC"
|
|
|
35
34
|
copyright = f"2018-{datetime.now().year}, Olof Kindgren"
|
|
36
35
|
author = "Olof Kindgren"
|
|
37
36
|
|
|
37
|
+
from importlib.metadata import version as get_version
|
|
38
|
+
|
|
38
39
|
# The full version, including alpha/beta/rc tags.
|
|
39
|
-
|
|
40
|
-
from fusesoc.version import version as __version__
|
|
41
|
-
except ImportError:
|
|
42
|
-
__version__ = "unknown"
|
|
40
|
+
release: str = get_version("fusesoc")
|
|
43
41
|
|
|
44
|
-
release = __version__
|
|
45
42
|
# The short X.Y version.
|
|
46
|
-
|
|
47
|
-
version = f"{v_major}.{v_minor}"
|
|
43
|
+
version: str = ".".join(release.split(".")[:2])
|
|
48
44
|
|
|
49
45
|
# -- General configuration ---------------------------------------------------
|
|
50
46
|
|
|
@@ -67,7 +63,7 @@ extensions = [
|
|
|
67
63
|
"myst_parser",
|
|
68
64
|
]
|
|
69
65
|
|
|
70
|
-
intersphinx_mapping = {"https://docs.python.org/3"
|
|
66
|
+
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
|
|
71
67
|
|
|
72
68
|
|
|
73
69
|
# Add any paths that contain templates here, relative to this directory.
|
|
@@ -8,7 +8,7 @@ This documentation contains material for different audiences.
|
|
|
8
8
|
|
|
9
9
|
The :doc:`User Guide <user/index>` explains how to get started with FuseSoC, starting from the installation.
|
|
10
10
|
|
|
11
|
-
The :doc:`Reference Guide <ref/index>` provides a
|
|
11
|
+
The :doc:`Reference Guide <ref/index>` provides a detailed description of all file formats and APIs.
|
|
12
12
|
|
|
13
13
|
The :doc:`Developer's Guide <dev/index>` is aimed at developers of FuseSoC itself.
|
|
14
14
|
It explains how to set up a development environment, how the source code is structured, and how patches and bug reports can be submitted to the project.
|
|
@@ -278,7 +278,7 @@ Why
|
|
|
278
278
|
---
|
|
279
279
|
As an aid for scripts executed during the build process, a number of environment variables were defined. Unfortunately this was done without too much thought and as time moved on, some of these turned out to be a maintenance burden without bringing much benefit, and in some cases without ever being used.
|
|
280
280
|
|
|
281
|
-
At the same time, the introduction of VLNV and dependency ranges has introduced non-determinism in where the output of a build ends up. For these reasons, it was determined to redefine the rarely used `build_root` variable to point to the the directory containing the work root and exported files. A `--build-root` command-line switch is introduced to
|
|
281
|
+
At the same time, the introduction of VLNV and dependency ranges has introduced non-determinism in where the output of a build ends up. For these reasons, it was determined to redefine the rarely used `build_root` variable to point to the the directory containing the work root and exported files. A `--build-root` command-line switch is introduced to explicitly set a build_root. Setting `build_root` in `fusesoc.conf` will keep working the same way as before, but the command-line switch takes precedence. CAPI1 cores will no longer export the `BUILD_ROOT` environment variable.
|
|
282
282
|
|
|
283
283
|
These changes affects the following cases:
|
|
284
284
|
|
|
@@ -165,12 +165,12 @@ For each named file set, several keys are supported:
|
|
|
165
165
|
Source files
|
|
166
166
|
~~~~~~~~~~~~
|
|
167
167
|
|
|
168
|
-
|
|
168
|
+
For local cores, source files are resolved relative to the location of the core file and must be stored in the same directory as the core file, or in a subdirectory of it. For remote cores, file names are typically relative to the repository or archive root.
|
|
169
169
|
Source file names cannot be absolute paths, or start with ``../``.
|
|
170
170
|
|
|
171
|
-
Optionally, source files can have attributes; the file ``macros.
|
|
171
|
+
Optionally, source files can have attributes; the file ``macros.svh`` is an example of that.
|
|
172
172
|
When specifying attributes, end the file name with a colon (``:``), and specify attributes as key-value pairs below it.
|
|
173
|
-
(Alternatively, the equivalent short form syntax can be used, e.g. ``macros.
|
|
173
|
+
(Alternatively, the equivalent short form syntax can be used, e.g. ``macros.svh: {is_include_file: true}``.)
|
|
174
174
|
|
|
175
175
|
The most common attributes are:
|
|
176
176
|
|
|
@@ -12,7 +12,7 @@ This section explains how dependencies are specified, how they are resolved by F
|
|
|
12
12
|
A dependency example: DualBlinky
|
|
13
13
|
--------------------------------
|
|
14
14
|
|
|
15
|
-
We introduced the basic FuseSoC features by creating
|
|
15
|
+
We introduced the basic FuseSoC features by creating a reusable core called Blinky.
|
|
16
16
|
To illustrate the concept of dependencies in FuseSoC we employ another example: DualBlinky, the "dual-core" version of Blinky.
|
|
17
17
|
Again, all source code is available in the `FuseSoC source tree <https://github.com/olofk/fusesoc>`_ in the ``tests/userguide/dualblinky`` directory.
|
|
18
18
|
|
|
@@ -71,14 +71,14 @@ The following rules apply.
|
|
|
71
71
|
|
|
72
72
|
* Files from dependencies are inserted into the file list before the files in the file set where the dependency is declared.
|
|
73
73
|
* The order in which dependencies are listed in the ``depend`` section does not imply any ordering.
|
|
74
|
-
That is,
|
|
74
|
+
That is, specifying ``depend: [A, B]`` does not guarantee that files from core ``A`` are included before the ones from core ``B``.
|
|
75
75
|
(If such an order is desired, make core ``B`` depend on ``A``.)
|
|
76
76
|
|
|
77
77
|
What happens if a dependency is specified?
|
|
78
78
|
------------------------------------------
|
|
79
79
|
|
|
80
80
|
Declaring a dependency includes the dependent core in the build.
|
|
81
|
-
More
|
|
81
|
+
More specifically, the following sections specified in the ``default`` target of the dependent core are included:
|
|
82
82
|
|
|
83
83
|
* ``filesets``: File sets to include.
|
|
84
84
|
* ``hooks``: A list of hooks to execute.
|
|
@@ -94,7 +94,7 @@ Version constraints
|
|
|
94
94
|
|
|
95
95
|
Version constraints specify which version of a dependent core can be used, and which versions are incompatible.
|
|
96
96
|
|
|
97
|
-
Within a :term:`core file`, version constraints are expressed by prefixing a core name with a version
|
|
97
|
+
Within a :term:`core file`, version constraints are expressed by prefixing a core name with a version comparison operator.
|
|
98
98
|
The following version comparison operators are available.
|
|
99
99
|
|
|
100
100
|
.. list-table:: Version comparison operators
|
|
@@ -11,7 +11,7 @@ At the same time, a certain level of tool-specific configurability is required t
|
|
|
11
11
|
|
|
12
12
|
There are two categories of options available for the Edalize flows. *Flow options* that affect how the tools are chained together (the flow graph) and *tool options* for the individual tools to be run as part of the flow. This means that since the flow options influence which tools that will be run, some tool options only become available for certain combinations of flow options.
|
|
13
13
|
|
|
14
|
-
Only one flow can be defined for a target, but the flow
|
|
14
|
+
Only one flow can be defined for a target, but the flow itself can be configured in different ways. The example below shows how the `test` target selects and configures a flow. The `flow` key selects the flow itself. The selected `sim` flow has a *flow option* called `tool` that decides which simulator to use. `iverilog_options` and `vlog_options` are tool options for Icarus Verilog and Siemens QuestaSim/ModelSim and will be passed to the appropriate tool if it is present in the flow graph.
|
|
15
15
|
|
|
16
16
|
This setup selects icarus as the tool, which means the `vlog_options` will not be used. However, all *flow options* and *tool options* are also automatically available on the command-line, which means that passing `--tool=modelsim` as a backend parameter will override the tool setting from the target. The same can be done for the two tool options, with the difference that for flow or tool option that are lists, any additional values passed on the command-line will append rather than replace the values in the core description file.
|
|
17
17
|
|
|
@@ -135,7 +135,7 @@ The final piece of the generators machinery is to run a generator with some spec
|
|
|
135
135
|
offset: 0xf0000000
|
|
136
136
|
size: 1024
|
|
137
137
|
|
|
138
|
-
The above core file snippet will register a parametrized generator instance with the name wb_intercon. It will use the generator called `wb_intercon_gen` which FuseSoC has previously found in the
|
|
138
|
+
The above core file snippet will register a parametrized generator instance with the name wb_intercon. It will use the generator called `wb_intercon_gen` which FuseSoC has previously found in the dependency tree. Everything listed under the `parameters` key is instance-specific configuration to be sent to the generator.
|
|
139
139
|
|
|
140
140
|
Just registering a generate section will not cause the generator to be invoked. It must also be listed in the target and the generator to be used must be in the dependency tree. The following snippet adds the parameterized generator to the `default` target and adds an explicit dependency on the core that contains the generator. As CAPI2 cores only allow filesets to have dependencies, an empty fileset for this purpose must be created
|
|
141
141
|
|
|
@@ -169,7 +169,7 @@ Generator Cache
|
|
|
169
169
|
---------------
|
|
170
170
|
Instead of fusesoc rerunning a generator each time and producing the same result it is possible to configure fusesoc to cache generator output and try to detect if a new run would produce the same output. Since there is no generic way of doing this that will fit all generators a couple of different methods for caching and detecting changes are available.
|
|
171
171
|
|
|
172
|
-
The `generators` option `cache_type` is used for configuring type of caching. If set to `none` (or if option is omitted) no caching will be used. If set to `input` fusesoc will calculate a SHA256 hash of the generator input yaml file data and use this hash for detecting if something has changed and a rerun would be needed. This would happen if some data in the core file `generate` section, for instance `
|
|
172
|
+
The `generators` option `cache_type` is used for configuring type of caching. If set to `none` (or if option is omitted) no caching will be used. If set to `input` fusesoc will calculate a SHA256 hash of the generator input yaml file data and use this hash for detecting if something has changed and a rerun would be needed. This would happen if some data in the core file `generate` section, for instance `parameters`, has changed.
|
|
173
173
|
|
|
174
174
|
If `cache_type` is set to `generator` fusesoc will pass the responsibility for detecting if the previous run to the generator is still up to date. In this mode the generator will always be called and the output directory will be saved.
|
|
175
175
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
.. _ug_build_system_mappings:
|
|
2
|
+
|
|
3
|
+
Mappings: Replace cores in the dependency tree
|
|
4
|
+
==============================================
|
|
5
|
+
|
|
6
|
+
Mappings allow a user of a core to substitute dependencies of the core with other cores without having to edit any of the core or it's dependencies files.
|
|
7
|
+
An example use case is making use of an existing core but substituting one of it's dependencies with a version that some desired changes (e.g. bug fixes).
|
|
8
|
+
|
|
9
|
+
If you are looking to provide a core with multiple implementations, virtual cores is the recommended and more semantic solution.
|
|
10
|
+
See :ref:`ug_build_system_virtual_cores` for more information on virtual cores.
|
|
11
|
+
Note: virtual cores can also be substituted in mappings.
|
|
12
|
+
|
|
13
|
+
Declaring mappings
|
|
14
|
+
------------------
|
|
15
|
+
|
|
16
|
+
Each core file can have one mapping.
|
|
17
|
+
An example mapping core file:
|
|
18
|
+
|
|
19
|
+
.. code:: yaml
|
|
20
|
+
|
|
21
|
+
name: "local:map:override_fpu_and_fifo"
|
|
22
|
+
mapping:
|
|
23
|
+
"vendor:lib:fpu": "local:lib:fpu"
|
|
24
|
+
"vendor:lib:fifo": "local:lib:fifo"
|
|
25
|
+
|
|
26
|
+
The example above is a core file with only a mapping property, but any core file may contain a mapping in addition to other properties (e.g. filesets, targets & generators).
|
|
27
|
+
|
|
28
|
+
Applying mappings
|
|
29
|
+
-----------------
|
|
30
|
+
|
|
31
|
+
To apply a mapping, provide the VLNV of the core file that contains the desired
|
|
32
|
+
mapping with `fusesoc run`'s `--mapping` argument. Multiple mappings may be
|
|
33
|
+
provided as shown below.
|
|
34
|
+
|
|
35
|
+
.. code:: sh
|
|
36
|
+
|
|
37
|
+
fusesoc run \
|
|
38
|
+
--mapping local:map:override_fpu_and_fifo \
|
|
39
|
+
--mapping local:map:another_mapping \
|
|
40
|
+
vendor:top:main
|
|
@@ -26,7 +26,7 @@ Typically, these keys are called ``BINARYNAME_options``, and they take a list of
|
|
|
26
26
|
The example below shows how tool options for Icarus Verilog (``icarus``) and Mentor ModelSim (``modelsim``) are set.
|
|
27
27
|
|
|
28
28
|
* The ``iverilog`` binary will be called with the ``-g2012`` command-line argument, indicating that SystemVerilog 2012 support should be enabled.
|
|
29
|
-
*
|
|
29
|
+
* Similarly, for ModelSim the argument ``-timescale=1ns/1ns`` will be passed to the ``vlog`` binary, which elaborates the design.
|
|
30
30
|
|
|
31
31
|
.. code-block:: yaml
|
|
32
32
|
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.. _ug_cli:
|
|
2
|
+
|
|
3
|
+
***************
|
|
4
|
+
Running FuseSoC
|
|
5
|
+
***************
|
|
6
|
+
|
|
7
|
+
FuseSoC is a command-line tool; this section explains how to use it.
|
|
8
|
+
The following content is aimed at users who already have a hardware design which uses FuseSoC.
|
|
9
|
+
|
|
10
|
+
Build a design
|
|
11
|
+
==============
|
|
12
|
+
|
|
13
|
+
The ``fusesoc run`` group of commands is used to setup, build, and (if possible) run a design.
|
|
14
|
+
The exact actions taken by the individual steps depend on the toolflow.
|
|
15
|
+
|
|
16
|
+
::
|
|
17
|
+
|
|
18
|
+
usage: fusesoc run [-h] [--no-export] [--build-root BUILD_ROOT] [--setup] [--build] [--run] [--target TARGET] [--tool TOOL] [--flag FLAG] [--system-name SYSTEM_NAME] system ...
|
|
19
|
+
|
|
20
|
+
positional arguments:
|
|
21
|
+
system Select a system to operate on
|
|
22
|
+
backendargs arguments to be sent to backend
|
|
23
|
+
|
|
24
|
+
optional arguments:
|
|
25
|
+
-h, --help show this help message and exit
|
|
26
|
+
--no-export Reference source files from their current location instead of exporting to a build tree
|
|
27
|
+
--build-root BUILD_ROOT
|
|
28
|
+
Output directory for build. Defaults to build/$VLNV
|
|
29
|
+
--setup Execute setup stage
|
|
30
|
+
--build Execute build stage
|
|
31
|
+
--run Execute run stage
|
|
32
|
+
--target TARGET Override default target
|
|
33
|
+
--tool TOOL Override default tool for target
|
|
34
|
+
--flag FLAG Set custom use flags. Can be specified multiple times
|
|
35
|
+
--system-name SYSTEM_NAME
|
|
36
|
+
Override default VLNV name for system
|
|
37
|
+
|
|
38
|
+
When FuseSoC is invoked with the run command, it will create an empty working directory called `work_root` internally, where it by default will create all project files, copy all used source files, build and optionally run the project.
|
|
39
|
+
|
|
40
|
+
Setup, build and run
|
|
41
|
+
--------------------
|
|
42
|
+
|
|
43
|
+
The process of running EDA tools is divided into three steps called *setup*, *build* and *run*. The *setup* stage creates the working directory and all project files. The *build* stage runs one or more EDA tools to build an artifact, e.g. a GDS, simulation model or FPGA image. The *run* stage is only implemented for some tool flows, such as simulation flows where it runs the simulation. Some FPGA flows uses the *run* stage to program an FPGA device.
|
|
44
|
+
|
|
45
|
+
Normally FuseSoC runs all three stages, but if the `--setup` flag is added, it will stop after the setup stage and if the `--build` flag is set it will stop after the build stage. Many of the newer backends don't need these flags and will instead only run setup or build when input files or options have changed.
|
|
46
|
+
|
|
47
|
+
Work root
|
|
48
|
+
---------
|
|
49
|
+
`work_root` is a private working directory and should not be shared between different builds. It is however perfectly fine to reuse the working directory for e.g. running several simulations using different runtime options as long as the build-time options and source files are not modified.
|
|
50
|
+
|
|
51
|
+
By default, FuseSoC will use `build/<sanitized VLNV>/<target>`, where `<sanitized VLNV>` is the top-level VLNV with underscore instead of colon as the separator. For the Flow API, `<target>` is just the name of the target in the core description file, e.g. `sim`. For the old Tool API, it is a combination of target name and the tool backend, e.g. `sim-verilator`. The work root directory can be changed with the `--work-root` option.
|
|
52
|
+
|
|
53
|
+
Exporting source files
|
|
54
|
+
----------------------
|
|
55
|
+
|
|
56
|
+
The standard behavior for FuseSoC is to copy all used source files into a subdirectory of the work root. This has three advantages. The work root is self-contained with all the source files and can be copied elsewhere for archival purposes or to build on another machine. No stray files are picked up by mistake from the original source directories. It is always possible to know from exactly which files a build was created. Despite this, there are situations where it is preferable to reference the source files from their original location. This can be done by adding the `--no-export` flag.
|
|
@@ -20,7 +20,7 @@ Its main purpose is to increase reuse of IP (Intellectual Property) cores and be
|
|
|
20
20
|
|
|
21
21
|
- set up continuous integration
|
|
22
22
|
|
|
23
|
-
**FuseSoC is non-intrusive** Most existing designs
|
|
23
|
+
**FuseSoC is non-intrusive** Most existing designs don't need any changes to work with FuseSoC. Any FuseSoC-specific patches can be applied on the fly during implementation or simulation
|
|
24
24
|
|
|
25
25
|
**FuseSoC is modular** It can be used as an end-to-end flow, to create initial project files for an EDA tool or integrate with your custom workflow
|
|
26
26
|
|
|
@@ -54,7 +54,7 @@ FuseSoC is launched. The library locations specified from the
|
|
|
54
54
|
command-line will be parsed after those in ``fusesoc.conf``
|
|
55
55
|
|
|
56
56
|
For each library location, FuseSoC will recursively search for files
|
|
57
|
-
with a *.core* suffix. Each of these files will be parsed and
|
|
57
|
+
with a *.core* suffix. Each of these files will be parsed and added to
|
|
58
58
|
the in-memory FuseSoC database if they are valid ``.core`` files.
|
|
59
59
|
|
|
60
60
|
Several ``.core`` files can reside in the same directory and they will all be parsed.
|
|
@@ -10,6 +10,8 @@ import os
|
|
|
10
10
|
import shutil
|
|
11
11
|
import warnings
|
|
12
12
|
from filecmp import cmp
|
|
13
|
+
from types import MappingProxyType
|
|
14
|
+
from typing import Mapping, Optional
|
|
13
15
|
|
|
14
16
|
from fusesoc import utils
|
|
15
17
|
from fusesoc.capi2.coredata import CoreData
|
|
@@ -93,7 +95,8 @@ class Core:
|
|
|
93
95
|
|
|
94
96
|
dirs = list(set(map(os.path.dirname, src_files)))
|
|
95
97
|
for d in dirs:
|
|
96
|
-
os.
|
|
98
|
+
if not os.path.isabs(d):
|
|
99
|
+
os.makedirs(os.path.join(dst_dir, d), exist_ok=True)
|
|
97
100
|
|
|
98
101
|
for f in src_files:
|
|
99
102
|
if f.startswith(".."):
|
|
@@ -274,6 +277,7 @@ class Core:
|
|
|
274
277
|
if (type(v) == bool and v == True)
|
|
275
278
|
or (type(v) == str and len(v)) > 0
|
|
276
279
|
or (type(v) == list and len(v)) > 0
|
|
280
|
+
or (type(v) == dict and len(v)) > 0
|
|
277
281
|
}
|
|
278
282
|
|
|
279
283
|
_src_files.append(attributes)
|
|
@@ -628,3 +632,7 @@ Targets:
|
|
|
628
632
|
|
|
629
633
|
def get_description(self):
|
|
630
634
|
return self._coredata.get_description()
|
|
635
|
+
|
|
636
|
+
@property
|
|
637
|
+
def mapping(self) -> Optional[Mapping[str, str]]:
|
|
638
|
+
return MappingProxyType(self._coredata.get("mapping", {}))
|
|
@@ -43,22 +43,18 @@ class CoreData:
|
|
|
43
43
|
|
|
44
44
|
if type(data) == list:
|
|
45
45
|
remove = []
|
|
46
|
-
|
|
47
|
-
for i in data:
|
|
46
|
+
for idx, i in enumerate(data):
|
|
48
47
|
if type(i) == str and len(i) > 0 and "?" in i:
|
|
49
48
|
expanded = Exprs(i).expand(flags)
|
|
50
49
|
if i != expanded:
|
|
51
|
-
remove.append(i)
|
|
52
50
|
if len(expanded) > 0:
|
|
53
|
-
|
|
51
|
+
data[idx] = expanded
|
|
52
|
+
else:
|
|
53
|
+
remove.append(idx)
|
|
54
54
|
elif type(i) == dict or type(i) == list:
|
|
55
55
|
self._expand_use(i, flags)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
data.remove(i)
|
|
59
|
-
|
|
60
|
-
for i in append:
|
|
61
|
-
data.append(i)
|
|
56
|
+
for i in reversed(remove):
|
|
57
|
+
data.pop(i)
|
|
62
58
|
|
|
63
59
|
def _append_lists(self, data):
|
|
64
60
|
if type(data) == list:
|