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

学校营销型网站百度快速排名工具

学校营销型网站,百度快速排名工具,金华百度推广公司,django网站开发规范1 基本概念 在 SystemVerilog 中,unique if是一种条件判断结构。它用于检查多个互斥的条件,以确保在给定的情况下只有一个条件分支被执行。这有助于提高代码的可读性和可维护性,同时也能帮助发现潜在的逻辑错误,报错原因有以下两个…

1 基本概念

        在 SystemVerilog 中,unique if是一种条件判断结构。它用于检查多个互斥的条件,以确保在给定的情况下只有一个条件分支被执行。这有助于提高代码的可读性和可维护性,同时也能帮助发现潜在的逻辑错误,报错原因有以下两个

        当所有的 “if” 条件都不匹配时且无else语句,会报错。
        当在 “if-else” 条件中发现有不止一个条件匹配时,会报错。

2 语法

unique if (condition1) begin// 执行语句块1
end else if (condition2) begin// 执行语句块2
end else if (condition3) begin// 执行语句块3
end else {// 可选的else语句块,当所有前面条件都不满足时执行
}

3 示例

1 No else block for unique-if(无else,且都不匹配)

module tb;int x = 4;initial begin// This if else if construct is declared to be "unique"// Error is not reported here because there is a "else"// clause in the end which will be triggered when none of// the conditions matchunique if (x == 3)$display ("x is %0d", x);else if (x == 5)$display ("x is %0d", x);else$display ("x is neither 3 nor 5");// When none of the conditions become true and there// is no "else" clause, then an error is reportedunique if (x == 3)$display ("x is %0d", x);else if (x == 5)$display ("x is %0d", x);end
endmodule//------------- simulation log-------------------//
ncsim> run
x is neither 3 nor 5
ncsim: *W,NOCOND: Unique if violation:  Every if clause was false.File: ./testbench.sv, line = 18, pos = 13Scope: tbTime: 0 FS + 1ncsim: *W,RNQUIE: Simulation is complete.

2 Multiple matches in unique-if(匹配多次)

module tb;int x = 4;initial begin// This if else if construct is declared to be "unique"// When multiple if blocks match, then error is reportedunique if (x == 4)$display ("1. x is %0d", x);else if (x == 4)$display ("2. x is %0d", x);else$display ("x is not 4");end
endmodule//--------------- simulation log-----------------//
ncsim> run
1. x is 4
ncsim: *W,MCONDE: Unique if violation:  Multiple true if clauses at {line=8:pos=15 and line=10:pos=13}.File: ./testbench.sv, line = 8, pos = 15Scope: tbTime: 0 FS + 1ncsim: *W,RNQUIE: Simulation is complete.

https://www.chipverify.com/systemverilog/systemverilog-unique-priority-if-ele

http://www.15wanjia.com/news/38919.html

相关文章:

  • 中国建设银行网站首页下载宁波网站推广联系方式
  • 网站开发与网页制作的区别seo智能优化
  • 江宁网站建设怎么做好推广
  • 网站排版工具seo综合查询平台官网
  • 在哪查询网站做的哪些外链百度一下网页版搜索引擎
  • 深圳网站设计合理刻清博大数据舆情监测平台
  • 织梦本地安装网站百度收录查询api
  • 响应设网站多少钱可以做磁力云搜索引擎入口
  • 廊坊那家做网站排行榜百度app下载安装普通下载
  • 个人网站注册平台钱杭州seo网
  • 网站建设怎么骗人培训加盟
  • 苏州做商城网站设计小学生关键词大全
  • 最专业的企业营销型网站建设google chrome download
  • 长葛做网站杭州百度快照优化公司
  • 网站备案查询api百度提交入口
  • 给做网站公司写锦旗语做一个网站
  • Wordpress全站开启httpsseo优化的方法有哪些
  • 如何查看一个网站是不是用h5做的网站模板设计
  • 国外做多媒体展览的网站百度seo招聘
  • 专业做家居的网站营销策略都有哪些
  • 成都网站建设创新互联网络推广怎么收费
  • 百度推广网站必须备案吗百度关键词搜索工具
  • 广州从化网站建设广东省最新新闻
  • wordpress直接上传视频运营推广seo招聘
  • pc 手机站网站制作com域名注册
  • 做图海报网站2024年3月新冠高峰
  • 小门户网站模板小程序开发文档
  • 重庆装修公司十大排名搜索引擎优化的五个方面
  • 中国互联网协会官方网站夸克搜索引擎入口
  • 广西住房建设厅网站网络营销主要干什么