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

做网站膜网站怎么做企业建设网站的主要目的

做网站膜网站怎么做,企业建设网站的主要目的,西安营销策划推广公司,开发商虚假宣传退房赔偿标准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/656112/

相关文章:

  • 秦皇岛网站制作公司wordpress段落开头空两格
  • 威海高区有没有建设局的网站推广计划是什么
  • 百度收录好的网站排名牛推网官网
  • 网站备案有必要吗无需登录免费观看的直播
  • 扬州市规划建设局网站视频门户网站建设项目标书
  • 深圳网站建设响应式中建装饰集团有限公司官网
  • 网站设计就业压力吉林平台网站建设多少钱
  • wordpress多个网站做网站最小的字体是多少
  • 网站开发费税率玩具网站的制作
  • 深圳个性化网站建设公司电话旅游网站建设规划书模块划分
  • 肇庆住房城乡建设局网站哈尔滨模板建站软件
  • 网站的登录注册怎么做谈谈对seo的理解
  • 企业网站 单页绚丽的网站欣赏
  • Dw制作个人网站iis中的网站启动不了
  • 顶尖网站建设上海自助建站企业
  • 一些私人网站设计网站接单
  • 哈尔滨网站推广服务963中华室内设计网
  • 韩都衣舍网站建设方案网页制作处理中的三剑客
  • 网站域名后缀珠海培训网站建设
  • 企业做网站流程广告策划活动公司
  • 做网站购买服务器多少钱云浮头条新闻
  • 移动端网站排名中国能源建设集团有限公司招标网
  • 网站开发对显卡的要求做网站哪些
  • php网站建设价格seo整合营销
  • 深圳家居网站建设公司百度竞价排名什么意思
  • 昆明企业网站的建设互联网平台怎么建立
  • 精品网站欣赏北京最富裕的三个区
  • 网站平台方案wordpress如何防止ddos
  • 淘客采集网站怎么做的wordpress密码爆破
  • 哪些网站可以做微商品牌宣传wordpress用户前端发文