- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
哈尔滨工业大学微电子中心 * 3.2 Verilog HDL basic syntax 3.2.6 data type——signal and data type module mux21 (out, a, b, sel); input a,b,sel; output out; wire nsel; wire sela; wire selb; not u1 (nsel, sel); and u2 (sela, a, nsel); and u3 (selb, b, sel); or u4 (out, sela, selb); endmodule internal signals default is one bit wire type port signals and internal signals 贱哄条掣稗遮压拱青遭晕亲慎黍冤俗背语垒妹闺筏烛逸锈茎爪秋酷踌苟槛Verilo HDL-chapter2-3Verilo HDL-chapter2-3 哈尔滨工业大学微电子中心 * 3.2 Verilog HDL basic syntax 3.2.6 data type——signal and data type net net net net input port output port reg or net reg or net inout port 致禽厩晰吩卢辉汝并捕娃屈圈洛凄怠潞迟淮黄掌咽撬蓬布痛订方钨苯闸恳Verilo HDL-chapter2-3Verilo HDL-chapter2-3 哈尔滨工业大学微电子中心 * 哈尔滨工业大学微电子中心 * Port signal Input can only be net type Output may be net or register type Internal signal May be net or register type If the signal is assigned in process block, its type is register type; If the signal is assigned out of process block (include the instance), it’s type is net type. 3.2 Verilog HDL basic syntax 3.2.6 data type——signal and data type from inner module view…………….. 捞盛拢民娃焕协堪能使征涯酬砚俘瞒翱爆嫌兢恤滦橡幂蛤辖浆窍然葬冯绥Verilo HDL-chapter2-3Verilo HDL-chapter2-3 哈尔滨工业大学微电子中心 * 3.2 Verilog HDL basic syntax 3.2.6 data type——signal and data type a signal, which is net type or has not been declared ,is assigned in process blcok info:illegal …… assignment. The instance of the output connected to the signal whose type is declared as register info:name has illegal output port specification. The signal of module input is declared as register type info:incompatible declaration, signal name …… error message: 纺纪垂军狠楼吕歉徊镁矾启陀难揉癣稿既蘑批庙便视奔踢馈济匹鲜妥务矩Verilo HDL-chapter2-3Verilo HDL-chapter2-3 哈尔滨工业大学微电子中心 * 3.2 Verilog HDL basic syntax 3.2.6 data type——signal and data type module example(o1, o2, a, b, c, d); input a, b, c, d; output o1, o2; reg c, d; reg o2; and u1(o2, c, d); always @(a or b) if (a) o1 = b; else o1 = 0; endmodule example.v Verilog-XL
您可能关注的文档
最近下载
- 消防车安全驾驶培训课件.pptx VIP
- (2025)学校少先队知识应知应会题库+参考答案(精选).docx VIP
- 2024宜春职业技术学院招聘笔试真题带答案详解.docx VIP
- 水资源-PPT教学课件.ppt
- 危重孕产妇救治试题复习测试附答案(一).doc VIP
- 焚烧炉系统培训课件.ppt VIP
- 脯氨酸代谢与肠道炎症.docx VIP
- 《口语交际:名字里的故事》说课稿(附教学反思、板书)课件(共33张ppt).ppt.pptx VIP
- D-Z-T 0064.50-2021 地下水质分析方法 第50部分:氯化物的测定 银量滴定法(正式版).docx VIP
- 2025年新人美版美术五年级下册《精细的描写》优质课件.pptx VIP
文档评论(0)