- 1、本文档共78页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
数据库 ch4_5m
?未经作者允许,请勿发布该文档!yingqichen@sjtu.edu.cn VHDL Simulation Synthesis Data object Agenda Data Type Data Properties Data Object Operation Agenda Data Type Integer Type Physical Type Floating Point Type Enumeration Type Arrays Recorders Subtypes Data Properties Data Object Operation Integer Type Definition Type IntTypeName is range Int1 to Int2 (Int1 and Int2 are integers and Int1 Int2) Type IntTypeName is range Int1 downto Int2 (Int1 and Int2 are integers and Int1 Int2) Integer Type Example Example Type byte_int is range 0 to 255 Type signed_byte is range -128 to 127; Type Bit_idx is range 7 downto 0; Pre-defined type (standard.vhd) TYPE INTEGER IS RANGE -2147483648 TO 2147483647; Integer Signal Example signal a: integer; … a = 1; -- ? a = -1; -- ? a = 1.0; -- ? a = 1 ns; -- ? Agenda Data Type Integer Type Physical Type Floating Point Type Enumeration Type Arrays Recorders Subtypes Data Properties Data Object Operation Physical Type Definition type NewName is range Int1 to Int2 units UnitName1; UnitName2 = ??? UnitName1; UnitName3 = ??? UnitName2; UnitName4 = ??? UnitName3; ... ; end units [NewName]; Physical Type Example (Time) TYPE TIME IS RANGE -9223372036854775808 TO 9223372036854775807 UNITS fs; ps = 1000 fs; ns = 1000 ps; us = 1000 ns; ms = 1000 us; sec = 1000 ms; min = 60 sec; hr = 60 min; END UNITS; Physical Type Example (Resistance) type resistance is range 0 to 1E8 units ohms; kohms = 1000 ohms; Mohms = 1E6 ohms; end units; Physical Type (Package) library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_arith.all; use ieee.std_logic_unsigned.all; package my_package is constant const_K : integer := 100; type state_type is (idle, s0, s1, s2, s3); subtype Byte is Std_logic_vector(7 downto 0); type Current is range 0 to 1000000000 units nA; uA = 1000 nA; mA = 1000 uA; A = 1000 mA; end units; end my_package;
您可能关注的文档
- 教师如何做课题 新课背景下教育科研的实践与思考.ppt
- 教师教学能力调研第三题反馈 - PowerPoint Presentation.ppt
- 教师教学技能-教学设计.ppt
- 教师教育信息化的系统思维框架 - 现代教育技术网络课程.ppt
- 教师教育技术能力及评估-缪蓉.ppt
- 教师文明礼仪知识.ppt
- 教师有效技能的培养与提高的研究.ppt
- 教师班级经营与教学效能.ppt
- 教师的教育科研.ppt
- 教师组如何进行有效的集体备课.ppt
- 《JJF 2132-2024荧光紫外灯人工气候老化试验装置校准规范:辐射照度参数》.pdf
- JJF 2120-2024轮速传感器校准规范.pdf
- 计量规程规范 JJF 2120-2024轮速传感器校准规范.pdf
- 《JJF 2129-2024钙钛矿太阳电池校准规范:光电性能参数》.pdf
- JJF 2129-2024钙钛矿太阳电池校准规范:光电性能参数.pdf
- 《JJF 2120-2024轮速传感器校准规范》.pdf
- JJF 2117-2024沥青混合料理论最大相对密度仪校准规范.pdf
- JJF 2116-2024特定蛋白分析仪校准规范.pdf
- 《JJF 2116-2024特定蛋白分析仪校准规范》.pdf
- 计量规程规范 JJF 2117-2024沥青混合料理论最大相对密度仪校准规范.pdf
文档评论(0)