Quantcast
Channel: UVM Forums RSS Feed
Viewing all articles
Browse latest Browse all 756

why 'payloadsegment[0]' is not a legal c identifier name,but payloadseqment_0_ ?!

$
0
0

in order to watch UVM_details windows in questasim10.2c/10.2b,vlog option + questa_uvm_pkg options.

Makefile as follows:

 

questa_uvm_pkg=/app/mentor/questasim_10.2c/questasim/verilog_src/

 

vlog +incdir+$(uvm_home)/src $(uvm_home)/src/uvm.sv \
+incdir+$(questa_uvm_pkg) $(questa_uvm_pkg)/questa_uvm_pkg.sv
...............

under of simulation,report warning as follows:

questasim/verilog_src/questa_uvm_pkg_1.2/src/questa_recorder.svh(364) @4080840000: reporter [ILLEGALNAME] 'payloadsegment[0]' is not a legal c identifier name.change to
questasim/verilog_src/questa_uvm_pkg_1.2/src/questa_recorder.svh(366) @4080840000: reporter [ILLEGALNAME]
'payloadsegment_0_' Attibutes mus be named as a legal cidentifier.

 

and in monitor.svh,
     foreach(payloadsegment[i])
          payloadsegment[i]=data[i];

and in UVM_details window, as sequence is added to waves

,we sees randomized sequence item ,payloadsegment_0_,payloadsegment_1_,payloadsegment_2_。

 

   why payloadsegment[i] is not legal c identifier?!

   but if the same codes rerun in questasim10.1d,above warning not reported.


Viewing all articles
Browse latest Browse all 756

Trending Articles