Comments (9)
Thanks for reporting. It doesn't look like a real issue as the code it's pointing to is a macro define.
I pushed a PR to move the macro defines out anyway. If you are still seeing compilation issue, please paste the all the failures, thanks.
from riscv-dv.
We tried FIX144 and the Error remains the same.
The first line of the compile.log REMAINS the SAME except the line number changed:
` function new(string name="");
ncvlog: *E,NEWOIC (./src/dv_defines.svh,19|15): The class constructor method 'new' is only allowed within a class declaration.
(include file: ./src/dv_defines.svh line 19, file: ./src/riscv_instr_pkg.sv line **17**)
and the following error seems results from the 'new' function error:
` function new (string name="");
ncvlog: *E, NULLEI (./src/dv_defines.svh,19|36): zero length escaped identifier [2.7.1(IEEE)].
(`include file: ./src/dv_defines.svh line 19, file: ./src/riscv_instr_pkg.sv line 17)
super.new(name);
ncvlog: *E,MISEXX (./src/dv_defines.svh,20|10): expecting an '=' or '<=' sign in an assignment [9.2(IEEE)].
(include file: ./src/dv_defines.svh line 20, file: ./src/riscv_instr_pkg.sv line 17)
....
....
AND anther 'new' function in dv_defines.svh results the same ERROR:
` function new(string name="", uvm_component parent=null);
ncvlog: *E,NEWOIC (./src/dv_defines.svh,26|15): The class constructor method 'new' is only allowed within a class declaration.
(include file: ./src/dv_defines.svh line 26, file: ./src/riscv_instr_pkg.sv line **17**)
from riscv-dv.
Looks werid, are you using an old version of incisive? I cannot reproduce this error on my side.
from riscv-dv.
We are using "irun(64): 15.20-p001" (INCISIVE 15.2)
from riscv-dv.
The closet version I have is 15.20-s010, but I cannot reproduce your issue. You might need to contact the AE for a solution. I don't see there's a problem in the code itself.
from riscv-dv.
Close this issue as not reproducible. I believe there are many other users run the flow with ius and dp not see this issue.
Feel free to reopen it if you think this is some issue in the code.
from riscv-dv.
We solved the problem.
The reason is that ./src/dv_defines.svh
and several other files are in Windows format. We changed the format of these files and everything worked fine.
We suggest that the windows format files should be changed in case of future problems.
from riscv-dv.
Cool, thanks for resolving this issue, I am not aware of this. Could you create a PR of your changes? I'd like to see what's causing the problem.
from riscv-dv.
Closing it for now, feel free to create a PR with your changes.
from riscv-dv.
Related Issues (20)
- use ovpsim .Why is there no verbose log instruction HOT 5
- spike
- The spike simulation gets stuck in an endless loop HOT 2
- rv64gc failing spike due to exception trap_store_address_misaligned HOT 2
- riscv-dv breaks with riscv64-unknown-elf-gcc version tags 2023.04.18 and up HOT 5
- spike error:free(): invalid pointer: 0xxxxxxx
- Circular dependency within source files
- Error "SolveBeforeMustBeRand" while Elaborating with Dsim tool HOT 2
- Error: unrecognized opcode `csrr x5,0xf14', extension `zicsr' required HOT 8
- Error: illegal operands `sd s11,sub_4_stack_p(s5)'
- How to connect the test to my SV design file, and How do I get the feedback that the test has passed or failed? HOT 1
- Access Exception error while running spike for rv64imac instructions
- can't do riscv_csr_test HOT 1
- How to test Atomic Extension? HOT 3
- Guide lines to enable virtual address translation?
- Can't do S-mode test ( No delegation ) HOT 2
- Randomize CSR in main HOT 6
- Initial mret (from init_supervisor_mode) sends processor to untranslated address
- Request for detailed documentation HOT 1
- Can riscv-dv used with ucb rocket core/boom core? HOT 2
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 riscv-dv.