FPGA Player

好记性不如烂笔头

导航

易灵思MIPI CSI 自环调试步骤

转载自:易灵思MIPI CSI 自环调试步骤 (qq.com)

MIPI使MIPIMIPI


 Efinity 2022.1.226.4.3

 IMX477Ti60F100

 

MIPI

1FPGA-mipi-utility.xlsm

Enter the video informationPixel clock frequencyIP64  Horizontal blanking per line(us)Thfp + Thbp + Thsa,

#of blanking lines per frame = VSA + VFP + VBP

 

  • “# of byte clock per H line” = ( <#of data pixels per line> + <HAS> + <HBP> + <HFP> ) x ( <# of bits per pixel> / 8 ) / <Pixel clock frequency (MHz)>
  • “# of frames per second (Hz)” = <Pixel clock frequency (MHz)> / ( (<#of data pixels per line> + <HAS> + <HBP> + <HFP>) * (<#of data lines per frame> + <VAS> + <VBP> + <VFP>) )
  • “Horizontal blanking per line (us)” = ( <HAS> + <HBP> + <HFP> ) / <Pixel clock frequency (MHz)>

HSA,HBPHFP0MIPIPHPacket Head32BitPFPacket Footer16Bit


Enter the MIPI interface detailsMIPI

 

Enter the TX timing parameter settingsuse default values

ResultsPASS

 



 

 

(1)

MIPIMIPI IObank1.2VdemoBank_3AIOBank_1BIO

P1P2VCC_1V2

2example并分配

exampleTi60F225 demoTi60F100 demoJ1J2

 

 

GPIOL_P_0725Mdemopllcore

GPIOL_N_18

1pixel

MIPI TX

PIX_CLK_MHZ <= (DATARATE_MPBS * NUM_DATA_LANE) / PACK_BIT

MIPI RX

PIX_CLK_MHZ >= (DATARATE_MPBS * NUM_DATA_LANE) / PACK_BIT

MIPI:

 MIPI Data Lane = 2

MIPI Data Rate = 800Mbps

 

parameter PIXEL_BIT  = 24, 
parameter PACK_BIT   = 48, 
parameter HSA        = 5,  //minimum value is pixel cnt value, eg: RGB888 - 2 
parameter HBP        = 5,   //minimum value is pixel cnt value, eg: RGB888 - 2 
parameter HFP        = 1024, 
parameter HACT_CNT   = 1920,     //h_total = 2945 
parameter VSA        = 1, 
parameter VBP        = 1, 
parameter VFP        = 100, 
parameter VACT_CNT   = 1080,     // v_total =    1182 3,480,990 
parameter HS_BYTECLK_MHZ = 100, 
parameter DATATYPE = 6'h24     //24 - RGB888

 

DATARATE_MPBS  = 800
NUM_DATA_LANE = 2
PACK_BIT = 48
PIX_CLK_MHZ <= 800 * 2/ 48 = 33.33 //像素时钟频率

lanePASS

Horizontal blanking per line(us) = (5+5+1024)*(1000/66)ns = 15.51us

demo30M.utilityOK PASS.

===================================

MIPI 

===================================

(1)

laneIPdata lane2

2

3

debugr_failr_passr_passr_failr_pass

assign led[1] = r_fail;assign led[2] = r_pass;


IP

 

demopass

 

LP_CLK_OE


 

 


1

2pass


MIPI RX

MIPI TX

 

 

注意事项

(1)soft MIPI文档上把MIPI的数据速率限制在了400~1500Mbps.

 

 

MIPI CSI rx

Initialization error:要等待MPI RX初始化完成后才能接收数据。

 

 

 

 

 

 

 

posted on 2023-01-31 16:20  中国的孩子  阅读(365)  评论(0编辑  收藏  举报