Like Objects window, you can view the value of any dynamic type variable from Tcl Console as well.
- Click Restart button .
- From the Scope window, select scope axi_vip_0__exdes_adv_mst_active_pt_mem__slv_passive present
under the top module.
- In Tcl console, invoke the
report_objectscommand to display all objects present in the selected scope. Also, the Queue and Class appear as object type.
- Invoke the
get_valuecommand to find the current value of an object. The get value of
mst_monitor_transactionis returning null as its Class type while empty parenthesis appears for
master_monitor_transaction_queuewhich is a Queue type.
- Click Run All button . The simulation stops at the line where you have added the break point.
get_value master_moniter_transaction_queuecommand and notice that it is still empty.
- On the Vivado® simulator toolbar menu, click the Step button . It executes the current statement that is on line number 95 where the simulation is currently waiting. At this statement, you are pushing an element after the execution. Your queue will be populated with a single element.
- Invoke the
get_value master_moniter_transaction_queuecommand and notice 1 entry in the Queue. Like the Objects window, you can read the value of any dynamic type variable in Tcl Console.