数据库 ch4_5m.ppt

  1. 1、本文档共78页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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;

文档评论(0)

ligennv1314 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档