Search form

Main menu

My Account Menu

Error in OVM

Thyag
Thyag
Full Access
2 posts

Hi,

ncvlog: *E,EXPKWS (../env/test.sv,4|29): Expecting port direction keyword 'input', 'output', 'inout', or 'ref'.
(`define macro: ovm_field_utils_begin [/tools/ovm/ovm-2.0.2/src/macros/ovm_object_defines.svh line 131], `define macro: ovm_component_utils_begin [/tools/ovm/ovm-2.0.2/src/macros/ovm_object_defines.svh line 308], `define macro: ovm_component_utils [/tools/ovm/ovm-2.0.2/src/macros/ovm_object_defines.svh line 300], `include file: ../env/test.sv line 4, file: ../env/top.sv line 27)

Top file:
import ovm_pkg::*;
`include "ovm_macros.svh"
module top;
include "rffe_file_list.svh" // RTL files

Using inline command to run in nc:
irun -ovmhome $OVM_HOME +incdir+$OVM_HOME/src -sysv_ext .sv,.svh -access +rwc -sv +incdir+../env ../env/top.sv +incdir+../../rtl -f list.f +OVM_TESTNAME=test

I am new OVM....I am getting this type of errors in ovm env....what could be the reason for this? It will be very nice if any one can provide a reference code in OVM for simple project.

Thanks in advance....Thyagu

Answers

ajeetha
ajeetha
Full Access
61 posts

Thyagu,
What is the version of irun? Do irun -version and check. Ensure you use the latest version. Ask cadence help if that still doesn't work.

Ajeetha, CVC
www.cvcblr.com/blog

Comments on this answer

I am using "TOOL: irun 10.20-s113" version of irun.
Thanks for your reply.

Hi Thyag,

Can you re-order the lines in your top file.

include "rffe_file_list.svh" // RTL files
 
module top;
  import ovm_pkg::*;
  `include "ovm_macros.svh"