- 3
- 0
- 约2.38万字
- 约 78页
- 2018-02-13 发布于江西
- 举报
数据库 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
- 腾讯安全沙龙:红队视角下的海外SRC猎场:战略、战术与突破.pdf
- 【icap】ETS的范围扩展:设计和政策挑战.docx
- bcg -美国最高法院关于关税的裁决对你的企业意味着什么 What Does the US Supreme Court Ruling on Tariffs Mean for Your Business.pdf
- 2026届甘肃兰州市高三下学期第一次模拟考试历史试卷(扫描版,含答案).docx
- bcg -零售银行如何让人工智能代理发挥作用 How Retail Banks Can Put AI Agents to Work.pdf
- 住宅项目规范解读(GB 55038-2025) -培训 - 房地产-2025.docx
- 盘扣式脚手架工程量自动计算表 -培训 -房地产-2025.pdf
- 广东省汕头市2024-2025学年高三下学期第一次模拟考试英语学试题(含答案).docx
- 品牌研究+_+2025+CAPSE中国航司品牌榜单.pdf
- 【银河专题】如何看待豆粕内外价差关系.pdf
最近下载
- TFD模型和余氏理论对材料设计的应用.pdf VIP
- 2026江苏苏豪控股集团校招面笔试题及答案.doc VIP
- 2025年河南省中考题数学试题(原卷版+解析版).pdf
- 东方神女山鬼系列全集(26页).docx VIP
- 《薄层液基细胞学检查与HPV分型检测在宫颈疾病筛查中的应用》.docx VIP
- 2025 呼吸内科疑难病例医学查房实践课件.pptx VIP
- 2024年安徽工贸职业技术学院单招职业适应性测试题库及答案解析.docx VIP
- 分析化学武汉大学第五版课件(全).ppt VIP
- 《金属非金属矿山安全检查工》课件.ppt VIP
- 2025年安徽工贸职业技术学院单招职业适应性测试题库及答案解析.docx VIP
原创力文档

文档评论(0)