ibex icon indicating copy to clipboard operation
ibex copied to clipboard

Can we run Random test generator with Model sim?

Open madhavasahu-sevya opened this issue 7 years ago • 12 comments

Hi all,

I installed the ibex SV/UVM instruction generator for RISCV processor verification. I have done this: python3 run.py --test riscv_arithmetic_basic_test --simulator questa It is showing an error message. please find the attachment. Ibex_error_1

Please help me..

madhavasahu-sevya avatar Nov 22 '19 07:11 madhavasahu-sevya

Hi @madhava-sahu, Questa is supported for the RISCV-DV instruction generation. See https://github.com/google/riscv-dv/issues/262 for a similar issue with the Questa setup for RISCV-DV. Have you set the QUESTA_HOME environment variable?

udinator avatar Nov 22 '19 22:11 udinator

@udinator Thanks for the reply. Actually, i have written the path to uvm-1.2 directory of Modelsim_ise in simulator.yaml file /home/sevyamm/intelFPGA/16.1/modelsim_ase/verilog_src yamloptions actually, it is taking that but after that again it is throwing error : no modelsim_lib directory i.e "_info" file is found. the detailed error is below. vmap mtiUvm /home/sevyamm/intelFPGA/16.1/modelsim_ase/verilog_src/uvm-1.2 Modifying modelsim.ini ** Error: (vmap-25) Invalid ModelSim library "/home/sevyamm/intelFPGA/16.1/modelsim_ase/verilog_src/uvm-1.2". No _info file found. No such file or directory. (errno = ENOENT)

madhavasahu-sevya avatar Nov 23 '19 04:11 madhavasahu-sevya

@madhava-sahu You use the modelsim_ase not questa. Could you check verilog_src/uvm-1.2 in your directory? You should remove modelsim.ini when you rerun. You also use verror <number-error> to see more detail about error. Ex: in this situation, verror 25.

danghai avatar Nov 26 '19 00:11 danghai

Hi @danghai, Thanks for the reply. Yes, uvm-1.2 is in the modesim_ase, verilog_src folder. I executed the run.py after deleting the modelsim.ini. I am getting errors like uvm headers not found. Error_2

Please help me..

madhavasahu-sevya avatar Nov 26 '19 08:11 madhavasahu-sevya

Could you provide the compile.log in your output directory?

danghai avatar Nov 26 '19 09:11 danghai

Hi @danghai

command: Python3 run.py --test riscv_arithmetic_basic_test --simulator questa Please find the compile.log compile.log

madhavasahu-sevya avatar Nov 26 '19 10:11 madhavasahu-sevya

It cannot find find `include file "uvm_macros.svh" in directories: Could you try run vmap command again. Ex:

vmap mtiUvm /home/danghai/questasim/uvm-1.2

danghai avatar Nov 26 '19 17:11 danghai

Hi @danghai Thanks for the reply... We are using Modelsim. In this we are also using the same command from the simulator.yaml. vmap mtiUvm $QUESTA_HOME/verilog_src/uvm-1.2 export QUESTA_HOME=/home/sevyamm/intelFPGA/16.1/modelsim_ase (bashrc) The output is coming as mentioned in figure. Error_3

Please suggest

madhavasahu-sevya avatar Nov 27 '19 04:11 madhavasahu-sevya

It should

export QUESTA_HOME=/home/sevyamm/intelFPGA/16.1/modelsim_ase
vmap mtiUvm $QUESTA_HOME/uvm-1.2 

danghai avatar Nov 27 '19 07:11 danghai

Hi @danghai

As i told you that I have modelsim. In the installed directory of the modelsim has this path: /home/sevyamm/intelFPGA/16.1/modelsim_ase/verilog_src/uvm-1.2

Can't we move further with the modelsim?

madhavasahu-sevya avatar Nov 27 '19 08:11 madhavasahu-sevya

@madhava-sahu Sorry for late response. I am not sure about modelsim_ase. I usually use questa. Mentor released the new tool named qrun (version 2019.4). It provides pre-built flows for coverage, debug, UVM and other flows. You should try to use it when you have the chance :)

danghai avatar Dec 04 '19 14:12 danghai

There hasn't been any activity in this issue for 3 months now. I am thus closing it. Feel free to re-open it if necessary.

vogelpi avatar Mar 03 '20 22:03 vogelpi