ERROR VCP2000 "Syntax error. Unexpected token: item[_IDENTIFIER].

14 views
Skip to first unread message

Ashwath Mohamed

unread,
Jun 5, 2025, 3:06:08 AMJun 5
to EDA Playground
FIFO_UVM
This is the UVM file Iam currently working on.   I was having an issue with this error.  It complains about my test.SV, but I am unable to see what is wrong.  Can anyone help?

Axel Schweiss

unread,
Jul 18, 2025, 3:52:53 PMJul 18
to EDA Playground
You can only declare variable immediately after the begin statement. Here, you have the macro call and the call to write_seq.start before the declaration and initalisation of item.
The following fixes the error but there are others.

        // Overflow test
        begin
            fifo_seq_item item;
         
            write_seq = fifo_write_seq::type_id::create("write_seq");
            `uvm_info("FIFO_TEST", "Starting overflow test", UVM_LOW)
            write_seq.start(env.agent.sequencer);

            item = fifo_seq_item::type_id::create("item");

Maybe just revert to the original and move `uvm_info and write_seq.start further down.
Reply all
Reply to author
Forward
0 new messages