- 博客(4)
- 收藏
- 关注
原创 如何本地安装chisel bootcamp
chisel bootcamp是一个非常帮的学习chisel的教程,而且可以直接线上编译,方便的一批,但是因为直接线上使用jupyter的话会不停的重新加载,非常麻烦,所以,本地安装就很美滋滋,官方的教程有点问题,做一些更新linux:我的环境是Ubuntu16.04,应该关系不大。首先按照官方教程安装jupyterJupyterFirst install Jupyter....
2019-07-31 16:24:50
862
原创 Chisel 对多输入电路的测试
最近需要写一个测试激励,因为输入信号比较多,所以每个都poke会很麻烦,那么怎么办呢,可以通过把输入转换成Seq的方法再使用collection的方法进行赋值,会简单许多。下面看一个例子// Max3 returns the max of its 3 argumentsclass a extends Bundle { val a = Input(UInt(16.W)) va...
2019-07-22 18:03:11
392
原创 TileLink Edge
本文总结tilelink 里edge的函数,为了更好的理解代码 def addr_hi(x: UInt): UInt = x >> log2Ceil(manager.beatBytes) def addr_lo(x: UInt): UInt = if (manager.beatBytes == 1) UInt(0) else x(log2Ceil(manager.bea...
2019-07-16 14:39:48
743
原创 Decoupled用法
Chisel DecoupledDecoupled 即为接口包装一层valid 和 ready ,decoupled 默认方向为输出,如果需要输入,可以加.flip, Decoupled 可以直接调用Bundle或者Bits,Bundle 内的端口也应该用bits定义example1 :class testeIO extends Bundle {val a = Bits(3.W)val ...
2019-07-15 16:33:02
3509
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人