Comments (9)
Details:
The following code works with vcs but it is not working for questa.
Under "dv_defines.svh" there are the related macros:
...
`ifndef DV_CHECK_FATAL
`define DV_CHECK_FATAL(T_, MSG_="", ID_=`gfn, WITH_C_=) \
`DV_CHECK(T_, MSG_, fatal, ID_, WITH_C_)
`endif
// Shorthand for common foo.randomize() + fatal check
`ifndef DV_CHECK_RANDOMIZE_FATAL
`define DV_CHECK_RANDOMIZE_FATAL(VAR_, MSG_="Randomization failed!", ID_=`gfn) \
`DV_CHECK_FATAL(VAR_.randomize(), MSG_, ID_)
`
endif
...
It seems the error comes from here. The "DV_CHECK_RANDOMIZE_FATAL" macro has 3 variables passed to "DV_CHECK_FATAL" but "DV_CHECK_FATAL" macro expects 4.
from riscv-dv.
This seems related to my change 187796b (part of #41) to fix compile warnings from Questa. I'll investigate.
from riscv-dv.
I am unable to recreate with Questa 2019.01. On the latest master (6b126d9) I ran the following, per README:
python3 run.py --test riscv_arithmetic_basic_test --simulator questa
And it ran successfully. My compile log shows:
QuestaSim-64 vlog 2019.1 Compiler 2019.01 Jan 1 2019
Start time: 11:05:55 on Aug 20,2019
vlog -64 -access=rwc -f /home/sjohnson/riscv-dv/files.f -sv -mfcu -cuname design_cuname "+define+UVM_REGEX_NO_DPI" -writetoplevels /home/sjohnson/riscv-dv/out_2019-08-20/top.list -l /home/sjohnson/riscv-dv/out_2019-08-20/compile.log
-- Compiling package riscv_instr_pkg
-- Importing package mtiUvm.uvm_pkg (uvm-1.2 Built-in)
** Note: (vlog-2286) ./src/riscv_instr_pkg.sv(21): Using implicit +incdir+/d1/cad/tools/mentor/questa/2019.1/questasim/uvm-1.2/../verilog_src/uvm-1.2/src from import uvm_pkg
-- Compiling package riscv_instr_test_pkg
-- Importing package riscv_instr_pkg
-- Compiling module riscv_instr_gen_tb_top
-- Importing package riscv_instr_test_pkg
Top level modules:
riscv_instr_gen_tb_top
End time: 11:05:56 on Aug 20,2019, Elapsed time: 0:00:01
Errors: 0, Warnings: 0
I suspect the problem is your old version of Questa.
I don't see any issue with the macros in question. There are 4 formal arguments to DV_CHECK_FATAL, but the 2nd, 3rd, and 4th all have defaults specified. It is therefore legal to call it with 1, 2, 3, or 4 actual arguments.
from riscv-dv.
It works for me 2019.1
version.
from riscv-dv.
Thank you I will look into this.
from riscv-dv.
Hi,
Can we reopen this issue, i have a query related to this.
I am trying to generate binary file from the assembly test file.
I am getting the below error(link is attached) when i try to make use of make gen command.
.
As you mentioned in your comments above regarding the questa version, the version I am using here is vsim 10.7c, simulator 2018.08. Does it depend on the questa version we use.
So, I tried using the alternate method you had provided that is using the command as below:
python3 run.py --test riscv_arithmetic_basic_test --simulator questa
But even after using this command I am getting the following error .(link is attached
).
Can you please help me with this.
from riscv-dv.
That looks like the exact same error message as @berkkis had with 2016.02. I assume a newer Questa version fixed the issue for him.
Can you try with 2019.1 or later? They're up to 2020.2 now.
from riscv-dv.
from riscv-dv.
@tejasmal56 . You can try qrun
from Questa. version (> 2019) has this feature. Let me know if you have any issues relating to it
from riscv-dv.
Related Issues (20)
- Can riscv-dv support cunstom link.ld? HOT 1
- Unable to run `run --help` straight out of the box
- For riscv vector extension, is mask/tail agnostic with wirte-1s supported?
- Convert script for ovpsim log to csv fails for some CSRs
- Compile error with Questasim tool HOT 1
- VCS 2018 cannot generate , error Segmentation fault
- run error when ISS=OVPsim
- Is the coverage model I generated broken when I run ‘cov' command?
- Spike Log to Trace csv is skipping floating Point Instructions which are editing status registers
- [cfg,gpr] reg constraint in riscv_gen_config. HOT 1
- [page table] There is a error in page table !
- kIllegalCompressedOpcode generates valid instruction (```c.fswsp```) when XLEN=32 HOT 1
- CRITICAL Cannot randomize branch target instruction HOT 1
- vfwcvt.xu.f.v issue
- SEW=16 vfcvt/vfwcvt instruction
- pygen requirements installation failure HOT 4
- FLW uses rs1 as integer base ISA
- Test cases generated for riscv64gc target do not run on latest version of spike HOT 9
- Can not find file `VECTOR_INCLUDE("riscv_instr_cover_group_inc_cg_sample.sv") etc file path HOT 1
- WRITE_GPR in gen_signature_handshake() produces invalid assembly
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.