Clear all

[Solved] Problem with rvfpgasoc


Active Member
Joined: 3 years ago
Posts: 3
Topic starter  

I have two students in my computer architecture class that are attempting to run  the rvFPGASOC project and have run into some errors. They followed the directions in the lab1 file exactly, and when they attempt to build the bitstream they get the errors. They are using Vivado 2022.1 executing on windows. I observed them attempting the install via a zoom session, and i believe they followed the documentation exactly.



I am including the snapshots they sent me and a message from vivado:

[filemgmt 56-585] Internal Data Exception: HDDASrcFileProxy::HDDASrcFileProxy: Given Source File 'C:/computerArchitecture/RVfpgaSoC/Labs/LabResources/Lab1/src/SweRVolfSoC/SweRVEh1CoreComplex/include/global.h' needs to be addded to the project in order to use it as an RTL module

Please let me know if you have seen these error before. 


Nick Beser


Topic Tags
Member Admin
Joined: 3 years ago
Posts: 4

Hi Nick,


Thank you for reaching out.


I notice you are trying to run RVfpga SoC on Vivado 2022.1
RVfpga SoC is designed for Vivado 2019.2


Whenever Vivado does significant upgrades, there are always subtleties and steps that don't work that well.

We recommend trying Vivado 2019.2 and see how that goes
That should work ok.

Let me know if you still face issues.



Active Member
Joined: 3 years ago
Posts: 3
Topic starter  

@zubairlk I recommended to my students that they try 2019.2. They also tried lab 3 which used fusesoc. They ran into the following weird error:


Traceback (most recent call last):

  File "/usr/local/bin/fusesoc", line 8, in <module>


  File "/usr/local/lib/python3.8/dist-packages/fusesoc/", line 766, in main


  File "/usr/local/lib/python3.8/dist-packages/fusesoc/", line 756, in fusesoc

    args.func(cm, args)

  File "/usr/local/lib/python3.8/dist-packages/fusesoc/", line 293, in run


  File "/usr/local/lib/python3.8/dist-packages/fusesoc/", line 415, in run_backend

    edam =

  File "/usr/local/lib/python3.8/dist-packages/fusesoc/", line 96, in run


  File "/usr/local/lib/python3.8/dist-packages/fusesoc/", line 119, in setup_cores

    for core in self.cores:

  File "/usr/local/lib/python3.8/dist-packages/fusesoc/", line 71, in cores

    return self.resolved_cores

  File "/usr/local/lib/python3.8/dist-packages/fusesoc/", line 77, in resolved_cores

    return self.core_manager.get_depends(self.toplevel, self.flags)

  File "/usr/local/lib/python3.8/dist-packages/fusesoc/", line 362, in get_depends

    deps = self.db.solve(, flags)

  File "/usr/local/lib/python3.8/dist-packages/fusesoc/", line 114, in solve

    return self._solve(top_core, flags)

  File "/usr/local/lib/python3.8/dist-packages/fusesoc/", line 161, in _solve

    _depends = core.get_depends(_flags)

  File "/usr/local/lib/python3.8/dist-packages/fusesoc/capi2/", line 251, in get_depends

    for fs in self._get_filesets(flags):

  File "/usr/local/lib/python3.8/dist-packages/fusesoc/capi2/", line 606, in _get_filesets

    cd_filesets = self._coredata.get_filesets(flags)

  File "/usr/local/lib/python3.8/dist-packages/fusesoc/capi2/", line 160, in get_filesets

    self._setup_fileset(fs, flags)

  File "/usr/local/lib/python3.8/dist-packages/fusesoc/capi2/", line 132, in _setup_fileset

    self._expand_use(fs, flags)

  File "/usr/local/lib/python3.8/dist-packages/fusesoc/capi2/", line 37, in _expand_use

    self._expand_use(data[k], flags)

  File "/usr/local/lib/python3.8/dist-packages/fusesoc/capi2/", line 55, in _expand_use

    self._expand_use(i, flags)

  File "/usr/local/lib/python3.8/dist-packages/fusesoc/capi2/", line 29, in _expand_use

    expanded_k = Exprs(k).expand(flags)

  File "/usr/local/lib/python3.8/dist-packages/fusesoc/capi2/", line 154, in __init__

    self.ast = _parse(string)

  File "/usr/local/lib/python3.8/dist-packages/fusesoc/capi2/", line 143, in _parse

    raise ValueError(

ValueError: Invalid syntax for string: Expected end of text, found '('  (at char 1), (line:1, col:2). Parsed text was '$(XILINX_VIVADO)/data/verilog/src/glbl.v'.


One of their classmates was able to use a newer version of vivado with fusesoc to complete the linux lab. Any ideas about the error?

Member Admin
Joined: 3 years ago
Posts: 4

Found a subtle issue which we'll fix.


Can you please either temporarily downgrade FuseSoC to version 2.0 with "pip install --upgrade fusesoc==2.0"

or remove the problematic line (this one P">  ).

It is not used in this context and can therefore be safely removed.




New Member
Joined: 2 years ago
Posts: 2

@ndbeser I have confrimed this is an issue with FuseSoC 2.2. I just released FuseSoC 2.2.1 to fix this issue. Please upgrade with "pip install -U fusesoc". Hope this helps