CSI2 Receiver IP-core
=====================
IP-core is designed for educational purposes to receive video data from PCAM-5C to Zybo Z7-20 Development Kit.
But i honestly believe this core can also work with other MIPI CSI2 camera modules like Pi Camera.
Module can be reviewed as convertor from CSI2 to AXI4-Stream video stream.
As for CSI2 signals it requires separated DPHY signals for high-speed transmissions and for low-power transmission.
Hence low-power communication is not supported and low-power signals are used to determine whenever high-speed communication starts.
I designed and tested this core for two-lane communication, but was keeping in mind to use up to four lanes, which was verified by testbench.
All following description relates only to two-lane mode of operation.
Structure
---------
```text
+----------------+
CAM_PWUP | |
<----------------| Power-UP timer |
| |
+----------------+
SCCB Signals +----------------+
<--------------->| |
SCCB AXI4-Lite | sccb_master |
<--------------->| |
+----------------+
+----------------+ +---------------+
DPHY Signals | | | | AXI4-Stream Video
---------------->| csi2_rx |------>| stat_acc |------------------->
| | | |
+----------------+ +---------------+
^ |
| |
v v
+----------------------------------------+
CSR AXI4-Lite | |
<--------------->| CSR |
| |
+----------------------------------------+
```
As shown above design wrapper contains:
* AXI4-Lite SCCB master for communication with sensor
* Error and video output statistics accumulator
* AXI4-Lite CSR for core tuning and debug
* Power-up sequence module
* CSI-2 receiver
CSR Description
---------------
```text
________________________________________________________________________________________
| | | | |
| Name | Description | Byte Address | Accsess |
|_____________________|_____________________________________|______________|_____________|
| | | | |
| CLEAR_STAT | Clear statistics gathered by the | 0x00 | R/W |
| | core. 0-to-1 transition sensitive | | |
|_____________________|_____________________________________|______________|_____________|
| | | | |
| PHY_ENABLE | When set to 0 byte synchronization | 0x04 | R/W |
| | is disabled and no video output is | | |
| | provided. Enabled otherwis | | |
|_____________________|_____________________________________|______________|_____________|
| | | | |
| SCCB_SLAVE_ADDR | Sensor device ID on SCCB bus | 0x08 | R/W |
|_____________________|_____________________________________|______________|_____________|
| | | | |
| LANE_0_DELAY | Data-to-clock additional delay for | 0x0c | R/W |
| | lane 0 | | |
|_____________________|_____________________________________|______________|_____________|
| | | | |
| LANE_1_DELAY | Data-to-clock additional delay for | 0x10 | R/W |
| | lane 1 | | |
|_____________________|_____________________________________|______________|_____________|
| | | | |
| DELAY_ACT | Actualize additional lane delays. | 0x14 | R/W |
| | 0-to-1 transition sensitive | | |
|_____________________|_____________________________________|______________|_____________|
| | | | |
| HEADER_ERR_CNT | Amount of header errors (droped | 0x18 | R |
| | packetS) | | |
|_____________________|_____________________________________|______________|_____________|
| | | | |
| CORR_HEADER_ERR_CNT | Amount of corrected header errors | 0x1c | R |
|_____________________|_____________________________________|______________|_____________|
| | | | |
| CRC_ERR_CNT | Amount of corrupted long packets | 0x20 | R |
|_____________________|_____________________________________|______________|_____________|
| | | | |
| MAX_LN_PER_FRAME | Maximum amount of long packets | 0x24 | R |
| | between FRAME START short packets | | |
|_____________________|_____________________________________|______________|_____________|
| | | | |
| MIN_LN_PER_FRAME | Minimum amount of long packets | 0x28 | R |
| | between FRAME START short packets | | |
|_____________________|_____________________________________|______________|_____________|
| | | | |
| MAX_PX_PER_LN | Maximum amount of pixels in one | 0x2c | R |
| | long packet | | |
|_____________________|_____________________________________|______________|_____________|
| | | | |
| MIN_PX_PER_LN | Minimum amount of pixels in one | 0x30 | R |
| | long packet | | |
|_____________________|_____________________________________|_
没有合适的资源?快使用搜索试试~ 我知道了~
csi-2 rx yiyiyiyi
共48个文件
sv:26个
tcl:8个
bin:3个
需积分: 0 0 下载量 22 浏览量
2023-05-30
12:04:57
上传
评论
收藏 9.77MB ZIP 举报
温馨提示
csi-2 rx yiyiyiyi
资源推荐
资源详情
资源评论
收起资源包目录
csi2_rx-master.zip (48个子文件)
csi2_rx-master
lib
axi4_lib
i2c_lib
dphy_lib
fifo_lib
src
csi2_pkt_handler.sv 3KB
ov5640_init_pkg.sv 1KB
cam_pwup.sv 6KB
dphy_hs_clk_rx.sv 854B
csi2_crc_calc.sv 4KB
dphy_word_align.sv 3KB
dphy_32b_map.sv 5KB
csi2_err_bit_pos_pkg.sv 664B
csi2_2_lane_rx_wrap.sv 14KB
sccb_master.sv 10KB
dphy_byte_align.sv 3KB
csi2_data_types_pkg.sv 1KB
csi2_raw10_32b_40b_gbx.sv 4KB
csi2_px_serializer.sv 3KB
csi2_to_axi4_stream.sv 4KB
csi2_stat_acc.sv 5KB
dphy_settle_ignore.sv 2KB
clk_detect.sv 2KB
dphy_hs_data_rx.sv 4KB
csi2_csr.sv 4KB
dphy_slave.sv 6KB
ov5640_1080p30_pkg.sv 740B
csi2_hamming_dec.sv 5KB
csi2_csr_pkg.sv 887B
csi2_rx.sv 9KB
LICENSE 34KB
tb
rx_img.bin 10.12MB
files 741B
tb_csi2.sv 9KB
make.tcl 108B
wave.do 1KB
scripts
img_read.m 234B
csi2_img.bin 22.77MB
px_img.bin 19.04MB
img.jpg 826KB
img_gen.m 1KB
component.xml 92KB
.gitmodules 586B
.gitignore 69B
example
zynq_config.tcl 20KB
dbg.tcl 5KB
Makefile 583B
sdk.tcl 998B
build.tcl 17KB
connect.tcl 752B
README.md 9KB
xgui
csi2_2_lane_rx_wrap_v1_0.tcl 195B
csi2_2_lane_rx_v1_0.tcl 2KB
ip
crc_calc
dual_port_ram
共 48 条
- 1
资源评论
weixin_55031823
- 粉丝: 0
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于c++的个人收支管理系统设计
- docker一键安装包
- Screenshot_20240430_144340_com.ss.android.ugc.live.jpg
- 回到山沟沟.mp3
- 基于matlab实现自适应波束形成RLS及LMS算法仿真源程序1.rar
- 基于matlab实现自己编写的基于卡尔曼滤波的利用加速度传感器的计步器,测试数据是传感器放在腰部和手臂 .rar
- 基于matlab实现阵列信号处理,波束形成.rar
- 111111111111111111
- 基于matlab实现计步器编程;对当前的计步器装置的数值算法模拟 .rar
- Mdb学习查看PW;access;mdb;pw;password;patch
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功