https://mp.weixin.qq.com/s/bSrM-wLRn7O_75xYKeoaEQ

 
Chisel中的基本数据类型,不是Verilog中的Wire和Reg。Wire和Register只是数据的容器,而非数据本身。所以Chisel中的数据类型抽象层次更高一些,更关注数据的行为和组织形式的异同。
 
基本数据类型的类图如下:
其中:
1. 实线箭头为继承父类(extends);
2. 虚线箭头为实现接口(with);
3. 倾斜字体的类为抽象类(abstract);
4. 标注为叶子(leaf)的为最终类(final);
 
参考链接:
 
 
1. Data
 
所有数据类型的父类,包含了基本数据类型和复合数据类型的共同的属性和方法。
 
2. Element
 
基本数据类型的父类
 
3. ToBoolable
 
可以转换成布尔型的类型。在Verilog中wire和reg类型都可以作为真假判断条件。
 
4. Num
 
数字类型的接口。包含数字的基本运算和比较方法。
 
5. Bits
 
所有的数值,最终都要以二进制比特组的形式表达,Bits就代表这个比特序列。包含位选择和各种位操作。
 
6. UInt
 
无符号整型数。
 
7. SInt
 
有符号整型数
 
8. Bool
 
布尔型
 
9. FixedPoint
 
定点数。
 
10. Analog
 
Data type for representing bidirectional bitvectors of a given width.
 
Analog support is limited to allowing wiring up of Verilog BlackBoxes with bidirectional (inout)
pins. There is currently no support for reading or writing of Analog types within Chisel code.
 
 
 
 

最新文章

  1. zabbix安装
  2. Sql Server 删除所有表(转)
  3. SQL关于limit的用法
  4. rabbitMQ publish丢包分析
  5. JavaScript正则实战
  6. Java泛型方法定义及泛型类型推断
  7. xdu_RainAndBow 鞍山打铁记
  8. error and solve
  9. ruby轻松自删除代码
  10. Java(6)for循环
  11. Taro-ui TabBar组件使用路由跳转
  12. JS高级-ES6
  13. 为何float有效位数为7位?
  14. 适用于 Windows 7 SP1、Windows Server 2008 R2 SP1 和 Windows Server 2008 SP2 的 .NET Framework 4.5.2 仅安全更新说明:2017 年 9 月 12 日
  15. ubuntu下安装Firefox中国版解决Ubuntu与Windows下Firefox账号同步问题(已解决)
  16. mysql和redis加入到windows服务
  17. Jmeter 问题集
  18. 使用JPA保存对象时报nested exception is javax.persistence.RollbackException: Transaction marked as rollbackOnly错误
  19. zookeeper集群查看状态时报错Error contacting service. It is probably not running的一些坑以及解决办法
  20. Redis实战(四)

热门文章

  1. F - Power Network POJ - 1459
  2. Spring Cloud学习 之 Spring Cloud Hystrix(断路器原理)
  3. redux中间件的理解
  4. [hdu5372 Segment Game]树状数组
  5. 4-JVM 参数
  6. burpsuite抓包无法识别POST参数问题
  7. vue相关环境搭建一条龙
  8. Linux中的vi编辑器使用
  9. Linux之cat的使用介绍
  10. context的简单应用