当前位置:网站首页>[UVM basics] summary of important knowledge points of "UVM practice" (continuous update...)

[UVM basics] summary of important knowledge points of "UVM practice" (continuous update...)

2022-07-07 07:50:00 ReCclay

  • All derived from uvm_component And its derived classes should use uvm_component_utils Macro registration .(P14)
  • UVM Pass through objection Mechanism to control the shutdown of the verification platform .(P14)
    • At every phase in , UVM Will check if there is objection Be mentioned ( raise_objection) , If there is , So wait for this objection Revoked ( drop_objection) Then stop the simulation ; without , It will be over immediately phase.
  • raise_objection Statement must be in main_phase Before the first statement that consumes simulation time in (P15)
  • You cannot directly declare a interface, Only in similar top_tb Such a module ( module) Only in the middle can . What is used in the class is virtual interface.(P17)
  • Here's the introduction of build_phase. And main_phase equally , build_phase It's also UVM A built-in phase. When UVM After starting , Automatically build_phase. build_phase stay new After the function main_phase Before execution . stay build_phase Mainly through config_db Of set and get Operation to pass some data , And instantiating member variables .(P18)
    • Need to add super.build_phase sentence , Because in its parent class build_phase Some necessary operations are performed in , Here you must explicitly call and execute it . build_phase And main_phase The difference is , build_phase It's a function phase, and main_phase It's a Mission phase, build_phase It does not consume simulation time . build_phase Always in simulation time ( $time The time printed by the function ) by 0 When the .
  • No matter to run_test What are the parameters of , The names of the created instances are uvm_test_top(P19)
  • adopt parent,UVM Established a tree like organizational structure . In the organizational structure of this attribute , from run_test The instance created is the tree root , And the name of the tree root is fixed , by uvm_test_top; Leaves grow after the roots , The process of growing leaves needs to be in the root of the tree build_phase To realize .(P24)
原网站

版权声明
本文为[ReCclay]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130648291658.html