Comments (10)
from cores-veer-eh1.
I removed this line and changed the one with program.hex
:
diff --git a/swerv.core b/swerv.core
index b6f986e..ef8c41e 100644
--- a/swerv.core
+++ b/swerv.core
@@ -58,8 +58,7 @@ filesets:
mem_init:
files:
- - testbench/hex/data.hex : {copyto : data.hex}
- - testbench/hex/program.hex : {copyto : program.hex}
+ - tools/program.hex : {copyto : program.hex}
file_type : user
tb:
and I got the fusesoc error:
INFO: Preparing chipsalliance.org:cores:SweRV_EH1:1.8
INFO: Generating chipsalliance.org:cores:SweRV_EH1-swerv_ahb_config:1.8
INFO: Wrote dependency graph to path/Documents/sv-tests/build/chipsalliance.org_cores_SweRV_EH1_1.8/sim-verilator/chipsalliance.org_cores_SweRV_EH1_1.8.deps-after-generators.dot
INFO: Wrote Makefile fragment to path/Documents/sv-tests/build/chipsalliance.org_cores_SweRV_EH1_1.8/sim-verilator/core-deps.mk
INFO: Setting up project
INFO: Building simulation model
Traceback (most recent call last):
File "path/.local/bin/fusesoc", line 10, in <module>
sys.exit(main())
File "path/.local/lib/python3.7/site-packages/fusesoc/main.py", line 835, in main
fusesoc(args)
File "path/.local/lib/python3.7/site-packages/fusesoc/main.py", line 825, in fusesoc
args.func(cm, args)
File "path/.local/lib/python3.7/site-packages/fusesoc/main.py", line 412, in run
args.verbose,
File "path/.local/lib/python3.7/site-packages/fusesoc/main.py", line 515, in run_backend
backend.build()
File "path/.local/lib/python3.7/site-packages/edalize/edatool.py", line 187, in build
self.build_main()
File "path/.local/lib/python3.7/site-packages/edalize/verilator.py", line 166, in build_main
self._run_tool('make', args, quiet=True)
File "path/.local/lib/python3.7/site-packages/edalize/edatool.py", line 390, in _run_tool
check=True)
File "/usr/lib/python3.7/subprocess.py", line 467, in run
raise ValueError('stdout and stderr arguments may not be used '
ValueError: stdout and stderr arguments may not be used with capture_output.
I ran it after make program.hex
in tools
dir.
from cores-veer-eh1.
Hi @RRozak. Thank you for reporting. I fixed this and made a PR now #109
The final Python error you encountered though is caused by something else and needs to be fixed in FuseSoC. I'm looking for more information about that right now
from cores-veer-eh1.
@RRozak Sorry, I see now the error is in Edalize, not FuseSoC. Could you please tell me which version of Edalize you are using? If Edalize (or FuseSoC) was installed through pip, you can check with pip3 show edalize
from cores-veer-eh1.
Hi,
I have Edalize in version 0.2.4 and FuseSoC in 1.12.1.dev31+g14dfc82.
from cores-veer-eh1.
I think you managed to hit a bug that exists in some versions of python 3.7 (https://bugs.python.org/issue36760) I can't easily reproduce it, but it might disappear if you add the --verbose
flag, as in fusesoc --verbose --cores-root . run --target=sim chipsalliance.org:cores:SweRV_EH1:1.8
from cores-veer-eh1.
@olofk , program.hex file is used to load I and D side memories of the core TB, created by tools/Makefile prior simulation.
I don't think the file should be pre-requisite to the simulation.
@RRozak , you can try to create empty program.hex, data.hex files in testbench/hex directory to satisfy fusesoc - they are not used really
from cores-veer-eh1.
@RRozak ,
BTW, there is no such file:
mem_init:
files:
-
- testbench/hex/data.hex : {copyto : data.hex}
-
- testbench/hex/program.hex : {copyto : program.hex}
+ - tools/program.hex : {copyto : program.hex}
file_type : user
from cores-veer-eh1.
@RRozak The SweRV PR is merged now. If adding --verbose
to FuseSoC doesn't solve the other problem, please open an FuseSoC bug report and we can look at it there
from cores-veer-eh1.
It works now, even without verbose flag.
Thank you very much for help. I close this issue.
BTW, there is no such file:
I my local repository there was that file, I ran make command in tools directory: https://github.com/chipsalliance/Cores-SweRV/blob/master/tools/Makefile#L163
I modified this file only to check if it can work or if another problems happen like the one with python error.
from cores-veer-eh1.
Related Issues (20)
- fpga_optimize cannot be set to 0 in swerv_config HOT 1
- openocd timeout occurs when trying to load elf file using command 'load_image'. HOT 7
- Try running multi thread program on swerv EH1 core HOT 2
- CoreMark test score HOT 2
- Unable to replicate performance improvement achieved by using different target values HOT 1
- Usage scenarios of different DFFs
- GHR refresh HOT 1
- Question about pipeline FF enable signals
- facing issues when C code size goes beyond 8KB HOT 1
- Coremark for new extension
- Repo renaming HOT 2
- Blocking Loads/DMA disable
- OpenOCD download to ICCM/DCCM failed. HOT 1
- The new feature of verilator stops building procession HOT 2
- coremark/dhrystone testing can't get 4.9 CM/MHz with rtl simulation or in FPGA
- Not generate waveform when using vcs to test Hello World. HOT 2
- Instruction after pmpaddr0 csr write was not executed HOT 7
- Has the maintenance of this repository been stopped?
- slip in dec_decode_ctrl
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 cores-veer-eh1.