lattice学习笔记-CmosToMipi简明教程
一.建立好工程;
二.打开Clarity Designer;
三.Create new Clarity design(以后直接open);四.选择Lattice IP Server;
五.双击IP(Click to get IP information);
六.下载完后,选择CMOS to D-PHY进行安装(安装时把杀毒软件关掉);
七.安装完成后回到Lattice IP那栏,双击cmos to d-phy;
八.命名名后,点击Customize;
九.接下来以CSI2为例,配置ip;
十.在Configuration里,TX insterface选择CSI2;
十一.填写TXLine Rate(perlane),计算方式:
十二.填写Tinit_SLAVE Value(Specify delay time for Tx D-PHY tINIT requirement. Must satisfy Tx D-PHY tINIT minimum requirement of 100 μs and is clocked by byte clock);
十三.在Video栏选择Data Type和填写Word Count(Word Count = (Number of active pixel per line)∙(Bits per pixel) / 8),然后点击Configure;
十四.最后就是例化和编译工程,注意:因为cmos to d-phy调用了硬核,所以cmos to d-phy的输出引脚不需要绑定,系统默认的是调用MIPI D-PHY0硬核。