{"id":57576,"date":"2025-08-15T15:40:50","date_gmt":"2025-08-15T07:40:50","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/57576.html"},"modified":"2025-08-15T15:40:50","modified_gmt":"2025-08-15T07:40:50","slug":"uvm%e9%aa%8c%e8%af%81%ef%bc%88%e4%b8%89%ef%bc%89-uvm%e6%9c%ba%e5%88%b6%ef%bc%881%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/57576.html","title":{"rendered":"UVM\u9a8c\u8bc1\uff08\u4e09\uff09\u2014UVM\u673a\u5236\uff081\uff09"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%EF%BC%88%E4%B8%80%EF%BC%89Factory%E5%B7%A5%E5%8E%82%E6%9C%BA%E5%88%B6-toc\" style=\"margin-left:40px\">&#xff08;\u4e00&#xff09;Factory\u5de5\u5382\u673a\u5236<\/p>\n<p id=\"1.%20%E5%B7%A5%E5%8E%82%E6%9C%BA%E5%88%B6%E6%A0%B8%E5%BF%83%E9%80%BB%E8%BE%91%EF%BC%9A%E2%80%9C%E6%B3%A8%E5%86%8C%20-%20%E5%88%9B%E5%BB%BA%20-%20%E8%A6%86%E7%9B%96%E2%80%9D-toc\" style=\"margin-left:80px\">1. \u5de5\u5382\u673a\u5236\u6838\u5fc3\u903b\u8f91&#xff1a;\u201c\u6ce8\u518c &#8211; \u521b\u5efa &#8211; \u8986\u76d6\u201d<\/p>\n<p id=\"2.%20%E4%BB%A3%E7%A0%81%E6%98%A0%E5%B0%84%EF%BC%9A%E4%BB%8E%E6%A6%82%E5%BF%B5%E5%88%B0%E5%AE%9E%E7%8E%B0-toc\" style=\"margin-left:80px\">2. \u4ee3\u7801\u6620\u5c04&#xff1a;\u4ece\u6982\u5ff5\u5230\u5b9e\u73b0<\/p>\n<p id=\"3.%20%E5%AE%9E%E9%AA%8C%E7%9B%AE%E6%A0%87%EF%BC%9A%E7%94%A8%C2%A0dadd_fixen_driver%C2%A0%E5%9B%BA%E5%AE%9A%C2%A0data_en%3D1-toc\" style=\"margin-left:80px\">3. \u5b9e\u9a8c\u76ee\u6807&#xff1a;\u7528\u00a0dadd_fixen_driver\u00a0\u56fa\u5b9a\u00a0data_en&#061;1<\/p>\n<p id=\"4.%20%E5%B7%A5%E5%8E%82%E6%9C%BA%E5%88%B6%E7%9A%84%E4%BB%B7%E5%80%BC%EF%BC%9A%E2%80%9C%E7%81%B5%E6%B4%BB%E9%AA%8C%E8%AF%81%E7%9A%84%E5%9F%BA%E7%9F%B3%E2%80%9D-toc\" style=\"margin-left:80px\">4. \u5de5\u5382\u673a\u5236\u7684\u4ef7\u503c&#xff1a;\u201c\u7075\u6d3b\u9a8c\u8bc1\u7684\u57fa\u77f3\u201d<\/p>\n<p id=\"5.%20%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E4%B8%8E%E8%B0%83%E8%AF%95-toc\" style=\"margin-left:80px\">5. \u5e38\u89c1\u95ee\u9898\u4e0e\u8c03\u8bd5<\/p>\n<p id=\"6.%20%E6%80%BB%E7%BB%93-toc\" style=\"margin-left:80px\">6. \u603b\u7ed3<\/p>\n<p id=\"%EF%BC%88%E4%BA%8C%EF%BC%89Phase%E9%98%B6%E6%AE%B5%E8%BF%90%E8%A1%8C%E6%9C%BA%E5%88%B6-toc\" style=\"margin-left:40px\">&#xff08;\u4e8c&#xff09;Phase\u9636\u6bb5\u8fd0\u884c\u673a\u5236<\/p>\n<p id=\"1.%20%E6%A0%B8%E5%BF%83%E8%A7%84%E5%88%99%EF%BC%9A%E2%80%9C%E4%B8%89%E7%B1%BB%20phase%20%E6%89%A7%E8%A1%8C%E9%A1%BA%E5%BA%8F%E2%80%9D-toc\" style=\"margin-left:80px\">1. \u6838\u5fc3\u89c4\u5219&#xff1a;\u201c\u4e09\u7c7b phase \u6267\u884c\u987a\u5e8f\u201d<\/p>\n<p id=\"2.%20%E5%AE%9E%E9%AA%8C%E9%AA%8C%E8%AF%81%EF%BC%9A%E4%BB%A3%E7%A0%81%E4%B8%8E%E6%97%A5%E5%BF%97%E7%9A%84%E6%98%A0%E5%B0%84-toc\" style=\"margin-left:80px\">2. \u5b9e\u9a8c\u9a8c\u8bc1&#xff1a;\u4ee3\u7801\u4e0e\u65e5\u5fd7\u7684\u6620\u5c04<\/p>\n<p id=\"3.%20%E5%85%B3%E9%94%AE%E7%BB%86%E8%8A%82%E4%B8%8E%E6%98%93%E9%94%99%E7%82%B9-toc\" style=\"margin-left:80px\">3. \u5173\u952e\u7ec6\u8282\u4e0e\u6613\u9519\u70b9<\/p>\n<p id=\"4.%20%E5%AE%9E%E9%AA%8C%E4%BB%B7%E5%80%BC%E4%B8%8E%E5%BA%94%E7%94%A8%E5%9C%BA%E6%99%AF-toc\" style=\"margin-left:80px\">4. \u5b9e\u9a8c\u4ef7\u503c\u4e0e\u5e94\u7528\u573a\u666f<\/p>\n<p id=\"5.%20%E6%80%BB%E7%BB%93-toc\" style=\"margin-left:80px\">5. \u603b\u7ed3<\/p>\n<p id=\"%EF%BC%88%E4%B8%89%EF%BC%89sequence%20%E6%BF%80%E5%8A%B1%E4%BA%A7%E7%94%9F%E4%B8%8E%E4%BA%A4%E4%BA%92%E6%89%A7%E8%A1%8C%E6%9C%BA%E5%88%B6-toc\" style=\"margin-left:40px\">&#xff08;\u4e09&#xff09;sequence \u6fc0\u52b1\u4ea7\u751f\u4e0e\u4ea4\u4e92\u6267\u884c\u673a\u5236<\/p>\n<p id=\"1.%C2%A0sequence%20%E6%A0%B8%E5%BF%83%E6%9C%BA%E5%88%B6%E6%A6%82%E8%BF%B0-toc\" style=\"margin-left:80px\">1.\u00a0sequence \u6838\u5fc3\u673a\u5236\u6982\u8ff0<\/p>\n<p id=\"2.%20sequence_item%E7%9A%84%E5%8F%91%E9%80%81-toc\" style=\"margin-left:80px\">2. sequence_item\u7684\u53d1\u9001<\/p>\n<p id=\"2.1%20%E6%A0%B8%E5%BF%83%E8%A7%84%E5%88%99%EF%BC%9Asequence_item%C2%A0%E5%8F%91%E9%80%81%E7%9A%84%E4%B8%89%E7%A7%8D%E6%96%B9%E6%B3%95-toc\" style=\"margin-left:120px\">2.1 \u6838\u5fc3\u89c4\u5219&#xff1a;sequence_item\u00a0\u53d1\u9001\u7684\u4e09\u79cd\u65b9\u6cd5<\/p>\n<p id=\"2.2%20%E9%80%90%E7%B1%BB%E8%A7%A3%E6%9E%90%EF%BC%9A%E4%BB%A3%E7%A0%81%E9%80%BB%E8%BE%91%E4%B8%8E%E5%AE%9E%E9%AA%8C%E9%AA%8C%E8%AF%81-toc\" style=\"margin-left:120px\">2.2 \u9010\u7c7b\u89e3\u6790&#xff1a;\u4ee3\u7801\u903b\u8f91\u4e0e\u5b9e\u9a8c\u9a8c\u8bc1<\/p>\n<p id=\"2.3%20%E5%85%B3%E9%94%AE%E7%BB%86%E8%8A%82%E4%B8%8E%E5%AF%B9%E6%AF%94-toc\" style=\"margin-left:120px\">2.3 \u5173\u952e\u7ec6\u8282\u4e0e\u5bf9\u6bd4<\/p>\n<p id=\"2.4%20%E5%AE%9E%E9%AA%8C%E4%BB%B7%E5%80%BC%E4%B8%8E%E6%80%BB%E7%BB%93-toc\" style=\"margin-left:120px\">2.4 \u5b9e\u9a8c\u4ef7\u503c\u4e0e\u603b\u7ed3<\/p>\n<p id=\"3.%20sequence%20%E7%9A%84%E5%8F%91%E9%80%81-toc\" style=\"margin-left:80px\">3. sequence \u7684\u53d1\u9001<\/p>\n<p id=\"3.1%20%E6%A0%B8%E5%BF%83%E8%A7%84%E5%88%99%EF%BC%9A%E5%AD%90%C2%A0sequence%C2%A0%E5%8F%91%E9%80%81%E7%9A%84%E4%B8%89%E7%B1%BB%E6%96%B9%E6%B3%95-toc\" style=\"margin-left:120px\">3.1 \u6838\u5fc3\u89c4\u5219&#xff1a;\u5b50\u00a0sequence\u00a0\u53d1\u9001\u7684\u4e09\u7c7b\u65b9\u6cd5<\/p>\n<p id=\"3.2%20%E9%80%90%E7%B1%BB%E8%A7%A3%E6%9E%90%EF%BC%9A%E7%BB%93%E5%90%88%C2%A0dadd%C2%A0%E4%BB%A3%E7%A0%81%E4%B8%8E%E8%84%9A%E6%9C%AC-toc\" style=\"margin-left:120px\">3.2 \u9010\u7c7b\u89e3\u6790&#xff1a;\u7ed3\u5408\u00a0dadd\u00a0\u4ee3\u7801\u4e0e\u811a\u672c<\/p>\n<p id=\"3.3%20%E5%85%B3%E9%94%AE%E7%BB%86%E8%8A%82%E4%B8%8E%E5%AF%B9%E6%AF%94-toc\" style=\"margin-left:120px\">3.3 \u5173\u952e\u7ec6\u8282\u4e0e\u5bf9\u6bd4<\/p>\n<p id=\"3.4%20%E5%AE%9E%E9%AA%8C%E4%BB%B7%E5%80%BC%E4%B8%8E%E6%80%BB%E7%BB%93-toc\" style=\"margin-left:120px\">3.4 \u5b9e\u9a8c\u4ef7\u503c\u4e0e\u603b\u7ed3<\/p>\n<hr id=\"hr-toc\" \/>\n<h3 id=\"%EF%BC%88%E4%B8%80%EF%BC%89Factory%E5%B7%A5%E5%8E%82%E6%9C%BA%E5%88%B6\">&#xff08;\u4e00&#xff09;Factory\u5de5\u5382\u673a\u5236<\/h3>\n<h4 id=\"1.%20%E5%B7%A5%E5%8E%82%E6%9C%BA%E5%88%B6%E6%A0%B8%E5%BF%83%E9%80%BB%E8%BE%91%EF%BC%9A%E2%80%9C%E6%B3%A8%E5%86%8C%20-%20%E5%88%9B%E5%BB%BA%20-%20%E8%A6%86%E7%9B%96%E2%80%9D\">1. \u5de5\u5382\u673a\u5236\u6838\u5fc3\u903b\u8f91&#xff1a;\u201c\u6ce8\u518c &#8211; \u521b\u5efa &#8211; \u8986\u76d6\u201d<\/h4>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0UVM \u5de5\u5382\u673a\u5236\u672c\u8d28\u662f\u00a0\u201c\u5bf9\u8c61\u521b\u5efa\u7684\u96c6\u4e2d\u7ba1\u63a7\u201d&#xff0c;\u6838\u5fc3\u89e3\u51b3\u4e24\u4e2a\u95ee\u9898&#xff1a;<\/p>\n<p>&#xff08;1&#xff09;\u89e3\u8026\u521b\u5efa\u903b\u8f91&#xff1a;\u8ba9\u5bf9\u8c61\u7684 \u201c\u521b\u5efa\u201d \u4e0e \u201c\u4f7f\u7528\u201d \u5206\u79bb&#xff0c;\u65e0\u9700\u786c\u7f16\u7801\u00a0new()&#xff0c;\u4fbf\u4e8e\u540e\u7eed\u66ff\u6362\u5b9e\u73b0&#xff08;\u5982\u7528\u00a0dadd_fixen_driver\u00a0\u66ff\u6362\u00a0dadd_driver\u00a0&#xff09;\u3002<\/p>\n<p>&#xff08;2&#xff09;\u652f\u6301\u52a8\u6001\u66ff\u6362&#xff1a;\u901a\u8fc7\u00a0set_type_override\u00a0\u6216\u00a0set_inst_override&#xff0c;\u53ef\u5728\u4e0d\u4fee\u6539\u4ee3\u7801\u7684\u524d\u63d0\u4e0b&#xff0c;\u66ff\u6362\u7ec4\u4ef6\u7c7b\u578b&#xff08;\u5982\u628a\u00a0dadd_driver\u00a0\u6362\u6210\u00a0dadd_fixen_driver\u00a0&#xff09;&#xff0c;\u7075\u6d3b\u63a7\u5236\u9a8c\u8bc1\u884c\u4e3a\u3002<\/p>\n<h4 id=\"2.%20%E4%BB%A3%E7%A0%81%E6%98%A0%E5%B0%84%EF%BC%9A%E4%BB%8E%E6%A6%82%E5%BF%B5%E5%88%B0%E5%AE%9E%E7%8E%B0\">2. \u4ee3\u7801\u6620\u5c04&#xff1a;\u4ece\u6982\u5ff5\u5230\u5b9e\u73b0<\/h4>\n<p>&#xff08;1&#xff09; \u6ce8\u518c&#xff08;uvm_component_utils&#xff09;<\/p>\n<ul>\n<li>\u4f5c\u7528&#xff1a;\u628a\u7c7b \u201c\u767b\u8bb0\u201d \u5230 UVM \u5de5\u5382\u7684 \u201c\u67e5\u627e\u8868\u201d&#xff0c;\u8ba9\u5de5\u5382\u80fd\u8bc6\u522b\u5e76\u521b\u5efa\u5b83\u3002<\/li>\n<li>\u4ee3\u7801\u793a\u4f8b&#xff08;dadd_driver\u00a0\u6ce8\u518c&#xff09;&#xff1a;<\/li>\n<\/ul>\n<p>class dadd_driver extends uvm_driver #(dadd_item);<br \/>\n    &#096;uvm_component_utils(dadd_driver)  \/\/ \u6ce8\u518c component \u5230\u5de5\u5382<br \/>\n    \/\/ &#8230; \u7c7b\u5b9a\u4e49 &#8230;<br \/>\nendclass<\/p>\n<ul>\n<li>\u5173\u952e&#xff1a;\n<ul>\n<li>uvm_component_utils\u00a0\u662f\u6ce8\u518c\u00a0component&#xff08;\u7ee7\u627f\u00a0uvm_component\u00a0\u7684\u7c7b&#xff0c;\u5982\u00a0driver\u3001monitor\u00a0&#xff09;\u7684\u5b8f&#xff1b;\u82e5\u4e3a\u00a0object&#xff08;\u7ee7\u627f\u00a0uvm_object\u00a0\u7684\u7c7b&#xff0c;\u5982\u00a0sequence_item\u00a0&#xff09;&#xff0c;\u5219\u7528\u00a0uvm_object_utils\u3002<\/li>\n<li>\u6ce8\u518c\u540e&#xff0c;\u7c7b\u4f1a\u88ab\u52a0\u5165 UVM \u5de5\u5382\u7684 \u201c\u7c7b\u578b\u6620\u5c04\u8868\u201d&#xff0c;\u540e\u7eed\u53ef\u901a\u8fc7\u00a0type_id::create()\u00a0\u521b\u5efa\u5b9e\u4f8b\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&#xff08;2&#xff09;\u521b\u5efa&#xff08;type_id::create&#xff09;<\/p>\n<ul>\n<li>\u4f5c\u7528&#xff1a;\u901a\u8fc7\u5de5\u5382\u521b\u5efa\u5bf9\u8c61&#xff0c;\u81ea\u52a8\u68c0\u67e5\u662f\u5426\u6709 \u201c\u7c7b\u578b\u8986\u76d6\u201d&#xff0c;\u518d\u51b3\u5b9a\u5b9e\u4f8b\u5316\u539f\u7c7b\u8fd8\u662f\u66ff\u6362\u7c7b\u3002<\/li>\n<li>\u4ee3\u7801\u793a\u4f8b&#xff08;dadd_iagent\u00a0\u4e2d\u521b\u5efa\u00a0dadd_driver\u00a0&#xff09;&#xff1a;<\/li>\n<\/ul>\n<p>function dadd_iagent::new(string name &#061; &#034;dadd_iagent&#034;, uvm_component parent);<br \/>\n    super.new(name, parent);<br \/>\n    \/\/ \u901a\u8fc7\u5de5\u5382\u521b\u5efa driver&#xff0c;\u800c\u975e\u76f4\u63a5 new(dadd_driver::new(&#8230;))<br \/>\n    drv &#061; dadd_driver::type_id::create(&#034;drv&#034;, this);<br \/>\n    \/\/ &#8230; \u5176\u4ed6\u7ec4\u4ef6\u521b\u5efa &#8230;<br \/>\nendfunction<\/p>\n<ul>\n<li>\u5173\u952e&#xff1a;\n<ul>\n<li>type_id::create(&#034;drv&#034;, this)\u00a0\u4f1a\u5148\u67e5\u5de5\u5382\u662f\u5426\u6709\u00a0dadd_driver\u00a0\u7684\u8986\u76d6\u7c7b\u578b&#xff08;\u5982\u00a0dadd_fixen_driver\u00a0&#xff09;&#xff0c;\u82e5\u6709\u5219\u521b\u5efa\u8986\u76d6\u7c7b&#xff0c;\u5426\u5219\u521b\u5efa\u539f\u7c7b\u3002<\/li>\n<li>\u66ff\u6362\u00a0new()\u00a0\u4e3a\u00a0create()\u00a0\u662f\u5b9e\u73b0 \u201c\u52a8\u6001\u8986\u76d6\u201d \u7684\u6838\u5fc3&#xff1a;\u540e\u7eed\u53ea\u9700\u8c03\u7528\u00a0set_type_override&#xff0c;\u65e0\u9700\u4fee\u6539\u00a0dadd_iagent\u00a0\u4ee3\u7801&#xff0c;\u5c31\u80fd\u66ff\u6362\u00a0driver\u00a0\u7c7b\u578b\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&#xff08;3&#xff09;\u8986\u76d6&#xff08;set_type_override&#xff09;<\/p>\n<ul>\n<li>\u4f5c\u7528&#xff1a;\u544a\u8bc9\u5de5\u5382 \u201c\u7528\u7c7b B \u66ff\u6362\u7c7b A \u7684\u521b\u5efa\u201d&#xff0c;\u5b9e\u9a8c\u4e2d\u628a\u00a0dadd_driver\u00a0\u6362\u6210\u00a0dadd_fixen_driver&#xff0c;\u56fa\u5b9a\u00a0data_en&#061;1\u3002<\/li>\n<li>\u4ee3\u7801\u793a\u4f8b&#xff08;\u5728\u00a0dadd_rand_test\u00a0\u4e2d\u8986\u76d6 &#xff09;&#xff1a;<\/li>\n<\/ul>\n<p>class dadd_rand_test extends uvm_test;<br \/>\n    &#096;uvm_component_utils(dadd_rand_test)<br \/>\n    function void build_phase(uvm_phase phase);<br \/>\n        \/\/ \u5168\u5c40\u8986\u76d6&#xff1a;\u6240\u6709 dadd_driver \u7c7b\u578b\u90fd\u66ff\u6362\u4e3a dadd_fixen_driver<br \/>\n        dadd_driver::type_id::set_type_override(dadd_fixen_driver::get_type());<br \/>\n        super.build_phase(phase);<br \/>\n    endfunction<br \/>\nendclass<\/p>\n<ul>\n<li>\u5173\u952e&#xff1a;\n<ul>\n<li>set_type_override\u00a0\u9700\u5728\u00a0build_phase\u00a0\u8c03\u7528&#xff0c;\u786e\u4fdd\u5de5\u5382\u5728\u521b\u5efa\u7ec4\u4ef6\u524d\u751f\u6548\u3002<\/li>\n<li>\u66ff\u6362\u540e&#xff0c;dadd_iagent\u00a0\u4e2d\u00a0drv &#061; dadd_driver::type_id::create(&#8230;)\u00a0\u4f1a\u81ea\u52a8\u521b\u5efa\u00a0dadd_fixen_driver\u00a0\u5b9e\u4f8b&#xff0c;\u5b9e\u73b0 \u201c\u65e0\u4ee3\u7801\u4fee\u6539\u66ff\u6362\u7ec4\u4ef6\u201d\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4 id=\"3.%20%E5%AE%9E%E9%AA%8C%E7%9B%AE%E6%A0%87%EF%BC%9A%E7%94%A8%C2%A0dadd_fixen_driver%C2%A0%E5%9B%BA%E5%AE%9A%C2%A0data_en%3D1\">3. \u5b9e\u9a8c\u76ee\u6807&#xff1a;\u7528\u00a0dadd_fixen_driver\u00a0\u56fa\u5b9a\u00a0data_en&#061;1<\/h4>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u539f\u00a0dadd_driver\u00a0\u4e2d\u00a0data_en\u00a0\u662f\u968f\u673a\u7684&#xff0c;\u5b9e\u9a8c\u901a\u8fc7\u00a0\u201c\u5de5\u5382\u8986\u76d6\u201d\u00a0\u66ff\u6362\u4e3a\u00a0dadd_fixen_driver&#xff0c;\u5f3a\u5236\u00a0data_en&#061;1&#xff1a;<\/p>\n<p>&#xff08;1&#xff09;dadd_fixen_driver\u00a0\u903b\u8f91<\/p>\n<p>task dadd_fixen_driver::main_phase(uvm_phase phase);<br \/>\n    wait(tb_dadd.dadd_if.reset_n);<br \/>\n    forever begin<br \/>\n        seq_item_port.get_next_item(req);<br \/>\n        &#064;(posedge tb_dadd.dadd_if.clk);<br \/>\n        \/\/ \u56fa\u5b9a data_en&#061;1&#xff08;\u4e0e\u539f driver \u7684\u968f\u673a\u903b\u8f91\u533a\u5206&#xff09;<br \/>\n        tb_dadd.dadd_if.mcb.dadd_in_en &lt;&#061; 1&#039;b1;<br \/>\n        tb_dadd.dadd_if.mcb.dadd_in     &lt;&#061; req.data;<br \/>\n        tb_dadd.dadd_if.mcb.dadd_in_addr&lt;&#061; req.addr;<br \/>\n        seq_item_port.item_done();<br \/>\n    end<br \/>\nendtask<\/p>\n<ul>\n<li>\u5173\u952e&#xff1a;dadd_in_en &lt;&#061; 1&#039;b1\u00a0\u786c\u7f16\u7801\u4e3a 1&#xff0c;\u8986\u76d6\u539f\u00a0driver\u00a0\u7684\u968f\u673a\u884c\u4e3a\u3002<\/li>\n<\/ul>\n<p><span style=\"color:#0d0016\">&#xff08;2&#xff09;\u8986\u76d6\u6d41\u7a0b<\/span><\/p>\n<ul>\n<li><span style=\"background-color:#f9eda6\">\u5728\u00a0<\/span><span style=\"background-color:#f9eda6\">dadd_rand_test<\/span><span style=\"background-color:#f9eda6\">\u00a0\u7684\u00a0<\/span><span style=\"background-color:#f9eda6\">build_phase<\/span><span style=\"background-color:#f9eda6\">\u00a0\u8c03\u7528\u00a0<\/span><span style=\"background-color:#f9eda6\">set_type_override<\/span><span style=\"background-color:#f9eda6\">&#xff0c;\u66ff\u6362\u00a0<\/span><span style=\"background-color:#f9eda6\">dadd_driver<\/span><span style=\"background-color:#f9eda6\">\u00a0\u4e3a\u00a0<\/span><span style=\"background-color:#f9eda6\">dadd_fixen_driver<\/span><span style=\"background-color:#f9eda6\">\u3002<\/span><\/li>\n<li><span style=\"background-color:#f9eda6\">dadd_iagent<\/span><span style=\"background-color:#f9eda6\">\u00a0\u4e2d\u901a\u8fc7\u00a0<\/span><span style=\"background-color:#f9eda6\">dadd_driver::type_id::create()<\/span><span style=\"background-color:#f9eda6\">\u00a0\u521b\u5efa\u00a0<\/span><span style=\"background-color:#f9eda6\">driver<\/span><span style=\"background-color:#f9eda6\">\u00a0\u65f6&#xff0c;\u5de5\u5382\u81ea\u52a8\u5b9e\u4f8b\u5316\u00a0<\/span><span style=\"background-color:#f9eda6\">dadd_fixen_driver<\/span><span style=\"background-color:#f9eda6\">\u3002<\/span><\/li>\n<li><span style=\"background-color:#f9eda6\">\u4eff\u771f\u65f6&#xff0c;<\/span><span style=\"background-color:#f9eda6\">driver<\/span><span style=\"background-color:#f9eda6\">\u00a0\u9a71\u52a8 DUT \u7684\u00a0<\/span><span style=\"background-color:#f9eda6\">data_en<\/span><span style=\"background-color:#f9eda6\">\u00a0\u6052\u4e3a 1&#xff0c;\u5b9e\u73b0\u5b9e\u9a8c\u76ee\u6807\u3002<\/span><\/li>\n<\/ul>\n<h4 id=\"4.%20%E5%B7%A5%E5%8E%82%E6%9C%BA%E5%88%B6%E7%9A%84%E4%BB%B7%E5%80%BC%EF%BC%9A%E2%80%9C%E7%81%B5%E6%B4%BB%E9%AA%8C%E8%AF%81%E7%9A%84%E5%9F%BA%E7%9F%B3%E2%80%9D\">4. \u5de5\u5382\u673a\u5236\u7684\u4ef7\u503c&#xff1a;\u201c\u7075\u6d3b\u9a8c\u8bc1\u7684\u57fa\u77f3\u201d<\/h4>\n<p>&#xff08;1&#xff09;\u89e3\u8026\u4e0e\u590d\u7528&#xff1a;\u7ec4\u4ef6\u521b\u5efa\u903b\u8f91\u4e0e\u4f7f\u7528\u903b\u8f91\u5206\u79bb&#xff0c;dadd_iagent\u00a0\u65e0\u9700\u5173\u5fc3\u00a0driver\u00a0\u5177\u4f53\u7c7b\u578b&#xff0c;\u53ea\u9700\u901a\u8fc7\u5de5\u5382\u521b\u5efa&#xff0c;\u590d\u7528\u6027\u66f4\u9ad8\u3002<\/p>\n<p>&#xff08;2&#xff09;\u52a8\u6001\u914d\u7f6e&#xff1a;\u901a\u8fc7\u4e00\u884c\u00a0set_type_override&#xff0c;\u5c31\u80fd\u5207\u6362\u00a0driver\u00a0\u884c\u4e3a&#xff08;\u968f\u673a \/ \u56fa\u5b9a\u00a0data_en\u00a0&#xff09;&#xff0c;\u65e0\u9700\u4fee\u6539\u00a0agent\u3001env\u00a0\u4ee3\u7801\u3002<\/p>\n<p>&#xff08;3&#xff09;\u53ef\u7ef4\u62a4\u6027&#xff1a;\u9a8c\u8bc1\u9700\u6c42\u53d8\u5316\u65f6&#xff08;\u5982\u66ff\u6362\u00a0driver\u00a0\u534f\u8bae&#xff09;&#xff0c;\u53ea\u9700\u4fee\u6539\u00a0driver\u00a0\u5b50\u7c7b\u548c\u8986\u76d6\u903b\u8f91&#xff0c;\u4e0d\u5f71\u54cd\u4e0a\u5c42\u7ec4\u4ef6\u3002<\/p>\n<h4 id=\"5.%20%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E4%B8%8E%E8%B0%83%E8%AF%95\">5. \u5e38\u89c1\u95ee\u9898\u4e0e\u8c03\u8bd5<\/h4>\n<p>&#xff08;1&#xff09;\u8986\u76d6\u4e0d\u751f\u6548&#xff1a;<\/p>\n<ul>\n<li>\u68c0\u67e5\u00a0set_type_override\u00a0\u662f\u5426\u5728\u00a0build_phase\u00a0\u8c03\u7528&#xff08;main_phase\u00a0\u8c03\u7528\u65e0\u6548&#xff0c;\u56e0\u7ec4\u4ef6\u5df2\u521b\u5efa &#xff09;\u3002<\/li>\n<li>\u68c0\u67e5\u00a0create()\u00a0\u662f\u5426\u7528\u00a0type_id::create&#xff0c;\u800c\u975e\u76f4\u63a5\u00a0new()&#xff08;\u76f4\u63a5\u00a0new()\u00a0\u4f1a\u7ed5\u8fc7\u5de5\u5382&#xff0c;\u8986\u76d6\u5931\u6548 &#xff09;\u3002<\/li>\n<\/ul>\n<p>&#xff08;2&#xff09;\u7c7b\u578b\u6ce8\u518c\u9057\u6f0f&#xff1a;<\/p>\n<ul>\n<li>\u82e5\u5b50\u7c7b&#xff08;\u5982\u00a0dadd_fixen_driver\u00a0&#xff09;\u672a\u6ce8\u518c&#xff08;\u5fd8\u8bb0\u00a0uvm_component_utils\u00a0\u5b8f &#xff09;&#xff0c;\u5de5\u5382\u65e0\u6cd5\u8bc6\u522b&#xff0c;\u8986\u76d6\u4f1a\u5931\u8d25\u3002<\/li>\n<\/ul>\n<p>&#xff08;3&#xff09;\u5c42\u6b21\u5316\u8986\u76d6&#xff1a;<\/p>\n<ul>\n<li>\u82e5\u9700\u53ea\u66ff\u6362\u67d0\u4e2a\u00a0agent\u00a0\u4e2d\u7684\u00a0driver&#xff08;\u800c\u975e\u5168\u5c40\u66ff\u6362 &#xff09;&#xff0c;\u53ef\u7528\u00a0set_inst_override&#xff0c;\u6307\u5b9a\u5b9e\u4f8b\u8def\u5f84&#xff08;\u5982\u00a0uvm_test_top.env.iagt.drv\u00a0&#xff09;\u3002<\/li>\n<\/ul>\n<h4 id=\"6.%20%E6%80%BB%E7%BB%93\">6. \u603b\u7ed3<\/h4>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0UVM \u5de5\u5382\u673a\u5236\u901a\u8fc7\u00a0\u201c\u6ce8\u518c &#8211; \u521b\u5efa &#8211; \u8986\u76d6\u201d\u00a0\u4e09\u6b65&#xff0c;\u5b9e\u73b0\u4e86&#xff1a;<\/p>\n<ul>\n<li>\u52a8\u6001\u66ff\u6362\u7ec4\u4ef6&#xff1a;\u5b9e\u9a8c\u4e2d\u7528\u00a0dadd_fixen_driver\u00a0\u66ff\u6362\u00a0dadd_driver&#xff0c;\u65e0\u9700\u4fee\u6539\u00a0agent\u00a0\u4ee3\u7801\u3002<\/li>\n<li>\u89e3\u8026\u521b\u5efa\u903b\u8f91&#xff1a;\u7ec4\u4ef6\u521b\u5efa\u7531\u5de5\u5382\u7edf\u4e00\u7ba1\u63a7&#xff0c;\u4e0a\u5c42\u7ec4\u4ef6\u53ea\u9700\u5173\u6ce8\u63a5\u53e3&#xff0c;\u65e0\u9700\u5173\u5fc3\u5177\u4f53\u5b9e\u73b0\u3002<\/li>\n<li>\u7075\u6d3b\u9a8c\u8bc1\u914d\u7f6e&#xff1a;\u4e00\u884c\u4ee3\u7801\u5207\u6362\u9a8c\u8bc1\u884c\u4e3a&#xff08;\u968f\u673a \/ \u56fa\u5b9a\u00a0data_en\u00a0&#xff09;&#xff0c;\u8ba9\u9a8c\u8bc1\u5e73\u53f0\u53ef\u9002\u914d\u4e0d\u540c\u573a\u666f\u3002<\/li>\n<\/ul>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u8fd9\u662f UVM \u5b9e\u73b0 \u201c\u53ef\u590d\u7528\u3001\u53ef\u914d\u7f6e\u9a8c\u8bc1\u5e73\u53f0\u201d \u7684\u6838\u5fc3\u673a\u5236&#xff0c;\u638c\u63e1\u540e\u80fd\u5927\u5e45\u63d0\u5347\u9a8c\u8bc1\u73af\u5883\u7684\u6269\u5c55\u6027\u4e0e\u7ef4\u62a4\u6027\u3002<\/p>\n<h3 id=\"%EF%BC%88%E4%BA%8C%EF%BC%89Phase%E9%98%B6%E6%AE%B5%E8%BF%90%E8%A1%8C%E6%9C%BA%E5%88%B6\">&#xff08;\u4e8c&#xff09;Phase\u9636\u6bb5\u8fd0\u884c\u673a\u5236<\/h3>\n<h4 id=\"1.%20%E6%A0%B8%E5%BF%83%E8%A7%84%E5%88%99%EF%BC%9A%E2%80%9C%E4%B8%89%E7%B1%BB%20phase%20%E6%89%A7%E8%A1%8C%E9%A1%BA%E5%BA%8F%E2%80%9D\">1. \u6838\u5fc3\u89c4\u5219&#xff1a;\u201c\u4e09\u7c7b phase \u6267\u884c\u987a\u5e8f\u201d<\/h4>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0UVM phase \u6267\u884c\u987a\u5e8f\u5206\u4e3a\u00a0\u201c\u7ec4\u4ef6\u5185\u987a\u5e8f\u201d\u3001\u201c\u6811\u5f62\u7ed3\u6784\u987a\u5e8f\u201d\u3001\u201c\u540c\u7ea7\u7ec4\u4ef6\u987a\u5e8f\u201d\u00a0\u4e09\u7c7b&#xff0c;\u9700\u7ed3\u5408\u5b9e\u9a8c\u573a\u666f\u7406\u89e3&#xff1a;<\/p>\n<p>&#xff08;1&#xff09;\u540c\u4e00\u7ec4\u4ef6\u5185\u7684 phase \u987a\u5e8f&#xff08;\u7eb5\u5411\u987a\u5e8f&#xff09;<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"383\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815074015-689ee45fec8a6.png\" width=\"493\" \/><\/p>\n<ul>\n<li>\u89c4\u5219&#xff1a;\u540c\u4e00\u7ec4\u4ef6&#xff08;\u5982\u00a0dadd_iagent\u00a0&#xff09;\u5185&#xff0c;phase \u6309\u00a0\u201c\u529f\u80fd\u9636\u6bb5\u201d\u00a0\u987a\u5e8f\u6267\u884c&#xff0c;\u4ece\u00a0build_phase\u00a0\u5f00\u59cb&#xff0c;\u5230\u00a0final_phase\u00a0\u7ed3\u675f&#xff0c;\u6d41\u7a0b\u4e3a&#xff1a;<\/li>\n<\/ul>\n<p>build_phase \u2192 connect_phase \u2192 end_of_elaboration_phase \u2192 start_of_simulation_phase \u2192<br \/>\nreset_phase \u2192 configure_phase \u2192 run_phase \u2192 main_phase \u2192 shutdown_phase \u2192<br \/>\nextract_phase \u2192 check_phase \u2192 report_phase \u2192 final_phase<\/p>\n<ul>\n<li>\u5b9e\u9a8c\u6620\u5c04&#xff1a;\u82e5\u5728\u00a0dadd_driver\u00a0\u7684\u6240\u6709 phase \u4e2d\u52a0\u5165\u6253\u5370&#xff0c;\u4f1a\u770b\u5230\u8be5\u7ec4\u4ef6\u5185 phase \u4e25\u683c\u6309\u4e0a\u8ff0\u987a\u5e8f\u6267\u884c\u3002<\/li>\n<\/ul>\n<p>&#xff08;2&#xff09; \u6811\u5f62\u7ed3\u6784\u4e2d\u7684 phase \u987a\u5e8f&#xff08;\u6a2a\u5411\u8de8\u7ec4\u4ef6&#xff09;<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"282\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815074025-689ee4692f948.png\" width=\"455\" \/><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0UVM \u7ec4\u4ef6\u6784\u6210\u00a0\u6811\u5f62\u5c42\u6b21\u7ed3\u6784&#xff08;uvm_test_top \u2192 env \u2192 agent \u2192 driver\/monitor\u00a0&#xff09;&#xff0c;\u540c\u4e00\u7c7b\u578b phase \u5728\u6811\u5f62\u7ed3\u6784\u4e2d\u7684\u6267\u884c\u987a\u5e8f\u5206\u4e24\u79cd&#xff1a;<\/p>\n<table>\n<tr>phase \u7c7b\u578b\u6267\u884c\u65b9\u5411\u5178\u578b phase \u4e3e\u4f8b\u5b9e\u9a8c\u6d41\u7a0b\u6620\u5c04&#xff08;\u4ee5\u00a0build_phase\u00a0\u548c\u00a0connect_phase\u00a0\u4e3a\u4f8b&#xff09;<\/tr>\n<tbody>\n<tr>\n<td>\u81ea\u4e0a\u800c\u4e0b&#xff08;Top-Down&#xff09;<\/td>\n<td>\u4ece\u6839\u5230\u53f6\u5b50<\/td>\n<td>build_phase\u3001final_phase<\/td>\n<td>uvm_test_top.build_phase\u00a0\u2192\u00a0env.build_phase\u00a0\u2192\u00a0agent.build_phase\u00a0\u2192\u00a0driver.build_phase<\/td>\n<\/tr>\n<tr>\n<td>\u81ea\u4e0b\u800c\u4e0a&#xff08;Bottom-Up&#xff09;<\/td>\n<td>\u4ece\u53f6\u5b50\u5230\u6839<\/td>\n<td>connect_phase\u3001report_phase\u00a0\u7b49<\/td>\n<td>driver.connect_phase\u00a0\u2192\u00a0agent.connect_phase\u00a0\u2192\u00a0env.connect_phase\u00a0\u2192\u00a0uvm_test_top.connect_phase<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&#xff08;3&#xff09;\u540c\u7ea7\u7ec4\u4ef6\u7684 phase \u987a\u5e8f&#xff08;\u6a2a\u5411\u540c\u5c42&#xff09;<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"247\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815074033-689ee471e9c8f.png\" width=\"455\" \/><\/p>\n<ul>\n<li>\u89c4\u5219&#xff1a;\u540c\u4e00\u7236\u7ec4\u4ef6\u4e0b\u7684\u00a0\u540c\u7ea7\u7ec4\u4ef6&#xff08;\u5982\u00a0agent\u00a0\u5185\u7684\u00a0driver\u3001monitor\u3001sequencer\u00a0&#xff09;&#xff0c;\u540c\u4e00 phase \u7684\u6267\u884c\u987a\u5e8f\u6309\u00a0\u201c\u5b9e\u4f8b\u5316\u540d\u79f0\u7684\u5b57\u5178\u5e8f\u201d\u00a0\u6267\u884c\u3002<\/li>\n<li>\u5b9e\u9a8c\u6620\u5c04&#xff1a;\u82e5\u00a0agent\u00a0\u4e2d\u00a0driver\u00a0\u547d\u540d\u4e3a\u00a0drv\u3001monitor\u00a0\u547d\u540d\u4e3a\u00a0imon\u3001sequencer\u00a0\u547d\u540d\u4e3a\u00a0sqr&#xff0c;\u5219\u00a0build_phase\u00a0\u6267\u884c\u987a\u5e8f\u4e3a&#xff1a;<\/li>\n<\/ul>\n<p>drv.build_phase \u2192 imon.build_phase \u2192 sqr.build_phase <\/p>\n<p>&#xff08;\u56e0\u5b57\u5178\u5e8f\u00a0drv\u00a0&lt;\u00a0imon\u00a0&lt;\u00a0sqr\u00a0&#xff0c;\u6309\u5b57\u6bcd\u987a\u5e8f\u6392\u5217 &#xff09;<\/p>\n<h4 id=\"2.%20%E5%AE%9E%E9%AA%8C%E9%AA%8C%E8%AF%81%EF%BC%9A%E4%BB%A3%E7%A0%81%E4%B8%8E%E6%97%A5%E5%BF%97%E7%9A%84%E6%98%A0%E5%B0%84\">2. \u5b9e\u9a8c\u9a8c\u8bc1&#xff1a;\u4ee3\u7801\u4e0e\u65e5\u5fd7\u7684\u6620\u5c04<\/h4>\n<p>&#xff08;1&#xff09;\u4ee3\u7801\u4e2d\u52a0\u5165 phase \u6253\u5370&#xff08;\u4ee5\u00a0dadd_driver\u00a0\u4e3a\u4f8b&#xff09;<\/p>\n<p>class dadd_driver extends uvm_driver #(dadd_item);<br \/>\n    &#096;uvm_component_utils(dadd_driver)<br \/>\n    function new(string name&#061;&#034;dadd_driver&#034;, uvm_component parent);<br \/>\n        super.new(name, parent);<br \/>\n    endfunction<\/p>\n<p>    task build_phase(uvm_phase phase);<br \/>\n        &#096;uvm_info(&#034;DRV&#034;, &#034;build_phase executed&#034;, UVM_LOW)<br \/>\n        super.build_phase(phase);<br \/>\n    endtask<\/p>\n<p>    task connect_phase(uvm_phase phase);<br \/>\n        &#096;uvm_info(&#034;DRV&#034;, &#034;connect_phase executed&#034;, UVM_LOW)<br \/>\n        super.connect_phase(phase);<br \/>\n    endtask<br \/>\n    \/\/ &#8230; \u5176\u4ed6 phase \u540c\u7406\u52a0\u5165\u6253\u5370 &#8230;<br \/>\nendclass<\/p>\n<p>&#xff08;2&#xff09;\u65e5\u5fd7\u5206\u6790&#xff08;\u4ee5\u00a0build_phase\u00a0\u548c\u00a0connect_phase\u00a0\u4e3a\u4f8b&#xff09;<\/p>\n<p>build_phase\u00a0\u65e5\u5fd7&#xff08;\u81ea\u4e0a\u800c\u4e0b&#xff09;&#xff1a;<\/p>\n<p>UVM_INFO dadd_driver.sv(10) &#064; 0: uvm_test_top.env.iagt.drv [DRV] build_phase executed<br \/>\nUVM_INFO dadd_imonitor.sv(10) &#064; 0: uvm_test_top.env.iagt.imon [MON] build_phase executed<br \/>\nUVM_INFO dadd_sequencer.sv(10) &#064; 0: uvm_test_top.env.iagt.sqr [SQR] build_phase executed<br \/>\nUVM_INFO dadd_oagent.sv(10) &#064; 0: uvm_test_top.env.oagt [OAGT] build_phase executed<\/p>\n<ul>\n<li>\u903b\u8f91&#xff1a;\u5148\u6267\u884c\u00a0uvm_test_top\u00a0\u7684\u00a0build_phase&#xff08;\u672a\u5b8c\u6574\u6253\u5370 &#xff09;&#xff0c;\u518d\u6267\u884c\u00a0env\u00a0\u7684\u00a0build_phase&#xff0c;\u7136\u540e\u6309\u5b57\u5178\u5e8f\u6267\u884c\u00a0iagt\u00a0\u5185\u7684\u00a0drv\u2192imon\u2192sqr&#xff0c;\u6700\u540e\u6267\u884c\u00a0oagt&#xff08;\u56e0\u00a0iagt\u00a0\u5b57\u5178\u5e8f\u5c0f\u4e8e\u00a0oagt\u00a0&#xff09;\u3002<\/li>\n<\/ul>\n<p>connect_phase\u00a0\u65e5\u5fd7&#xff08;\u81ea\u4e0b\u800c\u4e0a&#xff09;&#xff1a;<\/p>\n<p>UVM_INFO dadd_driver.sv(15) &#064; 0: uvm_test_top.env.iagt.drv [DRV] connect_phase executed<br \/>\nUVM_INFO dadd_imonitor.sv(15) &#064; 0: uvm_test_top.env.iagt.imon [MON] connect_phase executed<br \/>\nUVM_INFO dadd_sequencer.sv(15) &#064; 0: uvm_test_top.env.iagt.sqr [SQR] connect_phase executed<br \/>\nUVM_INFO dadd_oagent.sv(15) &#064; 0: uvm_test_top.env.oagt [OAGT] connect_phase executed<br \/>\nUVM_INFO dadd_env.sv(15) &#064; 0: uvm_test_top.env [ENV] connect_phase executed<br \/>\nUVM_INFO dadd_test.sv(15) &#064; 0: uvm_test_top [TEST] connect_phase executed<\/p>\n<ul>\n<li>\u903b\u8f91&#xff1a;\u5148\u6267\u884c\u53f6\u5b50\u7ec4\u4ef6&#xff08;drv\u2192imon\u2192sqr\u00a0&#xff09;&#xff0c;\u518d\u6267\u884c\u7236\u7ec4\u4ef6&#xff08;oagt\u2192env\u2192uvm_test_top\u00a0&#xff09;&#xff0c;\u7b26\u5408 \u201c\u81ea\u4e0b\u800c\u4e0a\u201d \u89c4\u5219\u3002<\/li>\n<\/ul>\n<h4 id=\"3.%20%E5%85%B3%E9%94%AE%E7%BB%86%E8%8A%82%E4%B8%8E%E6%98%93%E9%94%99%E7%82%B9\">3. \u5173\u952e\u7ec6\u8282\u4e0e\u6613\u9519\u70b9<\/h4>\n<p>&#xff08;1&#xff09;\u00a0run_phase\u00a0\u4e0e\u00a0main_phase\u00a0\u7684\u5173\u7cfb<\/p>\n<ul>\n<li>run_phase\u00a0\u662f\u00a0task phase\u00a0\u7684\u7236 phase&#xff0c;main_phase\u00a0\u662f\u00a0run_phase\u00a0\u7684\u5b50 phase&#xff08;\u5c5e\u4e8e\u00a0task phase\u00a0\u7c7b\u522b &#xff09;\u3002<\/li>\n<li>\u6267\u884c\u987a\u5e8f&#xff1a;run_phase\u00a0\u542f\u52a8\u540e&#xff0c;main_phase\u00a0\u4f1a\u81ea\u52a8\u6267\u884c&#xff0c;\u4e14\u9075\u5faa\u00a0\u81ea\u4e0b\u800c\u4e0a\u00a0\u89c4\u5219&#xff08;\u5982\u5148\u00a0driver.main_phase&#xff0c;\u518d\u00a0agent.main_phase\u00a0\u7b49 &#xff09;\u3002<\/li>\n<\/ul>\n<p>&#xff08;2&#xff09;\u5b57\u5178\u5e8f\u7684\u5177\u4f53\u8868\u73b0<\/p>\n<ul>\n<li>\u540c\u7ea7\u7ec4\u4ef6\u7684 phase \u6267\u884c\u987a\u5e8f&#xff0c;\u4e25\u683c\u6309\u00a0\u201cnew \u65f6\u7684\u540d\u79f0\u5b57\u7b26\u4e32\u6bd4\u8f83\u201d&#xff0c;\u5982&#xff1a;\n<ul>\n<li>\u540d\u79f0\u4e3a\u00a0a_drv\u00a0\u548c\u00a0b_drv\u00a0\u2192\u00a0a_drv\u00a0\u5148\u6267\u884c&#xff08;\u56e0\u00a0a\u00a0\u7684 ASCII \u7801\u5c0f\u4e8e\u00a0b\u00a0&#xff09;\u3002<\/li>\n<li>\u540d\u79f0\u4e3a\u00a0drv1\u00a0\u548c\u00a0drv2\u00a0\u2192\u00a0drv1\u00a0\u5148\u6267\u884c&#xff08;\u6570\u5b57\u00a01\u00a0\u7684 ASCII \u7801\u5c0f\u4e8e\u00a02\u00a0&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&#xff08;3&#xff09;phase\u00a0\u963b\u585e\u4e0e objection \u673a\u5236<\/p>\n<ul>\n<li>task phase&#xff08;\u5982\u00a0main_phase\u3001run_phase\u00a0&#xff09;\u9700\u8981\u901a\u8fc7\u00a0phase.raise_objection\u00a0\u548c\u00a0phase.drop_objection\u00a0\u63a7\u5236\u4eff\u771f\u8fdb\u5ea6&#xff0c;\u5426\u5219\u4eff\u771f\u4f1a\u76f4\u63a5\u7ed3\u675f\u3002<\/li>\n<li>function phase&#xff08;\u5982\u00a0build_phase\u3001connect_phase\u00a0&#xff09;\u662f\u7eaf\u51fd\u6570&#xff0c;\u65e0\u9700 objection \u673a\u5236&#xff0c;\u6267\u884c\u5b8c\u7acb\u5373\u9000\u51fa\u3002<\/li>\n<\/ul>\n<h4 id=\"4.%20%E5%AE%9E%E9%AA%8C%E4%BB%B7%E5%80%BC%E4%B8%8E%E5%BA%94%E7%94%A8%E5%9C%BA%E6%99%AF\">4. \u5b9e\u9a8c\u4ef7\u503c\u4e0e\u5e94\u7528\u573a\u666f<\/h4>\n<p>&#xff08;1&#xff09;\u9a8c\u8bc1\u5e73\u53f0\u6784\u5efa<\/p>\n<ul>\n<li>build_phase\u00a0\u81ea\u4e0a\u800c\u4e0b&#xff1a;\u786e\u4fdd\u7236\u7ec4\u4ef6\u5148\u5b8c\u6210 \u201c\u8d44\u6e90\u5206\u914d\u201d&#xff08;\u5982\u521b\u5efa\u5b50\u7ec4\u4ef6 &#xff09;&#xff0c;\u5b50\u7ec4\u4ef6\u518d\u521d\u59cb\u5316&#xff08;\u5982\u00a0driver\u00a0\u5728\u00a0agent.build_phase\u00a0\u4e2d\u88ab\u521b\u5efa &#xff09;\u3002<\/li>\n<li>connect_phase\u00a0\u81ea\u4e0b\u800c\u4e0a&#xff1a;\u786e\u4fdd\u5b50\u7ec4\u4ef6\u5148\u5b8c\u6210 \u201c\u7aef\u53e3\u8fde\u63a5\u201d&#xff08;\u5982\u00a0driver.seq_item_port\u00a0\u8fde\u63a5\u00a0sequencer\u00a0&#xff09;&#xff0c;\u7236\u7ec4\u4ef6\u518d\u505a\u5168\u5c40\u8fde\u63a5&#xff08;\u5982\u00a0agent\u00a0\u8fde\u63a5\u00a0scoreboard\u00a0&#xff09;\u3002<\/li>\n<\/ul>\n<p>&#xff08;2&#xff09;\u8c03\u8bd5\u4e0e\u95ee\u9898\u5b9a\u4f4d<\/p>\n<ul>\n<li>\u82e5\u5b50\u7ec4\u4ef6\u7684\u00a0build_phase\u00a0\u672a\u6267\u884c&#xff0c;\u9700\u68c0\u67e5\u7236\u7ec4\u4ef6\u662f\u5426\u5728\u00a0build_phase\u00a0\u4e2d\u6b63\u786e\u521b\u5efa\u4e86\u5b83&#xff08;\u56e0\u00a0build_phase\u00a0\u81ea\u4e0a\u800c\u4e0b&#xff0c;\u7236\u7ec4\u4ef6\u672a\u521b\u5efa\u5219\u5b50\u7ec4\u4ef6\u65e0\u6cd5\u6267\u884c &#xff09;\u3002<\/li>\n<li>\u82e5\u00a0connect_phase\u00a0\u903b\u8f91\u5f02\u5e38&#xff0c;\u9700\u68c0\u67e5\u662f\u5426\u56e0 \u201c\u81ea\u4e0b\u800c\u4e0a\u201d \u987a\u5e8f\u5bfc\u81f4&#xff0c;\u5b50\u7ec4\u4ef6\u7684\u7aef\u53e3\u672a\u51c6\u5907\u597d\u65f6\u7236\u7ec4\u4ef6\u5df2\u5f00\u59cb\u8fde\u63a5\u3002<\/li>\n<\/ul>\n<p>&#xff08;3&#xff09; \u590d\u6742\u573a\u666f\u63a7\u5236<\/p>\n<ul>\n<li>\u5bf9\u4e8e\u591a\u00a0agent\u3001\u591a\u00a0sequence\u00a0\u7684\u9a8c\u8bc1\u5e73\u53f0&#xff0c;\u5229\u7528\u00a0\u5b57\u5178\u5e8f\u63a7\u5236\u540c\u7ea7\u7ec4\u4ef6\u6267\u884c\u987a\u5e8f&#xff0c;\u53ef\u786e\u4fdd\u7279\u5b9a\u7ec4\u4ef6\u4f18\u5148\u6267\u884c&#xff08;\u5982\u00a0monitor\u00a0\u5148\u91c7\u6837&#xff0c;driver\u00a0\u540e\u9a71\u52a8 &#xff09;\u3002<\/li>\n<\/ul>\n<h4 id=\"5.%20%E6%80%BB%E7%BB%93\">5. \u603b\u7ed3<\/h4>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0UVM phase \u6267\u884c\u987a\u5e8f\u7684\u6838\u5fc3\u903b\u8f91\u53ef\u5f52\u7eb3\u4e3a&#xff1a;<\/p>\n<ul>\n<li>\u540c\u4e00\u7ec4\u4ef6\u5185&#xff1a;\u6309\u529f\u80fd\u9636\u6bb5\u987a\u5e8f&#xff08;build\u2192connect\u2192run\u00a0\u7b49 &#xff09;\u4f9d\u6b21\u6267\u884c\u3002<\/li>\n<li>\u6811\u5f62\u7ed3\u6784\u4e2d&#xff1a;build_phase\u00a0\u548c\u00a0final_phase\u00a0\u81ea\u4e0a\u800c\u4e0b&#xff0c;\u5176\u4f59 phase \u81ea\u4e0b\u800c\u4e0a\u3002<\/li>\n<li>\u540c\u7ea7\u7ec4\u4ef6\u95f4&#xff1a;\u6309\u5b9e\u4f8b\u5316\u540d\u79f0\u7684\u5b57\u5178\u5e8f\u6267\u884c\u3002<\/li>\n<\/ul>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u7406\u89e3\u8fd9\u4e09\u7c7b\u987a\u5e8f&#xff0c;\u80fd\u7cbe\u51c6\u63a7\u5236\u9a8c\u8bc1\u5e73\u53f0\u7684\u00a0\u7ec4\u4ef6\u521d\u59cb\u5316\u6d41\u7a0b\u3001\u7aef\u53e3\u8fde\u63a5\u65f6\u673a\u3001\u6fc0\u52b1\u6ce8\u5165\u987a\u5e8f&#xff0c;\u662f\u6784\u5efa\u590d\u6742 UVM \u9a8c\u8bc1\u73af\u5883\u7684\u57fa\u7840\u3002\u5b9e\u9a8c\u4e2d\u901a\u8fc7\u6253\u5370\u5404 phase \u6267\u884c\u65e5\u5fd7&#xff0c;\u53ef\u76f4\u89c2\u9a8c\u8bc1\u8fd9\u4e9b\u89c4\u5219&#xff0c;\u4e3a\u8c03\u8bd5\u548c\u4f18\u5316\u9a8c\u8bc1\u5e73\u53f0\u63d0\u4f9b\u4f9d\u636e\u3002<\/p>\n<h3 id=\"%EF%BC%88%E4%B8%89%EF%BC%89sequence%20%E6%BF%80%E5%8A%B1%E4%BA%A7%E7%94%9F%E4%B8%8E%E4%BA%A4%E4%BA%92%E6%89%A7%E8%A1%8C%E6%9C%BA%E5%88%B6\">&#xff08;\u4e09&#xff09;sequence \u6fc0\u52b1\u4ea7\u751f\u4e0e\u4ea4\u4e92\u6267\u884c\u673a\u5236<\/h3>\n<h4 id=\"1.%C2%A0sequence%20%E6%A0%B8%E5%BF%83%E6%9C%BA%E5%88%B6%E6%A6%82%E8%BF%B0\">1.\u00a0sequence \u6838\u5fc3\u673a\u5236\u6982\u8ff0<\/h4>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5728 UVM \u4e2d&#xff0c;sequence\u00a0\u673a\u5236\u662f\u6fc0\u52b1\u4ea7\u751f\u3001\u8c03\u5ea6\u4e0e\u9a71\u52a8\u7684\u6838\u5fc3&#xff0c;\u901a\u8fc7\u00a0sequence\u3001sequencer\u3001driver\u00a0\u7684\u534f\u4f5c&#xff0c;\u5b9e\u73b0 \u201c\u6fc0\u52b1\u751f\u6210\u2192\u4ef2\u88c1\u8c03\u5ea6\u2192\u4fe1\u53f7\u9a71\u52a8\u2192\u7ed3\u679c\u53cd\u9988\u201d \u7684\u5b8c\u6574\u95ed\u73af\u3002\u4ee5\u4e0b\u4ece\u00a0\u6267\u884c\u89c4\u5219\u3001\u4ee3\u7801\u6620\u5c04\u3001\u5b9e\u9a8c\u9a8c\u8bc1\u00a0\u4e09\u4e2a\u7ef4\u5ea6\u89e3\u6790\u5176\u6838\u5fc3\u903b\u8f91&#xff1a;<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"303\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815074037-689ee475b1f43.png\" width=\"525\" \/><\/p>\n<p>&#xff08;1&#xff09;\u6267\u884c\u89c4\u5219<\/p>\n<ul>\n<li>\u89d2\u8272\u5206\u5de5&#xff1a;\n<ul>\n<li>sequence&#xff1a;\u4f5c\u4e3a \u201c\u6fc0\u52b1\u751f\u6210\u5668\u201d&#xff0c;\u8d1f\u8d23\u521b\u5efa\u3001\u968f\u673a\u5316\u00a0sequence_item&#xff08;\u4e8b\u52a1\u5305&#xff09;&#xff0c;\u5e76\u901a\u8fc7\u00a0sequencer\u00a0\u53d1\u9001\u7ed9\u00a0driver\u3002<\/li>\n<li>sequencer&#xff1a;\u4f5c\u4e3a \u201c\u8c03\u5ea6\u4e2d\u5fc3\u201d&#xff0c;\u63a5\u6536\u591a\u4e2a\u00a0sequence\u00a0\u7684\u8bf7\u6c42&#xff0c;\u901a\u8fc7\u4ef2\u88c1\u7b97\u6cd5&#xff08;\u5982 FIFO\u3001\u4f18\u5148\u7ea7&#xff09;\u51b3\u5b9a\u53d1\u9001\u987a\u5e8f&#xff0c;\u518d\u8f6c\u53d1\u7ed9\u00a0driver\u3002<\/li>\n<li>driver&#xff1a;\u4f5c\u4e3a \u201c\u6267\u884c\u8005\u201d&#xff0c;\u4ece\u00a0sequencer\u00a0\u83b7\u53d6\u00a0sequence_item&#xff0c;\u8f6c\u6362\u4e3a\u7269\u7406\u4fe1\u53f7\u9a71\u52a8 DUT&#xff0c;\u5e76\u53ef\u901a\u8fc7\u00a0response\u00a0\u53cd\u9988\u7ed3\u679c\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u4ea4\u4e92\u6d41\u7a0b&#xff08;\u5b8c\u6574\u63e1\u624b&#xff09;&#xff1a;\n<ul>\n<li>sequence\u00a0\u751f\u6210\u00a0sequence_item\u00a0\u5e76\u968f\u673a\u5316&#xff0c;\u901a\u8fc7\u00a0start_item\/finish_item\u00a0\u63d0\u4ea4\u7ed9\u00a0sequencer\u3002<\/li>\n<li>sequencer\u00a0\u4ef2\u88c1\u540e\u5c06\u00a0item\u00a0\u653e\u5165\u00a0REQ_FIFO&#xff0c;driver\u00a0\u901a\u8fc7\u00a0get_next_item\u00a0\u53d6\u8d70\u5e76\u9a71\u52a8 DUT\u3002<\/li>\n<li>\u82e5\u9700\u53cd\u9988&#xff0c;driver\u00a0\u751f\u6210\u00a0response\u00a0\u653e\u5165\u00a0RSP_FIFO&#xff0c;sequence\u00a0\u901a\u8fc7\u00a0get_response\u00a0\u83b7\u53d6\u7ed3\u679c&#xff0c;\u5b8c\u6210\u751f\u547d\u5468\u671f\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&#xff08;2&#xff09;\u603b\u7ed3<\/p>\n<ul>\n<li>sequence\u00a0\u4e13\u6ce8\u4e8e \u201c\u4ea7\u751f\u4ec0\u4e48\u6fc0\u52b1\u201d&#xff0c;\u652f\u6301\u968f\u673a\u5316\u548c\u7ea6\u675f&#xff0c;\u8986\u76d6\u591a\u6837\u5316\u6d4b\u8bd5\u573a\u666f\u3002<\/li>\n<li>sequencer\u00a0\u4e13\u6ce8\u4e8e \u201c\u4f55\u65f6\u53d1\u9001\u6fc0\u52b1\u201d&#xff0c;\u901a\u8fc7\u4ef2\u88c1\u7b97\u6cd5\u534f\u8c03\u591a\u00a0sequence\u00a0\u7ade\u4e89\u3002<\/li>\n<li>driver\u00a0\u4e13\u6ce8\u4e8e \u201c\u5982\u4f55\u9a71\u52a8\u6fc0\u52b1\u201d&#xff0c;\u5c06\u62bd\u8c61\u4e8b\u52a1\u8f6c\u6362\u4e3a\u7269\u7406\u4fe1\u53f7&#xff0c;\u786e\u4fdd\u65f6\u5e8f\u6b63\u786e<\/li>\n<\/ul>\n<h4 id=\"2.%20sequence_item%E7%9A%84%E5%8F%91%E9%80%81\">2. sequence_item\u7684\u53d1\u9001<\/h4>\n<p>sequence \u7684\u6267\u884c\u5fc5\u987b\u5728 task body \u4e2d\u6267\u884c&#xff0c;task body \u662f\u5728 task phase \u4e2d\u81ea\u52a8\u8c03\u7528\u7684\u3002<\/p>\n<ul><\/ul>\n<h5 id=\"2.1%20%E6%A0%B8%E5%BF%83%E8%A7%84%E5%88%99%EF%BC%9Asequence_item%C2%A0%E5%8F%91%E9%80%81%E7%9A%84%E4%B8%89%E7%A7%8D%E6%96%B9%E6%B3%95\">2.1 \u6838\u5fc3\u89c4\u5219&#xff1a;sequence_item\u00a0\u53d1\u9001\u7684\u4e09\u79cd\u65b9\u6cd5<\/h5>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5728 UVM \u4e2d&#xff0c;sequence\u00a0\u53d1\u9001\u00a0sequence_item&#xff08;\u4e8b\u52a1\u5305&#xff0c;\u5982\u00a0dadd_item\u00a0&#xff09;\u6709\u4e09\u7c7b\u5178\u578b\u65b9\u6cd5&#xff0c;\u672c\u8d28\u90fd\u662f\u00a0\u201c\u5b9e\u4f8b\u5316\u2192\u968f\u673a\u5316\u2192\u53d1\u9001\u7ed9\u00a0sequencer\u201d\u00a0\u7684\u6d41\u7a0b\u5c01\u88c5&#xff0c;\u4f46\u8bed\u6cd5\u548c\u590d\u6742\u5ea6\u4e0d\u540c&#xff1a;<\/p>\n<table>\n<tr>\u65b9\u6cd5\u5206\u7c7b\u6838\u5fc3\u8bed\u6cd5\u5c01\u88c5\u5c42\u7ea7\u9002\u7528\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>\u57fa\u7840\u65b9\u6cd5<\/td>\n<td>start_item\u00a0&#043;\u00a0finish_item<\/td>\n<td>\u6700\u5e95\u5c42&#xff0c;\u65e0\u5c01\u88c5<\/td>\n<td>\u9700\u7cbe\u51c6\u63a7\u5236\u53d1\u9001\u6d41\u7a0b&#xff08;\u5982\u8c03\u8bd5&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u5b8f\u5c01\u88c5\u65b9\u6cd5<\/td>\n<td>uvm_create\u00a0&#043;\u00a0uvm_send<\/td>\n<td>\u5c01\u88c5\u00a0new\u00a0&#043;\u00a0start_item\/finish_item<\/td>\n<td>\u9700\u7075\u6d3b\u6307\u5b9a\u00a0sequencer<\/td>\n<\/tr>\n<tr>\n<td>\u9ad8\u7ea7\u5b8f&#xff08;\u5e38\u7528&#xff09;<\/td>\n<td>uvm_do\u00a0\u7cfb\u5217\u5b8f<\/td>\n<td>\u5c01\u88c5\u00a0uvm_create\u00a0&#043; \u5b8c\u6574\u6d41\u7a0b<\/td>\n<td>\u65e5\u5e38\u9a8c\u8bc1&#xff08;\u7b80\u6d01\u9ad8\u6548&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5 id=\"2.2%20%E9%80%90%E7%B1%BB%E8%A7%A3%E6%9E%90%EF%BC%9A%E4%BB%A3%E7%A0%81%E9%80%BB%E8%BE%91%E4%B8%8E%E5%AE%9E%E9%AA%8C%E9%AA%8C%E8%AF%81\">2.2 \u9010\u7c7b\u89e3\u6790&#xff1a;\u4ee3\u7801\u903b\u8f91\u4e0e\u5b9e\u9a8c\u9a8c\u8bc1<\/h5>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u4ee5\u4e0b\u7ed3\u5408\u00a0dadd\u00a0\u9a8c\u8bc1\u5e73\u53f0\u7684\u00a0dadd_rand_sequence.sv\u00a0\u4ee3\u7801\u548c\u00a0Makefile\u00a0\u811a\u672c&#xff0c;\u8bf4\u660e\u6bcf\u79cd\u65b9\u6cd5\u7684\u7ec6\u8282&#xff1a;<\/p>\n<p>&#xff08;1&#xff09;\u65b9\u6cd5 1&#xff1a;start_item\u00a0&#043;\u00a0finish_item&#xff08;\u57fa\u7840\u6d41\u7a0b&#xff09;<\/p>\n<p>\u6267\u884c\u89c4\u5219&#xff1a;\u624b\u52a8\u5b8c\u6210\u00a0sequence_item\u00a0\u7684\u00a0\u201c\u5b9e\u4f8b\u5316\u2192\u8fde\u63a5\u00a0sequencer\u2192\u968f\u673a\u5316\u2192\u53d1\u9001\u201d\u00a0\u5168\u6d41\u7a0b&#xff0c;\u6bcf\u4e00\u6b65\u9700\u663e\u5f0f\u8c03\u7528&#xff1a;<\/p>\n<table>\n<tr>\u6b65\u9aa4\u4ee3\u7801\u903b\u8f91\u4f5c\u7528\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>1. \u5b9e\u4f8b\u5316\u00a0item<\/td>\n<td>item &#061; new(&#034;item&#034;);<\/td>\n<td>\u521b\u5efa\u00a0dadd_item\u00a0\u4e8b\u52a1\u5bf9\u8c61&#xff0c;\u51c6\u5907\u627f\u8f7d\u6fc0\u52b1\u6570\u636e<\/td>\n<\/tr>\n<tr>\n<td>2. \u8fde\u63a5\u00a0sequencer<\/td>\n<td>start_item(item);<\/td>\n<td>\u8ba9\u00a0item\u00a0\u4e0e\u00a0iagt.sqr&#xff08;\u8f93\u5165\u00a0agent\u00a0\u7684\u00a0sequencer\u00a0&#xff09;\u5efa\u7acb\u8c03\u5ea6\u8fde\u63a5<\/td>\n<\/tr>\n<tr>\n<td>3. \u968f\u673a\u5316\u00a0item<\/td>\n<td>item.randomize();<\/td>\n<td>\u968f\u673a\u751f\u6210\u00a0addr\u3001data\u3001data_en\u00a0\u7b49\u5b57\u6bb5&#xff0c;\u6a21\u62df\u771f\u5b9e\u6fc0\u52b1<\/td>\n<\/tr>\n<tr>\n<td>4. \u53d1\u9001\u7ed9\u00a0driver<\/td>\n<td>finish_item(item);<\/td>\n<td>\u901a\u77e5\u00a0sequencer\u00a0\u5b8c\u6210\u8c03\u5ea6&#xff0c;\u5c06\u00a0item\u00a0\u8f6c\u53d1\u7ed9\u00a0driver\u00a0\u9a71\u52a8 DUT<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ee3\u7801\u6620\u5c04&#xff08;dadd_sequence.sv\u00a0\u4e2d\u00a0START_ITEM\u00a0\u5206\u652f &#xff09;&#xff1a;<\/p>\n<p>&#096;ifdef START_ITEM<br \/>\ntask body();<br \/>\n  if(starting_phase !&#061; null)<br \/>\n    starting_phase.raise_objection(this);  \/\/ \u963b\u6b62\u4eff\u771f\u63d0\u524d\u7ed3\u675f<br \/>\n  repeat(20) begin  \/\/ \u53d1\u900120\u4e2a\u4e8b\u52a1<br \/>\n    item &#061; new(&#034;item&#034;);         \/\/ 1. \u5b9e\u4f8b\u5316<br \/>\n    start_item(item);           \/\/ 2. \u8fde\u63a5sequencer<br \/>\n    item.randomize();           \/\/ 3. \u968f\u673a\u5316<br \/>\n    finish_item(item);          \/\/ 4. \u53d1\u9001\u7ed9driver<br \/>\n  end<br \/>\n  if(starting_phase !&#061; null)<br \/>\n    starting_phase.drop_objection(this);  \/\/ \u5141\u8bb8\u4eff\u771f\u7ed3\u675f<br \/>\nendtask : body<br \/>\n&#096;endif<\/p>\n<p>\u5b9e\u9a8c\u9a8c\u8bc1&#xff08;\u6267\u884c\u00a0make send_item_start_item\u00a0&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u65e5\u5fd7\u663e\u793a 20 \u6b21\u00a0item\u00a0\u53d1\u9001&#xff0c;\u6bcf\u6b21\u542b\u968f\u673a\u5316\u7684\u00a0addr\u3001data\u3002<\/li>\n<li>\u6ce2\u5f62\u4e2d\u00a0dadd_if\u00a0\u63a5\u53e3\u7684\u4fe1\u53f7&#xff08;\u5982\u00a0addr\u3001data\u00a0&#xff09;\u4e0e\u65e5\u5fd7\u5339\u914d&#xff0c;\u8bc1\u660e\u00a0driver\u00a0\u6b63\u786e\u9a71\u52a8 DUT\u3002<\/li>\n<\/ul>\n<p>UVM_INFO dadd_sequence.sv(12) &#064; 100ns: uvm_test_top.env.iagt.sqr [SEQ] Sent item: addr&#061;0x12, data&#061;0x34, data_en&#061;1<\/p>\n<ul><\/ul>\n<p>&#xff08;2&#xff09;\u65b9\u6cd5 2&#xff1a;uvm_create\u00a0&#043;\u00a0uvm_send&#xff08;\u5b8f\u5c01\u88c5\u57fa\u7840\u6d41\u7a0b&#xff09;<\/p>\n<p>\u6267\u884c\u89c4\u5219&#xff1a;\u7528\u00a0uvm_create\u00a0\u66ff\u4ee3\u00a0new\u00a0\u5b9e\u4f8b\u5316\u00a0item&#xff0c;\u7528\u00a0uvm_send\u00a0\u66ff\u4ee3\u00a0start_item\/finish_item\u00a0\u53d1\u9001&#xff0c;\u672c\u8d28\u662f\u00a0\u5c01\u88c5\u4e86\u57fa\u7840\u65b9\u6cd5\u7684\u8bed\u6cd5\u7cd6&#xff0c;\u4f46\u66f4\u7075\u6d3b&#xff08;\u53ef\u6307\u5b9a\u00a0sequencer\u00a0&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u6b65\u9aa4\u4ee3\u7801\u903b\u8f91\u4f5c\u7528\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td style=\"width:126px\">1. \u5b9e\u4f8b\u5316\u00a0item<\/td>\n<td style=\"width:208px\">uvm_create(item);\u00a0\u6216\u00a0uvm_create_on(item, sqr);<\/td>\n<td>\u4e0d\u4ec5\u521b\u5efa\u00a0item&#xff0c;\u8fd8\u53ef\u6307\u5b9a\u53d1\u9001\u5230\u54ea\u4e2a\u00a0sequencer&#xff08;\u5982\u00a0iagt.sqr\u00a0\u6216\u00a0oagt.sqr\u00a0&#xff09;<\/td>\n<\/tr>\n<tr>\n<td style=\"width:126px\">2. \u968f\u673a\u5316\u00a0item<\/td>\n<td style=\"width:208px\">item.randomize();<\/td>\n<td>\u540c\u65b9\u6cd5 1<\/td>\n<\/tr>\n<tr>\n<td style=\"width:126px\">3. \u53d1\u9001\u7ed9\u00a0driver<\/td>\n<td style=\"width:208px\">uvm_send(item);<\/td>\n<td>\u5c01\u88c5\u00a0start_item\/finish_item&#xff0c;\u7b80\u5316\u53d1\u9001\u6d41\u7a0b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ee3\u7801\u6620\u5c04&#xff08;dadd_sequence.sv\u00a0\u4e2d\u00a0UVM_CREATE\u00a0\u5206\u652f &#xff09;&#xff1a;<\/p>\n<p>&#096;elsif UVM_CREATE<br \/>\ntask body();<br \/>\n  if(starting_phase !&#061; null)<br \/>\n    starting_phase.raise_objection(this);<br \/>\n  repeat(20) begin<br \/>\n    &#096;uvm_create(item);  \/\/ 1. \u5b9e\u4f8b\u5316&#xff08;\u53ef\u6307\u5b9asequencer&#xff09;<br \/>\n    item.randomize();   \/\/ 2. \u968f\u673a\u5316<br \/>\n    &#096;uvm_send(item);    \/\/ 3. \u53d1\u9001&#xff08;\u5c01\u88c5start_item\/finish_item&#xff09;<br \/>\n  end<br \/>\n  if(starting_phase !&#061; null)<br \/>\n    starting_phase.drop_objection(this);<br \/>\nendtask : body<br \/>\n&#096;endif<\/p>\n<p>\u5b9e\u9a8c\u9a8c\u8bc1&#xff08;\u6267\u884c\u00a0make send_item_uvm_create\u00a0&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u65e5\u5fd7\u4e0e\u65b9\u6cd5 1 \u7c7b\u4f3c&#xff0c;\u4f46\u4ee3\u7801\u66f4\u7b80\u6d01&#xff0c;uvm_create\/uvm_send\u00a0\u9690\u5f0f\u5b8c\u6210\u8fde\u63a5\u548c\u53d1\u9001\u3002<\/li>\n<li>\u82e5\u4fee\u6539\u4e3a\u00a0uvm_create_on(item, env.oagt.sqr);&#xff0c;item\u00a0\u4f1a\u53d1\u9001\u5230\u00a0oagt\u00a0\u7684\u00a0sequencer&#xff0c;\u6ce2\u5f62\u4e2d\u00a0oagt\u00a0\u63a5\u53e3\u4fe1\u53f7\u53d8\u5316&#xff0c;\u9a8c\u8bc1\u8de8\u00a0agent\u00a0\u53d1\u9001\u3002<\/li>\n<\/ul>\n<p>&#xff08;3&#xff09;\u65b9\u6cd5 3&#xff1a;uvm_do\u00a0\u7cfb\u5217\u5b8f&#xff08;\u9ad8\u7ea7\u5c01\u88c5&#xff0c;\u6700\u5e38\u7528&#xff09;<\/p>\n<p>\u6267\u884c\u89c4\u5219&#xff1a; uvm_do\u00a0\u662f\u00a0\u201c\u4e00\u7ad9\u5f0f\u201d \u5b8f&#xff0c;\u76f4\u63a5\u5c01\u88c5 \u201c\u5b9e\u4f8b\u5316\u2192\u968f\u673a\u5316\u2192\u53d1\u9001\u201d \u5168\u6d41\u7a0b&#xff0c;\u751a\u81f3\u53ef\u5e26\u7ea6\u675f&#xff08;uvm_do_with\u00a0&#xff09;\u6216\u4f18\u5148\u7ea7&#xff08;uvm_do_pri\u00a0&#xff09;&#xff0c;\u662f\u65e5\u5e38\u9a8c\u8bc1\u6700\u5e38\u7528\u7684\u65b9\u6cd5&#xff1a;<\/p>\n<table>\n<tr>\u5b8f\u7c7b\u578b\u8bed\u6cd5\u793a\u4f8b\u4f5c\u7528\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u57fa\u7840\u53d1\u9001<\/td>\n<td>uvm_do(item);<\/td>\n<td>\u81ea\u52a8\u5b8c\u6210\u5b9e\u4f8b\u5316\u3001\u968f\u673a\u5316\u3001\u53d1\u9001<\/td>\n<\/tr>\n<tr>\n<td>\u5e26\u7ea6\u675f\u53d1\u9001<\/td>\n<td>uvm_do_with(item, {item.data_en&#061;&#061;1;});<\/td>\n<td>\u968f\u673a\u5316\u65f6\u56fa\u5b9a\u00a0data_en&#061;1&#xff0c;\u5176\u4ed6\u5b57\u6bb5\u968f\u673a<\/td>\n<\/tr>\n<tr>\n<td>\u6307\u5b9a\u00a0sequencer\u00a0\u53d1\u9001<\/td>\n<td>uvm_do_on(item, env.iagt.sqr);<\/td>\n<td>\u5f3a\u5236\u00a0item\u00a0\u53d1\u9001\u5230\u00a0iagt\u00a0\u7684\u00a0sequencer<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ee3\u7801\u6620\u5c04&#xff08;dadd_sequence.sv\u00a0\u4e2d\u00a0UVM_DO\u00a0\u5206\u652f &#xff09;&#xff1a;<\/p>\n<p>&#096;else\/\/UVM_DO<br \/>\ntask body();<br \/>\n  if(starting_phase !&#061; null)<br \/>\n    starting_phase.raise_objection(this);<br \/>\n  repeat(20) begin<br \/>\n    &#096;uvm_do(item)  \/\/ \u4e00\u7ad9\u5f0f\u5b8c\u6210\u5b9e\u4f8b\u5316\u3001\u968f\u673a\u5316\u3001\u53d1\u9001<br \/>\n  end<br \/>\n  if(starting_phase !&#061; null)<br \/>\n    starting_phase.drop_objection(this);<br \/>\nendtask : body<br \/>\n&#096;endif<\/p>\n<p>\u5b9e\u9a8c\u9a8c\u8bc1&#xff08;\u6267\u884c\u00a0make send_item_uvm_do\u00a0&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u65e5\u5fd7\u4e0e\u524d\u4e24\u79cd\u65b9\u6cd5\u4e00\u81f4&#xff0c;\u4f46\u4ee3\u7801\u884c\u6570\u6700\u5c11&#xff0c;uvm_do\u00a0\u9690\u5f0f\u5b8c\u6210\u6240\u6709\u6b65\u9aa4\u3002<\/li>\n<li>\u82e5\u4fee\u6539\u4e3a\u00a0uvm_do_with(item, {item.addr&#061;&#061;0x5a5a;});&#xff0c;\u65e5\u5fd7\u4e2d\u00a0addr\u00a0\u56fa\u5b9a\u4e3a\u00a00x5a5a&#xff0c;\u9a8c\u8bc1\u7ea6\u675f\u751f\u6548\u3002<\/li>\n<\/ul>\n<h5 id=\"2.3%20%E5%85%B3%E9%94%AE%E7%BB%86%E8%8A%82%E4%B8%8E%E5%AF%B9%E6%AF%94\">2.3 \u5173\u952e\u7ec6\u8282\u4e0e\u5bf9\u6bd4<\/h5>\n<p>&#xff08;1&#xff09;\u65b9\u6cd5\u9009\u62e9\u5efa\u8bae<\/p>\n<ul>\n<li>\u8c03\u8bd5\u9636\u6bb5&#xff1a;\u7528\u00a0start_item\/finish_item&#xff0c;\u9010\u884c\u63a7\u5236\u6d41\u7a0b&#xff0c;\u65b9\u4fbf\u5b9a\u4f4d\u95ee\u9898\u3002<\/li>\n<li>\u8de8\u00a0agent\u00a0\u53d1\u9001&#xff1a;\u7528\u00a0uvm_create_on\u00a0\u6216\u00a0uvm_do_on&#xff0c;\u660e\u786e\u6307\u5b9a\u00a0sequencer&#xff0c;\u907f\u514d\u53d1\u9001\u5230\u9519\u8bef\u00a0agent\u3002<\/li>\n<li>\u65e5\u5e38\u9a8c\u8bc1&#xff1a;\u4f18\u5148\u7528\u00a0uvm_do\u00a0\u7cfb\u5217\u5b8f&#xff0c;\u4ee3\u7801\u7b80\u6d01&#xff0c;\u51cf\u5c11\u6837\u677f\u4ee3\u7801\u3002<\/li>\n<\/ul>\n<p>&#xff08;2&#xff09;\u6613\u9519\u70b9<\/p>\n<ul>\n<li>starting_phase\u00a0\u4e3a\u7a7a&#xff1a;\u82e5\u00a0sequence\u00a0\u672a\u5173\u8054\u00a0phase&#xff08;\u5982\u672a\u5728\u00a0test\u00a0\u4e2d\u8bbe\u7f6e\u00a0starting_phase\u00a0&#xff09;&#xff0c;raise_objection\u00a0\u4f1a\u62a5\u9519&#xff0c;\u9700\u786e\u4fdd\u00a0sequence.starting_phase &#061; phase;\u3002<\/li>\n<li>uvm_create\u00a0\u672a\u6307\u5b9a\u00a0sequencer&#xff1a;\u82e5\u672a\u7528\u00a0uvm_create_on\u00a0\u4e14\u00a0p_sequencer\u00a0\u672a\u6b63\u786e\u8fde\u63a5&#xff0c;item\u00a0\u53ef\u80fd\u53d1\u9001\u5230\u00a0null\u00a0sequencer&#xff0c;\u89e6\u53d1\u00a0UVM_ERROR\u3002<\/li>\n<\/ul>\n<h5 id=\"2.4%20%E5%AE%9E%E9%AA%8C%E4%BB%B7%E5%80%BC%E4%B8%8E%E6%80%BB%E7%BB%93\">2.4 \u5b9e\u9a8c\u4ef7\u503c\u4e0e\u603b\u7ed3<\/h5>\n<p>\u901a\u8fc7\u00a0Makefile\u00a0\u811a\u672c\u5207\u6362\u5b8f\u5b9a\u4e49&#xff08;START_ITEM\/UVM_CREATE\/UVM_DO\u00a0&#xff09;&#xff0c;\u53ef\u76f4\u89c2\u5bf9\u6bd4\u4e09\u79cd\u65b9\u6cd5\u7684\u6267\u884c\u6d41\u7a0b&#xff1a;<\/p>\n<ul>\n<li>\u8bc1\u660e\u4e09\u7c7b\u65b9\u6cd5\u672c\u8d28\u662f\u540c\u4e00\u6d41\u7a0b\u7684\u4e0d\u540c\u5c01\u88c5&#xff0c;uvm_do\u00a0\u662f\u6700\u7b80\u6d01\u7684\u9ad8\u9636\u7528\u6cd5\u3002<\/li>\n<li>\u9a8c\u8bc1\u5e73\u53f0\u53ef\u7075\u6d3b\u5207\u6362\u53d1\u9001\u65b9\u5f0f&#xff0c;\u9002\u914d\u4e0d\u540c\u6d4b\u8bd5\u573a\u666f&#xff08;\u5982\u8c03\u8bd5\u3001\u8de8\u00a0agent\u00a0\u3001\u5e26\u7ea6\u675f\u53d1\u9001 &#xff09;\u3002<\/li>\n<\/ul>\n<h4 id=\"3.%20sequence%20%E7%9A%84%E5%8F%91%E9%80%81\">3. sequence \u7684\u53d1\u9001<\/h4>\n<h5 id=\"3.1%20%E6%A0%B8%E5%BF%83%E8%A7%84%E5%88%99%EF%BC%9A%E5%AD%90%C2%A0sequence%C2%A0%E5%8F%91%E9%80%81%E7%9A%84%E4%B8%89%E7%B1%BB%E6%96%B9%E6%B3%95\">3.1 \u6838\u5fc3\u89c4\u5219&#xff1a;\u5b50\u00a0sequence\u00a0\u53d1\u9001\u7684\u4e09\u7c7b\u65b9\u6cd5<\/h5>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5f53\u00a0sequence\u00a0\u9700\u53d1\u9001\u5b50\u00a0sequence&#xff08;\u5982\u00a0dadd_fixen_sequence\u00a0\u8c03\u7528\u00a0dadd_rand_sequence\u00a0&#xff09;\u65f6&#xff0c;\u672c\u8d28\u662f\u00a0\u201c\u7236\u00a0sequence\u00a0\u8c03\u5ea6\u5b50\u00a0sequence\u00a0\u7684\u751f\u547d\u5468\u671f\u201d&#xff0c;\u4e09\u7c7b\u65b9\u6cd5\u7684\u6838\u5fc3\u5dee\u5f02\u5728\u4e8e \u201c\u8c03\u5ea6\u7684\u5c01\u88c5\u5c42\u7ea7\u201d&#xff1a;<\/p>\n<table>\n<tr>\u65b9\u6cd5\u5206\u7c7b\u6838\u5fc3\u8bed\u6cd5\u5c01\u88c5\u5c42\u7ea7\u9002\u7528\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>start\u00a0\u51fd\u6570<\/td>\n<td>seq.start(p_sequencer);<\/td>\n<td>\u6700\u5e95\u5c42&#xff0c;\u624b\u52a8\u63a7\u5236\u5b9e\u4f8b\u5316\u3001\u968f\u673a\u5316\u3001\u542f\u52a8<\/td>\n<td>\u9700\u7cbe\u51c6\u63a7\u5236\u5b50\u00a0sequence\u00a0\u6d41\u7a0b<\/td>\n<\/tr>\n<tr>\n<td>uvm_create\/uvm_send<\/td>\n<td>uvm_create(seq);\u00a0&#043;\u00a0uvm_send(seq);<\/td>\n<td>\u5c01\u88c5\u00a0start\u00a0\u51fd\u6570&#xff0c;\u7b80\u5316\u8c03\u7528<\/td>\n<td>\u9700\u663e\u5f0f\u63a7\u5236\u968f\u673a\u5316\u6b65\u9aa4<\/td>\n<\/tr>\n<tr>\n<td>uvm_do\u00a0\u5b8f<\/td>\n<td>uvm_do_with(seq, {\u7ea6\u675f;})<\/td>\n<td>\u5c01\u88c5 \u201c\u5b9e\u4f8b\u5316 &#043; \u968f\u673a\u5316 &#043; \u542f\u52a8\u201d \u5168\u6d41\u7a0b<\/td>\n<td>\u65e5\u5e38\u9a8c\u8bc1&#xff08;\u7b80\u6d01\u9ad8\u6548&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5 id=\"3.2%20%E9%80%90%E7%B1%BB%E8%A7%A3%E6%9E%90%EF%BC%9A%E7%BB%93%E5%90%88%C2%A0dadd%C2%A0%E4%BB%A3%E7%A0%81%E4%B8%8E%E8%84%9A%E6%9C%AC\">3.2 \u9010\u7c7b\u89e3\u6790&#xff1a;\u7ed3\u5408\u00a0dadd\u00a0\u4ee3\u7801\u4e0e\u811a\u672c<\/h5>\n<p>\u4ee5\u4e0b\u57fa\u4e8e\u00a0dadd_fixen_sequence.sv\u00a0\u548c\u00a0dadd_rand_sequence.sv\u00a0\u4ee3\u7801&#xff0c;\u8bf4\u660e\u6bcf\u79cd\u65b9\u6cd5\u7684\u7ec6\u8282&#xff1a;<\/p>\n<p>&#xff08;1&#xff09;\u65b9\u6cd5 1&#xff1a;start\u00a0\u51fd\u6570&#xff08;\u624b\u52a8\u8c03\u5ea6\u5b50\u00a0sequence&#xff09;<\/p>\n<p>\u6267\u884c\u89c4\u5219&#xff1a; \u624b\u52a8\u5b8c\u6210\u5b50\u00a0sequence\u00a0\u7684\u00a0\u201c\u5b9e\u4f8b\u5316\u2192\u968f\u673a\u5316\u7ea6\u675f\u2192\u542f\u52a8\u201d\u00a0\u5168\u6d41\u7a0b&#xff0c;\u9700\u663e\u5f0f\u8c03\u7528\u00a0start\u00a0\u51fd\u6570\u5173\u8054\u00a0p_sequencer&#xff08;\u7236\u00a0sequence\u00a0\u6240\u5728\u7684\u00a0sequencer\u00a0&#xff09;\u3002<\/p>\n<table>\n<tr>\u6b65\u9aa4\u4ee3\u7801\u903b\u8f91\u4f5c\u7528\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>1. \u5b9e\u4f8b\u5316\u5b50\u00a0seq<\/td>\n<td>seq &#061; dadd_rand_sequence::type_id::create(&#034;seq&#034;);<\/td>\n<td>\u521b\u5efa\u5b50\u00a0sequence\u00a0\u5bf9\u8c61&#xff08;dadd_rand_sequence\u00a0&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>2. \u968f\u673a\u5316\u7ea6\u675f<\/td>\n<td>seq.randomize() with {data_en_rand &#061;&#061; 1;};<\/td>\n<td>\u56fa\u5b9a\u5b50\u00a0sequence\u00a0\u7684\u00a0data_en_rand\u00a0\u4e3a 1&#xff0c;\u95f4\u63a5\u7ea6\u675f\u00a0dadd_item.data_en&#061;1<\/td>\n<\/tr>\n<tr>\n<td>3. \u542f\u52a8\u5b50\u00a0seq<\/td>\n<td>seq.start(p_sequencer);<\/td>\n<td>\u8ba9\u5b50\u00a0sequence\u00a0\u6302\u8f7d\u5230\u7236\u00a0sequence\u00a0\u7684\u00a0sequencer&#xff08;iagt.sqr\u00a0&#xff09;\u4e0a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ee3\u7801\u6620\u5c04&#xff08;dadd_fixen_sequence.sv\u00a0\u4e2d\u00a0SEND_SEQ\u00a0\u5206\u652f &#xff09;&#xff1a;<\/p>\n<p>&#096;ifdef SEND_SEQ<br \/>\n&#096;ifdef START<br \/>\ntask body();<br \/>\n  if(starting_phase !&#061; null)<br \/>\n    starting_phase.raise_objection(this);  \/\/ \u963b\u6b62\u4eff\u771f\u63d0\u524d\u7ed3\u675f<\/p>\n<p>  \/\/ 1. \u5b9e\u4f8b\u5316\u5b50 sequence<br \/>\n  seq &#061; dadd_rand_sequence::type_id::create(&#034;seq&#034;);<br \/>\n  \/\/ 2. \u7ea6\u675f\u5b50 sequence \u7684 data_en_rand \u4e3a 1<br \/>\n  seq.randomize() with {data_en_rand &#061;&#061; 1;};<br \/>\n  \/\/ 3. \u542f\u52a8\u5b50 sequence&#xff0c;\u6302\u8f7d\u5230 p_sequencer&#xff08;iagt.sqr&#xff09;<br \/>\n  seq.start(p_sequencer);  <\/p>\n<p>  if(starting_phase !&#061; null)<br \/>\n    starting_phase.drop_objection(this);  \/\/ \u5141\u8bb8\u4eff\u771f\u7ed3\u675f<br \/>\nendtask : body<br \/>\n&#096;endif<br \/>\n&#096;endif<\/p>\n<p>\u5b9e\u9a8c\u9a8c\u8bc1&#xff08;\u6267\u884c\u00a0make send_seq_start\u00a0&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u65e5\u5fd7\u663e\u793a\u5b50\u00a0sequence\u00a0\u88ab\u542f\u52a8&#xff0c;\u4e14\u00a0data_en\u00a0\u56fa\u5b9a\u4e3a 1&#xff1a;\n<p>plaintext<\/p>\n<p> UVM_INFO dadd_rand_sequence.sv(20) &#064; 100ns: uvm_test_top.env.iagt.sqr [SEQ] Sent item: data_en&#061;1, addr&#061;0x12, data&#061;0x34\n <\/li>\n<li>\u6ce2\u5f62\u4e2d\u00a0dadd_if.data_en\u00a0\u6052\u4e3a 1&#xff0c;\u8bc1\u660e\u7ea6\u675f\u751f\u6548\u3002<\/li>\n<\/ul>\n<p>&#xff08;2&#xff09;\u65b9\u6cd5 2&#xff1a;uvm_create\u00a0&#043;\u00a0uvm_send&#xff08;\u5c01\u88c5\u00a0start\u00a0\u51fd\u6570&#xff09;<\/p>\n<p>\u6267\u884c\u89c4\u5219&#xff1a; \u7528\u00a0uvm_create\u00a0\u66ff\u4ee3\u624b\u52a8\u00a0new\u00a0\u5b9e\u4f8b\u5316\u5b50\u00a0sequence&#xff0c;\u7528\u00a0uvm_send\u00a0\u66ff\u4ee3\u00a0start\u00a0\u51fd\u6570&#xff0c;\u5c01\u88c5\u90e8\u5206\u6d41\u7a0b&#xff0c;\u4f46\u4ecd\u9700\u624b\u52a8\u968f\u673a\u5316\u3002<\/p>\n<table>\n<tr>\u6b65\u9aa4\u4ee3\u7801\u903b\u8f91\u4f5c\u7528\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>1. \u5b9e\u4f8b\u5316\u5b50\u00a0seq<\/td>\n<td>uvm_create(seq);<\/td>\n<td>\u9690\u5f0f\u521b\u5efa\u5b50\u00a0sequence&#xff0c;\u5e76\u5173\u8054\u5230\u00a0p_sequencer<\/td>\n<\/tr>\n<tr>\n<td>2. \u968f\u673a\u5316\u7ea6\u675f<\/td>\n<td>seq.randomize() with {data_en_rand &#061;&#061; 1;};<\/td>\n<td>\u540c\u65b9\u6cd5 1<\/td>\n<\/tr>\n<tr>\n<td>3. \u542f\u52a8\u5b50\u00a0seq<\/td>\n<td>uvm_send(seq);<\/td>\n<td>\u5c01\u88c5\u00a0start\u00a0\u51fd\u6570&#xff0c;\u7b80\u5316\u53d1\u9001\u6d41\u7a0b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ee3\u7801\u6620\u5c04&#xff08;dadd_fixen_sequence.sv\u00a0\u4e2d\u00a0UVM_CREATE\u00a0\u5206\u652f &#xff09;&#xff1a;<\/p>\n<p>&#096;elsif UVM_CREATE<br \/>\ntask body();<br \/>\n  if(starting_phase !&#061; null)<br \/>\n    starting_phase.raise_objection(this);<\/p>\n<p>  \/\/ 1. \u5b9e\u4f8b\u5316\u5b50 sequence&#xff08;\u9690\u5f0f\u5173\u8054 p_sequencer&#xff09;<br \/>\n  &#096;uvm_create(seq);<br \/>\n  \/\/ 2. \u7ea6\u675f\u5b50 sequence<br \/>\n  seq.randomize() with {data_en_rand &#061;&#061; 1;};<br \/>\n  \/\/ 3. \u53d1\u9001\u5b50 sequence&#xff08;\u5c01\u88c5 start \u51fd\u6570&#xff09;<br \/>\n  &#096;uvm_send(seq);  <\/p>\n<p>  if(starting_phase !&#061; null)<br \/>\n    starting_phase.drop_objection(this);<br \/>\nendtask : body<\/p>\n<p>\u5b9e\u9a8c\u9a8c\u8bc1&#xff08;\u6267\u884c\u00a0make send_seq_uvm_create\u00a0&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u65e5\u5fd7\u4e0e\u65b9\u6cd5 1 \u7c7b\u4f3c&#xff0c;\u4f46\u4ee3\u7801\u66f4\u7b80\u6d01&#xff0c;uvm_create\/uvm_send\u00a0\u9690\u5f0f\u5b8c\u6210\u90e8\u5206\u6d41\u7a0b\u3002<\/li>\n<li>\u82e5\u5220\u9664\u00a0seq.randomize()&#xff0c;data_en_rand\u00a0\u4f1a\u968f\u673a\u5316&#xff0c;\u9a8c\u8bc1\u00a0uvm_create\u00a0\u4e0d\u81ea\u52a8\u968f\u673a\u5316&#xff0c;\u9700\u624b\u52a8\u8c03\u7528\u3002<\/li>\n<\/ul>\n<p>&#xff08;3&#xff09;\u65b9\u6cd5 3&#xff1a;uvm_do\u00a0\u7cfb\u5217\u5b8f&#xff08;\u4e00\u7ad9\u5f0f\u5c01\u88c5&#xff09;<\/p>\n<p>\u6267\u884c\u89c4\u5219&#xff1a; uvm_do_with\u00a0\u5b8f\u00a0\u4e00\u7ad9\u5f0f\u5c01\u88c5\u201c\u5b9e\u4f8b\u5316 &#043; \u968f\u673a\u5316 &#043; \u542f\u52a8\u201d \u5168\u6d41\u7a0b&#xff0c;\u751a\u81f3\u53ef\u5728\u5b8f\u5185\u76f4\u63a5\u5199\u7ea6\u675f&#xff0c;\u65e0\u9700\u624b\u52a8\u8c03\u7528\u00a0randomize\u3002<\/p>\n<table>\n<tr>\u6b65\u9aa4\u4ee3\u7801\u903b\u8f91\u4f5c\u7528\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>1. \u5b9e\u4f8b\u5316 &#043; \u968f\u673a\u5316 &#043; \u542f\u52a8<\/td>\n<td>uvm_do_with(seq, {data_en_rand &#061;&#061; 1;});<\/td>\n<td>\u9690\u5f0f\u5b8c\u6210 \u201c\u521b\u5efa\u2192\u968f\u673a\u5316&#xff08;\u5e26\u7ea6\u675f&#xff09;\u2192\u542f\u52a8\u201d&#xff0c;\u6700\u7b80\u6d01<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ee3\u7801\u6620\u5c04&#xff08;dadd_fixen_sequence.sv\u00a0\u4e2d\u00a0UVM_DO\u00a0\u5206\u652f &#xff09;&#xff1a;<\/p>\n<p>&#096;else\/\/UVM_DO<br \/>\ntask body();<br \/>\n  if(starting_phase !&#061; null)<br \/>\n    starting_phase.raise_objection(this);<\/p>\n<p>  \/\/ \u4e00\u7ad9\u5f0f\u5b8c\u6210&#xff1a;\u5b9e\u4f8b\u5316&#043;\u968f\u673a\u5316&#xff08;\u7ea6\u675f data_en_rand&#061;1&#xff09;&#043;\u542f\u52a8<br \/>\n  &#096;uvm_do_with(seq, {data_en_rand &#061;&#061; 1;});  <\/p>\n<p>  if(starting_phase !&#061; null)<br \/>\n    starting_phase.drop_objection(this);<br \/>\nendtask : body<\/p>\n<p>\u5b9e\u9a8c\u9a8c\u8bc1&#xff08;\u6267\u884c\u00a0make send_seq_uvm_do\u00a0&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u65e5\u5fd7\u4e0e\u524d\u4e24\u79cd\u65b9\u6cd5\u4e00\u81f4&#xff0c;\u4f46\u4ee3\u7801\u884c\u6570\u6700\u5c11&#xff0c;uvm_do_with\u00a0\u9690\u5f0f\u5b8c\u6210\u6240\u6709\u6b65\u9aa4\u3002<\/li>\n<li>\u82e5\u4fee\u6539\u7ea6\u675f\u4e3a\u00a0{data_en_rand &#061;&#061; 0;}&#xff0c;\u6ce2\u5f62\u4e2d\u00a0data_en\u00a0\u6052\u4e3a 0&#xff0c;\u9a8c\u8bc1\u5b8f\u5185\u7ea6\u675f\u751f\u6548\u3002<\/li>\n<\/ul>\n<h5 id=\"3.3%20%E5%85%B3%E9%94%AE%E7%BB%86%E8%8A%82%E4%B8%8E%E5%AF%B9%E6%AF%94\">3.3 \u5173\u952e\u7ec6\u8282\u4e0e\u5bf9\u6bd4<\/h5>\n<p>&#xff08;1&#xff09;\u65b9\u6cd5\u9009\u62e9\u5efa\u8bae<\/p>\n<ul>\n<li>\u8c03\u8bd5\u5b50\u00a0sequence&#xff1a;\u7528\u00a0start\u00a0\u51fd\u6570&#xff0c;\u9010\u884c\u63a7\u5236\u5b9e\u4f8b\u5316\u3001\u968f\u673a\u5316\u3001\u542f\u52a8&#xff0c;\u65b9\u4fbf\u5b9a\u4f4d\u95ee\u9898&#xff08;\u5982\u7ea6\u675f\u4e0d\u751f\u6548\u65f6&#xff0c;\u68c0\u67e5\u00a0randomize\u00a0\u8c03\u7528 &#xff09;\u3002<\/li>\n<li>\u9700\u663e\u5f0f\u968f\u673a\u5316&#xff1a;\u7528\u00a0uvm_create\/uvm_send&#xff0c;\u624b\u52a8\u63a7\u5236\u968f\u673a\u5316\u65f6\u673a&#xff08;\u5982\u5148\u968f\u673a\u5316\u90e8\u5206\u5b57\u6bb5&#xff0c;\u518d\u8986\u76d6\u5176\u4ed6\u7ea6\u675f &#xff09;\u3002<\/li>\n<li>\u65e5\u5e38\u5d4c\u5957\u53d1\u9001&#xff1a;\u4f18\u5148\u7528\u00a0uvm_do_with&#xff0c;\u4ee3\u7801\u6700\u7b80\u6d01&#xff0c;\u51cf\u5c11\u6837\u677f\u4ee3\u7801&#xff0c;\u9002\u5408\u9ad8\u9891\u4f7f\u7528\u3002<\/li>\n<\/ul>\n<p>&#xff08;2&#xff09;\u6613\u9519\u70b9<\/p>\n<ul>\n<li>p_sequencer\u00a0\u672a\u5173\u8054&#xff1a;\u82e5\u5b50\u00a0sequence\u00a0\u672a\u901a\u8fc7\u00a0uvm_declare_p_sequencer\u00a0\u5173\u8054\u7236\u00a0sequencer&#xff0c;p_sequencer\u00a0\u4f1a\u7a7a\u6307\u9488\u62a5\u9519&#xff0c;\u9700\u786e\u4fdd&#xff1a;\n<p>systemverilog<\/p>\n<p> &#096;uvm_declare_p_sequencer(dadd_sequencer)  \/\/ \u5728\u5b50 sequence \u4e2d\u58f0\u660e\n <\/li>\n<li>\u7ea6\u675f\u672a\u751f\u6548&#xff1a;\u82e5\u00a0uvm_do_with\u00a0\u4e2d\u7ea6\u675f\u8bed\u6cd5\u9519\u8bef&#xff08;\u5982\u00a0data_en_rand &#061; 1;\u00a0\u5c11\u5199\u00a0&#061;&#061;\u00a0&#xff09;&#xff0c;\u7ea6\u675f\u4f1a\u88ab\u5ffd\u7565&#xff0c;\u9700\u68c0\u67e5\u7ea6\u675f\u8868\u8fbe\u5f0f\u3002<\/li>\n<\/ul>\n<h5 id=\"3.4%20%E5%AE%9E%E9%AA%8C%E4%BB%B7%E5%80%BC%E4%B8%8E%E6%80%BB%E7%BB%93\" style=\"background-color:transparent\">3.4 \u5b9e\u9a8c\u4ef7\u503c\u4e0e\u603b\u7ed3<\/h5>\n<p>\u901a\u8fc7\u00a0Makefile\u00a0\u811a\u672c\u5207\u6362\u65b9\u6cd5&#xff08;send_seq_start\/send_seq_uvm_create\/send_seq_uvm_do\u00a0&#xff09;&#xff0c;\u53ef\u76f4\u89c2\u5bf9\u6bd4\u4e09\u7c7b\u65b9\u6cd5\u7684\u6267\u884c\u6d41\u7a0b&#xff1a;<\/p>\n<ul>\n<li>\u8bc1\u660e\u4e09\u7c7b\u65b9\u6cd5\u672c\u8d28\u662f\u540c\u4e00\u6d41\u7a0b\u7684\u4e0d\u540c\u5c01\u88c5&#xff0c;uvm_do\u00a0\u662f\u6700\u7b80\u6d01\u7684\u9ad8\u9636\u7528\u6cd5\u3002<\/li>\n<li>\u9a8c\u8bc1\u5e73\u53f0\u53ef\u7075\u6d3b\u5207\u6362\u5b50\u00a0sequence\u00a0\u7684\u8c03\u5ea6\u65b9\u5f0f&#xff0c;\u9002\u914d\u4e0d\u540c\u6d4b\u8bd5\u573a\u666f&#xff08;\u5982\u8c03\u8bd5\u3001\u9ad8\u6548\u5f00\u53d1\u3001\u590d\u6742\u7ea6\u675f &#xff09;\u3002<\/li>\n<\/ul>\n<p>\u638c\u63e1\u8fd9\u4e09\u7c7b\u65b9\u6cd5&#xff0c;\u53ef\u9ad8\u6548\u5b9e\u73b0 \u201c\u7236\u00a0sequence\u00a0\u8c03\u5ea6\u5b50\u00a0sequence\u201d \u7684\u5d4c\u5957\u903b\u8f91&#xff0c;\u662f\u6784\u5efa\u590d\u6742\u9a8c\u8bc1\u573a\u666f&#xff08;\u5982 \u201c\u5148\u590d\u4f4d\u5b50\u00a0sequence&#xff0c;\u518d\u968f\u673a\u8bfb\u5199\u5b50\u00a0sequence\u201d &#xff09;\u7684\u57fa\u7840\u3002<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"573\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815074044-689ee47c22672.png\" width=\"860\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb691\u6b21\uff0c\u70b9\u8d5e27\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u672c\u6587\u7cfb\u7edf\u9610\u8ff0\u4e86UVM\u9a8c\u8bc1\u5e73\u53f0\u7684\u4e09\u5927\u6838\u5fc3\u673a\u5236\uff1a\u5de5\u5382\u673a\u5236\u3001Phase\u6267\u884c\u673a\u5236\u548cSequence\u4ea4\u4e92\u673a\u5236\u3002\u5de5\u5382\u673a\u5236\u901a\u8fc7&quot;\u6ce8\u518c-\u521b\u5efa-\u8986\u76d6&quot;\u5b9e\u73b0\u7ec4\u4ef6\u52a8\u6001\u66ff\u6362\uff0c\u63d0\u9ad8\u9a8c\u8bc1\u7075\u6d3b\u6027\uff1bPhase\u673a\u5236\u5b9a\u4e49\u4e86\u7ec4\u4ef6\u5185\u3001\u7ec4\u4ef6\u95f4\u548c\u540c\u7ea7\u7ec4\u4ef6\u95f4\u7684\u6267\u884c\u987a\u5e8f\u89c4\u5219\uff1bSequence\u673a\u5236\u5219\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u4e09\u79cd\u6fc0\u52b1\u4ea7\u751f\u65b9\u6cd5\uff08\u57fa\u7840\u65b9\u6cd5\u3001\u5b8f\u5c01\u88c5\u65b9\u6cd5\u3001\u9ad8\u7ea7\u5b8f\u65b9\u6cd5\uff09\u548c\u4e09\u79cd\u5b50sequence\u53d1\u9001\u65b9\u6cd5\uff0c\u5e76\u5bf9\u6bd4\u4e86\u5b83\u4eec\u7684\u9002\u7528\u573a\u666f\u3002\u5b9e\u9a8c\u9a8c\u8bc1\u8868\u660e\uff0c\u8fd9\u4e9b\u673a\u5236\u534f\u540c\u5de5\u4f5c\uff0c\u6784\u5efa\u4e86UVM\u9a8c\u8bc1\u5e73\u53f0\u7684\u53ef\u590d\u7528\u3001\u53ef\u914d\u7f6e\u57fa\u7840\u67b6\u6784\uff0c\u652f\u6301\u9ad8\u6548\u5f00\u53d1\u548c\u8c03\u8bd5\u590d\u6742\u9a8c\u8bc1\u573a\u666f\u3002<\/p>\n","protected":false},"author":2,"featured_media":57571,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[6027,6028,6025,6026],"topic":[],"class_list":["post-57576","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ic","tag-systemverilog","tag-uvm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>UVM\u9a8c\u8bc1\uff08\u4e09\uff09\u2014UVM\u673a\u5236\uff081\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/57576.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"UVM\u9a8c\u8bc1\uff08\u4e09\uff09\u2014UVM\u673a\u5236\uff081\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb691\u6b21\uff0c\u70b9\u8d5e27\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u672c\u6587\u7cfb\u7edf\u9610\u8ff0\u4e86UVM\u9a8c\u8bc1\u5e73\u53f0\u7684\u4e09\u5927\u6838\u5fc3\u673a\u5236\uff1a\u5de5\u5382\u673a\u5236\u3001Phase\u6267\u884c\u673a\u5236\u548cSequence\u4ea4\u4e92\u673a\u5236\u3002\u5de5\u5382\u673a\u5236\u901a\u8fc7&quot;\u6ce8\u518c-\u521b\u5efa-\u8986\u76d6&quot;\u5b9e\u73b0\u7ec4\u4ef6\u52a8\u6001\u66ff\u6362\uff0c\u63d0\u9ad8\u9a8c\u8bc1\u7075\u6d3b\u6027\uff1bPhase\u673a\u5236\u5b9a\u4e49\u4e86\u7ec4\u4ef6\u5185\u3001\u7ec4\u4ef6\u95f4\u548c\u540c\u7ea7\u7ec4\u4ef6\u95f4\u7684\u6267\u884c\u987a\u5e8f\u89c4\u5219\uff1bSequence\u673a\u5236\u5219\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u4e09\u79cd\u6fc0\u52b1\u4ea7\u751f\u65b9\u6cd5\uff08\u57fa\u7840\u65b9\u6cd5\u3001\u5b8f\u5c01\u88c5\u65b9\u6cd5\u3001\u9ad8\u7ea7\u5b8f\u65b9\u6cd5\uff09\u548c\u4e09\u79cd\u5b50sequence\u53d1\u9001\u65b9\u6cd5\uff0c\u5e76\u5bf9\u6bd4\u4e86\u5b83\u4eec\u7684\u9002\u7528\u573a\u666f\u3002\u5b9e\u9a8c\u9a8c\u8bc1\u8868\u660e\uff0c\u8fd9\u4e9b\u673a\u5236\u534f\u540c\u5de5\u4f5c\uff0c\u6784\u5efa\u4e86UVM\u9a8c\u8bc1\u5e73\u53f0\u7684\u53ef\u590d\u7528\u3001\u53ef\u914d\u7f6e\u57fa\u7840\u67b6\u6784\uff0c\u652f\u6301\u9ad8\u6548\u5f00\u53d1\u548c\u8c03\u8bd5\u590d\u6742\u9a8c\u8bc1\u573a\u666f\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/57576.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-15T07:40:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815074015-689ee45fec8a6.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/57576.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/57576.html\",\"name\":\"UVM\u9a8c\u8bc1\uff08\u4e09\uff09\u2014UVM\u673a\u5236\uff081\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-15T07:40:50+00:00\",\"dateModified\":\"2025-08-15T07:40:50+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/57576.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/57576.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/57576.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"UVM\u9a8c\u8bc1\uff08\u4e09\uff09\u2014UVM\u673a\u5236\uff081\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"UVM\u9a8c\u8bc1\uff08\u4e09\uff09\u2014UVM\u673a\u5236\uff081\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/57576.html","og_locale":"zh_CN","og_type":"article","og_title":"UVM\u9a8c\u8bc1\uff08\u4e09\uff09\u2014UVM\u673a\u5236\uff081\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb691\u6b21\uff0c\u70b9\u8d5e27\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u672c\u6587\u7cfb\u7edf\u9610\u8ff0\u4e86UVM\u9a8c\u8bc1\u5e73\u53f0\u7684\u4e09\u5927\u6838\u5fc3\u673a\u5236\uff1a\u5de5\u5382\u673a\u5236\u3001Phase\u6267\u884c\u673a\u5236\u548cSequence\u4ea4\u4e92\u673a\u5236\u3002\u5de5\u5382\u673a\u5236\u901a\u8fc7&quot;\u6ce8\u518c-\u521b\u5efa-\u8986\u76d6&quot;\u5b9e\u73b0\u7ec4\u4ef6\u52a8\u6001\u66ff\u6362\uff0c\u63d0\u9ad8\u9a8c\u8bc1\u7075\u6d3b\u6027\uff1bPhase\u673a\u5236\u5b9a\u4e49\u4e86\u7ec4\u4ef6\u5185\u3001\u7ec4\u4ef6\u95f4\u548c\u540c\u7ea7\u7ec4\u4ef6\u95f4\u7684\u6267\u884c\u987a\u5e8f\u89c4\u5219\uff1bSequence\u673a\u5236\u5219\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u4e09\u79cd\u6fc0\u52b1\u4ea7\u751f\u65b9\u6cd5\uff08\u57fa\u7840\u65b9\u6cd5\u3001\u5b8f\u5c01\u88c5\u65b9\u6cd5\u3001\u9ad8\u7ea7\u5b8f\u65b9\u6cd5\uff09\u548c\u4e09\u79cd\u5b50sequence\u53d1\u9001\u65b9\u6cd5\uff0c\u5e76\u5bf9\u6bd4\u4e86\u5b83\u4eec\u7684\u9002\u7528\u573a\u666f\u3002\u5b9e\u9a8c\u9a8c\u8bc1\u8868\u660e\uff0c\u8fd9\u4e9b\u673a\u5236\u534f\u540c\u5de5\u4f5c\uff0c\u6784\u5efa\u4e86UVM\u9a8c\u8bc1\u5e73\u53f0\u7684\u53ef\u590d\u7528\u3001\u53ef\u914d\u7f6e\u57fa\u7840\u67b6\u6784\uff0c\u652f\u6301\u9ad8\u6548\u5f00\u53d1\u548c\u8c03\u8bd5\u590d\u6742\u9a8c\u8bc1\u573a\u666f\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/57576.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-15T07:40:50+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815074015-689ee45fec8a6.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"13 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/57576.html","url":"https:\/\/www.wsisp.com\/helps\/57576.html","name":"UVM\u9a8c\u8bc1\uff08\u4e09\uff09\u2014UVM\u673a\u5236\uff081\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-15T07:40:50+00:00","dateModified":"2025-08-15T07:40:50+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/57576.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/57576.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/57576.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"UVM\u9a8c\u8bc1\uff08\u4e09\uff09\u2014UVM\u673a\u5236\uff081\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/57576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=57576"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/57576\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/57571"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=57576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=57576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=57576"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=57576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}