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)
- 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
- Can I run this without install any external library?
- Error: illegal operands `sd s11,sub_4_stack_p(s5)'
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.