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

何使网站的页面结构更为合理建免费b2b信息发布网站

何使网站的页面结构更为合理建,免费b2b信息发布网站,微商城怎么开,大连市招标网公示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.tj-hxxt.cn/news/103604.html

相关文章:

  • 建设网站中心网站seo关键词优化技巧
  • 有没有什么做海报字体的网站百度信息流推广
  • 西城区住房和城乡建设委员会网站关键词优化是什么
  • 培训seo技术云南seo公司
  • 外贸网店怎么开店企业关键词优化价格
  • 六安市 网站集约化建设seo博客推广
  • 网站开发建设兼职大片网站推广
  • 花卉电子商务网站开发泉州seo技术
  • 视频剪辑课程陕西seo顾问服务
  • 搞钱的路子网站 今日头条
  • 山东高端网站建设服务商电商营销策划方案
  • 自家房子做民宿的网站百度小说风云榜排名完结
  • 公司网站建设搜索引擎排名优化技术
  • 国外的旅游网站做的如何互联网营销师是做什么的
  • 网站建设要学习什么郑州seo推广外包
  • 网站主机要怎么做免费推广引流平台
  • 云主机怎么上传网站关键词排名优化提升培训
  • 合肥做网站开发多少钱腾讯广告代理
  • 网站开发的基础百度怎么投放自己的广告
  • 美食网站建设毕业设计厦门seo外包平台
  • 洛阳公司做网站百度竞价排名医院事件
  • 网站开发合同纠纷台州百度快照优化公司
  • 建设银行网站 开户行怎么查搜索引擎营销是什么意思
  • 网站如何做团购信息发布推广平台
  • 长汀党的建设网站seo是什么意思 seo是什么职位
  • 北京网站建设及app北海seo快速排名
  • 仿励志一生lz13网站整站源码网站托管
  • 电话销售做网站犯法吗宁波pc营销型网站制作
  • 电视剧在线观看完整版免费网站2024年阳性什么症状
  • 品牌设计作品集域名seo站长工具