12 2018 档案

摘要:https://mp.weixin.qq.com/s/ENJVkz88sGgyODRNCu9jhQ 介绍Data类中的binding的定义和用法。 Binding stores information about this node's position in the hardware graph. 阅读全文
posted @ 2018-12-31 22:56 wjcdx 阅读(401) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/2318e6VJ4wFGpWwBOmTikA Chisel数据类型(Data)与Module的绑定关系,根据Data的使用方式不同,而有多种绑定类型。 参考链接: https://github.com/freechipsproject/chise 阅读全文
posted @ 2018-12-31 22:55 wjcdx 阅读(607) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/Jsy8P3m9W2EYKwneGVekiw 独热码相关的电路生成器。 参考链接: https://github.com/freechipsproject/chisel3/blob/master/src/main/scala/chisel3/ut 阅读全文
posted @ 2018-12-24 23:21 wjcdx 阅读(1520) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/mO648yx4_ZRedXSWX4Gj2g 可以容纳不同类型的变量的向量。 参考链接: https://github.com/freechipsproject/chisel3/blob/master/src/main/scala/chisel3 阅读全文
posted @ 2018-12-24 23:20 wjcdx 阅读(710) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/TK1mHqvDpG9fbLJyNxJp-Q Mux相关电路生成器。 参考链接: https://github.com/freechipsproject/chisel3/blob/master/src/main/scala/chisel3/uti 阅读全文
posted @ 2018-12-24 23:20 wjcdx 阅读(1809) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/g85Si6n37D9PYfR5hEoRQQ 实现一个查找逻辑。 参考链接: https://github.com/freechipsproject/chisel3/blob/master/src/main/scala/chisel3/util/ 阅读全文
posted @ 2018-12-24 11:07 wjcdx 阅读(937) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/8lC8vQnBdKW9C39H0QFFkA 对数相关的辅助方法,Math通过软件方法实现,CircuitMath通过硬件方法实现。 参考链接: https://github.com/freechipsproject/chisel3/blob/m 阅读全文
posted @ 2018-12-24 11:06 wjcdx 阅读(1068) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/DSdb4tmRwDTOki7mbyuu9A 实现16位线性反馈移位寄存器。可用于生成简单的伪随机数。 ​​ ​​ 参考链接: https://github.com/freechipsproject/chisel3/blob/master/src 阅读全文
posted @ 2018-12-24 11:05 wjcdx 阅读(908) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/MQzX1Ned35ztz0vusPdkdQ 比特相关的操作。 参考链接: https://github.com/freechipsproject/chisel3/blob/master/src/main/scala/chisel3/util/B 阅读全文
posted @ 2018-12-23 14:48 wjcdx 阅读(486) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/80Q8j-OSMtgh5a92pI-MZA 使用value和mask来描述一个比特模式,即:value = bits & mask. 参考链接: https://github.com/freechipsproject/chisel3/blob/ 阅读全文
posted @ 2018-12-23 14:47 wjcdx 阅读(1795) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/5oAwH3scumARzPidRBfG2w 带锁多入单出仲裁器,输出会被锁定指定的时钟周期。 参考链接: https://github.com/freechipsproject/chisel3/blob/master/src/main/scal 阅读全文
posted @ 2018-12-19 21:53 wjcdx 阅读(637) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/GcNIFkHfa0gW0HKkKvHZEQ 循环优先级(Round Robin)仲裁器。 参考链接: https://github.com/freechipsproject/chisel3/blob/master/src/main/scala/ 阅读全文
posted @ 2018-12-16 22:33 wjcdx 阅读(1061) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/7Y23gV6yPvtmvKHTo2I8mw 基于ReadyValid接口实现的多入单出仲裁器。 参考链接: https://github.com/freechipsproject/chisel3/blob/master/src/main/sca 阅读全文
posted @ 2018-12-16 17:45 wjcdx 阅读(978) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/vlyOIsQxR6bCqDDMtRQLLg 实现队列模块,先入先出(FIFO)。 参考链接: https://github.com/freechipsproject/chisel3/blob/master/src/main/scala/chis 阅读全文
posted @ 2018-12-15 20:57 wjcdx 阅读(1735) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/g7Q9ChxHbAQGkbMmOymh-g ReadyValid通信接口。通信的双方为数据的生产者(Producer)和消费者(Consumer)。 通信协议: 1. Producer有数据要发送,则把Valid位置位为1; 2. Consum 阅读全文
posted @ 2018-12-15 20:56 wjcdx 阅读(1220) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/WeFesE8k0ORxlaNfLvDzgg 流水线,用于添加延迟。 参考链接: https://github.com/freechipsproject/chisel3/blob/master/src/main/scala/chisel3/uti 阅读全文
posted @ 2018-12-13 22:41 wjcdx 阅读(724) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/L5eAwv--WzZdr-CfW2-XNA Chisel提供的Valid接口。如果valid为置1,则表明输出的bits有效;反之,则输出无效。 参考链接: https://github.com/freechipsproject/chisel3 阅读全文
posted @ 2018-12-13 22:40 wjcdx 阅读(1420) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/tDpUe9yhwC-2c1VqisFzMw 演示如何使用状态机。 参考链接: https://github.com/ucb-bar/chisel-tutorial/blob/release/src/main/scala/solutions/Ve 阅读全文
posted @ 2018-12-09 21:48 wjcdx 阅读(478) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/5lcMkenM2zTy-pYOXfRjyA 演示如何使用switch/is来实现状态机。 参考链接: https://github.com/ucb-bar/chisel-tutorial/blob/release/src/main/scala/ 阅读全文
posted @ 2018-12-09 21:48 wjcdx 阅读(411) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/e8vJ8claauBtiuedxYYaJw 实现可以动态索引的表。 参考链接: https://github.com/ucb-bar/chisel-tutorial/blob/release/src/main/scala/examples/Tb 阅读全文
posted @ 2018-12-09 21:47 wjcdx 阅读(510) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/-AVJD1IfvNIJhmZM40DemA 实现后入先出(last in, first out)的栈。 参考链接: https://github.com/ucb-bar/chisel-tutorial/blob/release/src/main 阅读全文
posted @ 2018-12-09 21:46 wjcdx 阅读(517) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/3hDzpJiANdwp07hO03psyA 演示使用函数进行代码复用的方法。 参考链接: https://github.com/ucb-bar/chisel-tutorial/blob/release/src/main/scala/exampl 阅读全文
posted @ 2018-12-09 21:45 wjcdx 阅读(396) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/OtiQnE52PwdCpvmzJ6VFnA 奇偶发生器。统计输入中1的个数,如果为偶数则输出0,奇数则输出1。 参考链接: https://github.com/ucb-bar/chisel-tutorial/blob/release/src/ 阅读全文
posted @ 2018-12-09 21:44 wjcdx 阅读(425) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/RQg2ca1rwfVHx_QG-IOV-w 字节选择器。 参考链接: https://github.com/ucb-bar/chisel-tutorial/blob/release/src/main/scala/examples/ByteSel 阅读全文
posted @ 2018-12-09 21:43 wjcdx 阅读(500) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/LKiXUgSnt3DzgFLa9zLCmQ 简单的寄存器在时钟的驱动下,逐个往下传值。 参考链接: https://github.com/ucb-bar/chisel-tutorial/blob/release/src/main/scala/e 阅读全文
posted @ 2018-12-09 21:42 wjcdx 阅读(982) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/SEcVjGRL1YloGlEPSoHr3A 位数为参数的加法器。通过FullAdder级联实现。 参考链接: https://github.com/ucb-bar/chisel-tutorial/blob/release/src/main/sc 阅读全文
posted @ 2018-12-09 21:41 wjcdx 阅读(751) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/X5EStKor2DU0-vS_wIO-fg 四位加法器。通过FullAdder级联实现。 参考链接: https://github.com/ucb-bar/chisel-tutorial/blob/release/src/main/scala/ 阅读全文
posted @ 2018-12-09 21:39 wjcdx 阅读(553) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/Aye-SrUUuIP6_o67Rlt5OQ 全加器 逻辑图如下: ​​ 参考链接: https://github.com/ucb-bar/chisel-tutorial/blob/release/src/main/scala/examples/ 阅读全文
posted @ 2018-12-03 21:27 wjcdx 阅读(1076) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/2vjM-gcauvHnn6KJzlOm4g Chisel的模块和Verilog的模块很相似,都用来定义模块结构(hierarchical structure)。 Chisel的模块定义,包含三部分内容: a. 继承自Module类; b. 定义 阅读全文
posted @ 2018-12-02 13:34 wjcdx 阅读(760) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/rI-CJM6GyI6EUHPZ3uYiFg 如同Verilog中的众多运算符,Chisel也针对自身的数据类型,提供了很多运算符。 Chisel语言内嵌于Scala。在Scala中,基本上所有的运算符都被当做一般的字符,可以作为命名符号(ide 阅读全文
posted @ 2018-12-02 13:33 wjcdx 阅读(2253) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/36jreQGpDLCCNfmUwI34lA 模块接口有三种方向:Input/Output/Inout。Chisel在声明模块接口的时候,也需要提供这些信息。 参考链接: https://github.com/freechipsproject/c 阅读全文
posted @ 2018-12-01 22:33 wjcdx 阅读(1050) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/Y26N5P4XOr5e3uyi5XQY-w 不同于Verilog,Chisel中Wire和Reg并不是数据类型,而是数据容器,作为数据的一个特征而存在。 Wire和Reg作为数据容器,只是标识了变量是否可以存值这一个特征。但这不是数据类型的主要 阅读全文
posted @ 2018-12-01 22:31 wjcdx 阅读(1815) 评论(0) 推荐(0)