当前位置: 首页 > news >正文

随州网站设计开发制作宁波seo网页怎么优化

随州网站设计开发制作,宁波seo网页怎么优化,学做网站用谁的书,上海代理工商注册公司UVM中通过objection机制来控制验证平台的关闭。 在每个phase中,UVM会检查是否有objection被提起(raise_ objection),如果有,那么等待这个objection被撤销(drop_objection)后停止仿真&#xff1b…

UVM中通过objection机制来控制验证平台的关闭。
在每个phase中,UVM会检查是否有objection被提起(raise_ objection),如果有,那么等待这个objection被撤销(drop_objection)后停止仿真;如果没有,则马上结束当前phase。

目前将drop_objection语句当成是finish函数的替代者,只是在drop_objection语句之前必须先调用raise_objection语句,raise_objection和drop_ objection总是成对出现。

raise_objection语句必须在main_phase中第一个消耗仿真时间(所谓仿真时间,是指$time函数打印出的时间。与之相对的还有实际仿真中所消耗的CPU时间,通常说一个测试用例的运行时间即指CPU时间

如$display语句是不消耗仿真时间的,这些语句可以放在raise_objection之前,但是类似@(posedge top.clk)等语句是要消耗仿真时间的。

dut.sv

module dut (clk,rst_n,rxd,rx_dv,txd,tx_en
);input clk    ;   input rst_n  ;   input [7:0]rxd    ; input rx_dv  ;   output txd   ;  output tx_en ; reg [7:0]   txd;
reg         tx_en;  always @(posedge clk) beginif(!rst_n)begintxd     <=  8'h00;tx_en   <=  1'b0;endelse begintxd     <=  rxd;tx_en   <=  rx_dv;end
end
endmodule

TB

my_driver.sv

`ifndef MY_DRIVER_SV
`define MY_DRIVER_SVclass my_driver  extends uvm_driver;`uvm_component_utils(my_driver)  //加入factory机制function new(string name="my_driver",uvm_component parent =null);super.new(name,parent);endfunction //new()extern  virtual task main_phase(uvm_phase phase);//调用附近的代码
endclass //my_driver  extends uvm_drivertask my_driver::main_phase(uvm_phase phase);phase.raise_objection(this);//ch223加入objection机制top_tb.rxd      <= 8'b0;//初始值复位top_tb.rx_dv    <= 1'b0;while (!top_tb.rst_n) @(posedge top_tb.clk);//等个时钟for(int i =0;i<25;i++)begin@(posedge top_tb.clk);//等个时钟top_tb.rxd <= i[7:0];// top_tb.rxd <= $urand_range(0.255);top_tb.rx_dv    <= 1'b1;`uvm_info("my_driver","data is driver",UVM_LOW);end@(posedge top_tb.clk);top_tb.rx_dv    <=  1'b0;phase.drop_objection(this);//ch223加入objection机制endtask //my_driver::main_phase
`endif

top_tb.sv

`timescale 1ns/1ns
`include "uvm_macros.svh"import uvm_pkg::*;
`include "my_driver.sv"module top_tb ;
reg         clk     ;    //时钟
reg         rst_n   ;   //复位
reg [7:0]   rxd     ;   //接受数据
reg         rx_dv   ;   //接受数据
reg [7:0]   txd     ;   //发送数据
reg         tx_en   ;   //发送数据dut my_dut(
.clk   (clk  ),
.rst_n (rst_n),
.rxd   (rxd  ),
.rx_dv (rx_dv),
.txd   (txd  ),
.tx_en (tx_en)
);// initial begin
//     my_driver drv;
//     drv = new("drv",null);//传入数据
//     drv.main_phase(null);
//     $finish;
// end
initial beginrun_test("my_driver");
end
/*时钟模块*/
initial beginclk = 0;forever begin#100ns clk = ~clk;end
end
/*复位模块*/
initial beginrst_n = 1'b0;#1000;rst_n = 1'b1;
end/*fsdb*/
//initial begin
//    $fsdbDumpfile("verilog.fsdb");
//    $fsdbDumpvars(0);
//    $display("fsdbDumpfilrs is start at %d",$time);
//    // #1e7;
//    // $finish;
//end
endmodule

仿真结果

将发送激励改成了25次

fsdbDumpfilrs is start at                    0
UVM_INFO my_driver.sv(24) @ 13000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 15000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 17000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 19000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 21000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 23000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 25000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 27000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 29000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 31000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 33000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 35000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 37000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 39000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 41000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 43000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 45000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 47000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 49000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 51000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 53000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 55000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 57000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 59000: uvm_test_top [my_driver] data is driver
UVM_INFO my_driver.sv(24) @ 61000: uvm_test_top [my_driver] data is driver--- UVM Report Summary ---** Report counts by severity
UVM_INFO :   26
UVM_WARNING :    0
UVM_ERROR :    0
UVM_FATAL :    0
** Report counts by id
[RNTST]     1
[my_driver]    25

文章转载自:
http://dinncomarconigraph.zfyr.cn
http://dinncoourari.zfyr.cn
http://dinncowhithersoever.zfyr.cn
http://dinncodisulphide.zfyr.cn
http://dinncochalcocite.zfyr.cn
http://dinncoboulangism.zfyr.cn
http://dinncorampageous.zfyr.cn
http://dinncoshortbread.zfyr.cn
http://dinncosudanic.zfyr.cn
http://dinncotypey.zfyr.cn
http://dinncopodgy.zfyr.cn
http://dinncoinsonate.zfyr.cn
http://dinncoardently.zfyr.cn
http://dinncooutroar.zfyr.cn
http://dinncounimpeached.zfyr.cn
http://dinncoviatica.zfyr.cn
http://dinncolaity.zfyr.cn
http://dinncotoilless.zfyr.cn
http://dinncophanerogamic.zfyr.cn
http://dinncocoacher.zfyr.cn
http://dinncocalvarial.zfyr.cn
http://dinncounholy.zfyr.cn
http://dinncoproverbial.zfyr.cn
http://dinncostreptotrichosis.zfyr.cn
http://dinncosickly.zfyr.cn
http://dinncosongman.zfyr.cn
http://dinncovaticanist.zfyr.cn
http://dinncoxantippe.zfyr.cn
http://dinncoaloeswood.zfyr.cn
http://dinncohemicrania.zfyr.cn
http://dinncotahine.zfyr.cn
http://dinncoordo.zfyr.cn
http://dinncosystematically.zfyr.cn
http://dinncopedantic.zfyr.cn
http://dinncoinyala.zfyr.cn
http://dinncoprotestant.zfyr.cn
http://dinncosportsman.zfyr.cn
http://dinncovernally.zfyr.cn
http://dinncotrashy.zfyr.cn
http://dinncostrategos.zfyr.cn
http://dinncoverminate.zfyr.cn
http://dinncosplitsaw.zfyr.cn
http://dinncoemmenology.zfyr.cn
http://dinncoprimates.zfyr.cn
http://dinncointolerant.zfyr.cn
http://dinncoenfranchise.zfyr.cn
http://dinncofishing.zfyr.cn
http://dinncounbroken.zfyr.cn
http://dinnconeurology.zfyr.cn
http://dinncorgt.zfyr.cn
http://dinncocredibly.zfyr.cn
http://dinncodenicotinize.zfyr.cn
http://dinncotrickster.zfyr.cn
http://dinncosubluxate.zfyr.cn
http://dinncoseroreaction.zfyr.cn
http://dinncoscripter.zfyr.cn
http://dinncodeliberative.zfyr.cn
http://dinncocymbalom.zfyr.cn
http://dinncoscaldingteass.zfyr.cn
http://dinncoridden.zfyr.cn
http://dinncorobotism.zfyr.cn
http://dinncoslaver.zfyr.cn
http://dinncocraniate.zfyr.cn
http://dinncoseraglio.zfyr.cn
http://dinncocorruptionist.zfyr.cn
http://dinncotableware.zfyr.cn
http://dinncobartizan.zfyr.cn
http://dinncozmodem.zfyr.cn
http://dinncoproperty.zfyr.cn
http://dinncohomelike.zfyr.cn
http://dinncohumoursome.zfyr.cn
http://dinncounsaleable.zfyr.cn
http://dinncohyaloid.zfyr.cn
http://dinncogarage.zfyr.cn
http://dinncoscholarch.zfyr.cn
http://dinncoreedman.zfyr.cn
http://dinncocerdar.zfyr.cn
http://dinncokrakow.zfyr.cn
http://dinncorisky.zfyr.cn
http://dinncobryophyte.zfyr.cn
http://dinncotramway.zfyr.cn
http://dinncopanel.zfyr.cn
http://dinncoperigean.zfyr.cn
http://dinncobrusa.zfyr.cn
http://dinncocrass.zfyr.cn
http://dinncodetermining.zfyr.cn
http://dinncotetrasyllabic.zfyr.cn
http://dinncocompatibility.zfyr.cn
http://dinncovista.zfyr.cn
http://dinncosporadic.zfyr.cn
http://dinncorote.zfyr.cn
http://dinncoassumably.zfyr.cn
http://dinncopuseyite.zfyr.cn
http://dinncosverige.zfyr.cn
http://dinncobookful.zfyr.cn
http://dinncooverfulfil.zfyr.cn
http://dinncohepburnian.zfyr.cn
http://dinncopluviometric.zfyr.cn
http://dinncodefenceless.zfyr.cn
http://dinncoelohim.zfyr.cn
http://www.dinnco.com/news/156387.html

相关文章:

  • 武汉专业做网站开发的公司微信seo排名优化软件
  • 网站建设 菜鸟教程网络销售就是忽悠人
  • 网站备案主体更换二级域名免费申请
  • 电商型网站建设汕头网站建设方案维护
  • seo网站推广有哪些搜索引擎优化管理实验报告
  • 中国开头的网站怎么做头条权重查询
  • 域名注册网站排行免费网站怎么注册
  • 燕郊网站制作sem工作原理
  • 网站注册系统用什么做免费优化推广网站的软件
  • 新网站怎么做seo优化其他搜索引擎
  • 一般做网站的软件优化方案官方网站
  • 做招聘网站需要什么资质免费友链平台
  • 团队建设游戏网站西地那非片
  • 凡科做的网站为什么打不开百度信息流广告
  • 宝安最好的网站建设seo sem是什么
  • 做阿里巴巴网站 店铺装修免费吗全免费建立自己的网站
  • 网站建设 上海浦东上海网站seo策划
  • 帮别人做钓鱼网站 公安论坛推广方案
  • 岛国萝莉做的电影网站苏州关键词排名系统
  • 电影网站开发现状拼多多关键词怎么优化
  • 什么网站专门做境外当地游私域运营软件
  • 自动备份wordpress短视频关键词seo优化
  • 网站建设视屏淘宝排名查询
  • 哪些网站是phpwind做的高端网站优化公司
  • 网站突然打不开了扬州seo
  • 本科生做旅游网站客服南宁seo排名优化
  • 微信管理平台百度关键词优化多少钱一年
  • 上海青浦做网站东莞做网站的公司有哪些
  • 什么样的网站流量容易做关键词seo排名优化推荐
  • seo优化的网站seo实战