Compile error

955 views
Skip to first unread message

Prawin

unread,
Mar 8, 2018, 6:11:35 AM3/8/18
to EDA Playground

Hi team,


     I'm getting compile error when am compile multiple files.
   



Regards,
prawin

EDA Playground

unread,
Mar 8, 2018, 7:44:02 AM3/8/18
to EDA Playground

Hi Prawin,

I notice two things:

i) the tab containing ahb_test_pkg has no file extension (it's just called "ahb_test_pkg")

ii) there is no `include "ahb_test_pkg" anywhere (there needs to be)

Matthew
 

Prawin

unread,
Mar 9, 2018, 2:20:52 AM3/9/18
to EDA Playground
Hi Matthew,


  I think package does't need include in top right , it just import in top 


EDA Playground

unread,
Mar 9, 2018, 4:25:03 AM3/9/18
to EDA Playground

But before you can import a package you need to compile it (which you probably know). EDA Playground only compiles testbench.sv and design.sv. Anything else you want compiling needs to be `included into either of those two files.

Matthew

Prawin

unread,
Mar 9, 2018, 5:23:50 AM3/9/18
to EDA Playground
ok thank you

Prawin

unread,
Mar 9, 2018, 8:07:19 AM3/9/18
to EDA Playground

I'm getting this error on my uvm code ,
   System verilog keyword 'class' is not expected to be used in this context

can you please check once,



Thanks,
prawin

EDA Playground

unread,
Mar 9, 2018, 8:54:00 AM3/9/18
to EDA Playground

The trouble with `include is that `include file.sv is like opening file.sv in a texteditor, selecting all, copying, and pasting the contents of file.sv over the `include file.sv statement.

The error is not in m_agent_config.svh , but in the file included just before: look at the last line of s_seq_item.svh and you'll see the error staring you in the face.

Matthew

Prawin

unread,
Mar 9, 2018, 9:02:03 AM3/9/18
to EDA Playground
I'll check once 
Reply all
Reply to author
Forward
0 new messages