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

东莞东城网站建设公司wordpress主题大前端

东莞东城网站建设公司,wordpress主题大前端,wordpress后台菜单,h5页面设计软件1 基本概念 在 SystemVerilog 中,priority - if是一种条件判断结构。它和普通的if - else语句类似,但在条件评估和错误检查方面有自己的特点,主要用于按顺序评估多个条件,并且对不符合预期的情况进行报错。报错如下两点 当所有条件…

1 基本概念

        在 SystemVerilog 中,priority - 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 clause in priority-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 matchpriority 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 reportedpriority 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: Priority if violation:  Every if clause was false.File: ./testbench.sv, line = 18, pos = 15Scope: tbTime: 0 FS + 1ncsim: *W,RNQUIE: Simulation is complete.

2 Multiple matches in unique-if(匹配多个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 reportedpriority 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: priority 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.

http://www.yayakq.cn/news/77202/

相关文章:

  • 钻井网站建设泉州学校网站建设
  • 廊坊网站网络推广外包公司
  • 模板网站建设套餐网站建设价格费用
  • 网站建设实训小组报告wordpress the_field
  • 网站根目录 本地共享软件推广平台有哪些?哪个比较好
  • 创建网站的软件什么梦做我的世界头像的网站
  • 企业网站推广哪家好怎么让网站分享有图片
  • 网站一般用什么免费字体wordpress story 模板
  • 灵犀科技网站建设企业邮箱注册哪个好
  • 网站建设优化佛山黄冈做网站
  • 外贸怎么做公司网站外贸WordPress主机推荐
  • 北京南站地铁自己可以模拟装修app
  • 网站怎么做友链网页制作网站花店
  • 自助建站免费建站五个平台学网站开发的软件有哪些
  • 自己怎么做单页网站wordpress滑动
  • 西安医疗网站建设网站备案IP与空间
  • ps做网站导航条高度珠海网站建设公司
  • 深圳企业网站app开发wordpress 批量导入
  • 软件 行业门户网站网站开发的基本知识
  • 深圳网站程序开发网站升级改版需要几天
  • 周到的网站建设推广什么叫软件外包公司
  • 东莞高端网站建设公司哪家好设计公司企业标语
  • 做数据ppt模板下载网站茂名专业做网站公司
  • 网站建设公司选择标准手机版网站制作应用
  • 房产中介网站排名wordpress有名的网站
  • 官方网站建设状况亚马逊图书官网
  • 自己做的微课上传到哪个网站汉中免费做网站公司
  • 网站开发 在html标记后出现乱码 查看源文件显示是问好wordpress 通讯录插件
  • 阿里云备案 网站备案域名自建网站模板代码
  • 网站建设 - 碧诺网络专业商城网站建设价格低