Coder Social home page Coder Social logo

ncvlog building Error about riscv-dv HOT 9 CLOSED

chipsalliance avatar chipsalliance commented on August 22, 2024
ncvlog building Error

from riscv-dv.

Comments (9)

taoliug avatar taoliug commented on August 22, 2024

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.

zhangkunta avatar zhangkunta commented on August 22, 2024

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.

taoliug avatar taoliug commented on August 22, 2024

Looks werid, are you using an old version of incisive? I cannot reproduce this error on my side.

from riscv-dv.

zhangkunta avatar zhangkunta commented on August 22, 2024

We are using "irun(64): 15.20-p001" (INCISIVE 15.2)

from riscv-dv.

taoliug avatar taoliug commented on August 22, 2024

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.

taoliug avatar taoliug commented on August 22, 2024

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.

zhangkunta avatar zhangkunta commented on August 22, 2024

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.

taoliug avatar taoliug commented on August 22, 2024

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.

taoliug avatar taoliug commented on August 22, 2024

Closing it for now, feel free to create a PR with your changes.

from riscv-dv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.