[go: up one dir, main page]

CN201936294U - Caching system for high-speed image acquisition system - Google Patents

Caching system for high-speed image acquisition system Download PDF

Info

Publication number
CN201936294U
CN201936294U CN2010206585054U CN201020658505U CN201936294U CN 201936294 U CN201936294 U CN 201936294U CN 2010206585054 U CN2010206585054 U CN 2010206585054U CN 201020658505 U CN201020658505 U CN 201020658505U CN 201936294 U CN201936294 U CN 201936294U
Authority
CN
China
Prior art keywords
sdram
controller
data
line
image acquisition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2010206585054U
Other languages
Chinese (zh)
Inventor
郑乔俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN SHIXIN DIGITAL Co Ltd
Original Assignee
SHENZHEN SHIXIN DIGITAL Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN SHIXIN DIGITAL Co Ltd filed Critical SHENZHEN SHIXIN DIGITAL Co Ltd
Priority to CN2010206585054U priority Critical patent/CN201936294U/en
Application granted granted Critical
Publication of CN201936294U publication Critical patent/CN201936294U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Image Input (AREA)

Abstract

本实用新型提供了一种高速图像采集系统的缓存系统,包括FPGA的缓存模块,还包括与所述FPGA的缓存模块相连接的SDRAM。所述FPGA的缓存模块包括输入FIFO、控制器、以及输出FIFO;而所述控制器包括数据控制器和SDRAM控制器;数据控制器起到控制输入FIFO、输出FIFO和SDRAM之间的数据读写的作用,SDRAM控制器的主要功能是控制状态机的转换,并将控制命令、读写地址(包括片选、行选、列选)、数据掩码等传给SDRAM。在一定的时序状态下,输入FIFO、输出FIFO和SDRAM之间的数据读写可以连续的进行。相对于现有技术,本实用新型中的高速图像采集系统的缓存系统,采用具有开发过程投资小、开发周期短、以及可方便地反复编程修改等优点的FPGA来设计SDRAM的控制器,很好的降低了成本,另外通过对FPGA内部逻辑的合理编辑应用完成了高速图像采集系统的缓存系统中的SDRAM所需的极其复杂的时序和组合逻辑的设计。

The utility model provides a cache system of a high-speed image acquisition system, which includes a cache module of FPGA and an SDRAM connected with the cache module of FPGA. The buffer module of described FPGA comprises input FIFO, controller, and output FIFO; And described controller comprises data controller and SDRAM controller; Data controller plays the data reading and writing between control input FIFO, output FIFO and SDRAM The main function of the SDRAM controller is to control the conversion of the state machine, and to pass control commands, read and write addresses (including chip selection, row selection, column selection), data masks, etc. to SDRAM. In a certain timing state, data read and write between input FIFO, output FIFO and SDRAM can be carried out continuously. Compared with the prior art, the caching system of the high-speed image acquisition system in the utility model adopts the FPGA with the advantages of small development process investment, short development cycle, and convenient repeated programming modification to design the controller of SDRAM, which is very good. The cost is reduced, and the extremely complex timing and combinational logic design required by the SDRAM in the cache system of the high-speed image acquisition system is completed through the reasonable editing and application of the internal logic of the FPGA.

Description

一种高速图像采集系统的缓存系统A cache system of high-speed image acquisition system

技术领域technical field

本实用新型涉及电子电路领域,尤其涉及一种高速图像采集系统的缓存系统。The utility model relates to the field of electronic circuits, in particular to a cache system of a high-speed image acquisition system.

背景技术Background technique

由于SDRAM具有大容量和高速度的优点,目前许多嵌入式设备的大容量存储器都采用SDRAM来实现,而且这些用SDRAM设计的存储器大多都是用专用芯片完成其控制电路,这不但提高了成本,而且令系统的硬件电路变得复杂。Because SDRAM has the advantages of large capacity and high speed, at present, the large-capacity memory of many embedded devices is realized by SDRAM, and most of these memories designed with SDRAM use dedicated chips to complete their control circuits, which not only increases the cost, Moreover, the hardware circuit of the system becomes complicated.

实用新型内容Utility model content

为解决现有技术中大容量存储器的成本偏高、系统硬件电路复杂的问题,本实用新型利用具有集成度高、可完成极其复杂的时序和组合逻辑电路功能、开发过程投资小、开发周期短、以及可方便地反复编程修改等优点的FPGA来设计SDRAM的控制器,提供了一种高速图像采集系统的缓存系统。In order to solve the problems of high cost of large-capacity memory and complicated system hardware circuits in the prior art, the utility model utilizes the functions of high integration, extremely complex timing and combinational logic circuits, small investment in the development process, and short development cycle. , and can be easily repeated programming modification FPGA to design SDRAM controller, provides a high-speed image acquisition system cache system.

本实用新型所提供的一种高速图像采集系统的缓存系统,包括FPGA的缓存模块,还包括与所述FPGA的缓存模块相连接的SDRAM。A cache system of a high-speed image acquisition system provided by the utility model includes a cache module of FPGA and an SDRAM connected with the cache module of FPGA.

本实用新型做的进一步工作是:所述FPGA的缓存模块包括输入FIFO、控制器、和输出FIFO;所述输入FIFO与所述控制器之间用din数据线相连接;所述控制器与所述SDRAM之间用cs控制和状态连接线以及dq双向数据线相连接;所述输出FIFO与所述控制器之间用dout数据线相连接。The further work that the utility model does is: the cache module of described FPGA comprises input FIFO, controller and output FIFO; Between described input FIFO and described controller, connect with din data line; Described controller and all The SDRAMs are connected with the cs control and state connection lines and the dq bidirectional data lines; the output FIFOs are connected with the controller with the dout data lines.

本实用新型做的进一步工作是:所述控制器包括数据控制器和SDRAM控制器;所述数据控制器与所述输入FIFO之间用所述din数据线相连接;所述数据控制器与所述输出FIFO之间用所述dout数据线相连接;所述数据控制器与所述SDRAM控制器之间用cc控制和状态连接线相连接;所述数据控制器与所述SDRAM之间用所述dq双向数据线相连接;所述SDRAM控制器与所述SDRAM之间用所述cs控制和状态连接线相连接。The further work done by the utility model is: the controller includes a data controller and an SDRAM controller; the data controller is connected with the input FIFO with the din data line; the data controller is connected with the The said output FIFO is connected with said dout data line; said data controller is connected with said SDRAM controller with cc control and status connection line; said data controller is connected with said SDRAM with said data line The dq bidirectional data line is connected; the SDRAM controller is connected with the SDRAM with the cs control and status connection line.

本实用新型做的进一步工作是:所述cc控制和状态连接线包括clk时钟线、cmd命令控制线、ready状态线、addr地址线、以及dm数据掩码线;所述cs控制和状态连接线包括sclk时钟线、scmd命令控制线、saddr地址线、以及dqm数据掩码线。The further work done by the utility model is: the cc control and state connection lines include clk clock line, cmd command control line, ready state line, addr address line, and dm data mask line; the cs control and state connection line Including sclk clock line, scmd command control line, saddr address line, and dqm data mask line.

本实用新型做的进一步工作是:所述输入FIFO上设置有fin_wr信号端,还设置有fin_rd信号端;所述输出FIFO上设置有fout_wr信号端,还设置有fout_rd信号端。The further work of the utility model is: the input FIFO is provided with a fin_wr signal terminal, and a fin_rd signal terminal is also provided; the output FIFO is provided with a fout_wr signal terminal, and a fout_rd signal terminal is also provided.

本实用新型做的进一步工作是:所述cc控制和状态连接线还包括wr_en写使能信号线和rd_en读使能信号线。The further work of the utility model is: the cc control and status connection line also includes wr_en write enable signal line and rd_en read enable signal line.

相对于现有技术,本实用新型中的高速图像采集系统的缓存系统,采用具有开发过程投资小、开发周期短、以及可方便地反复编程修改等优点的FPGA来设计SDRAM的控制器,很好的降低了成本,另外通过对FPGA内部逻辑的合理编辑应用完成了高速图像采集系统的缓存系统中的SDRAM所需的极其复杂的时序和组合逻辑的设计。Compared with the prior art, the cache system of the high-speed image acquisition system in the utility model adopts the FPGA with the advantages of small development process investment, short development cycle, and the advantages of easy repeated programming modification to design the SDRAM controller, which is very good The cost is reduced, and the extremely complex timing and combinational logic design required by the SDRAM in the cache system of the high-speed image acquisition system is completed through the reasonable editing and application of the internal logic of the FPGA.

附图说明Description of drawings

图1是本实用新型高速图像采集系统的缓存系统的结构组成以及工作逻辑图。Fig. 1 is the structural composition and working logic diagram of the cache system of the high-speed image acquisition system of the present invention.

图2是读取SDRAM的数据的时序示意图。FIG. 2 is a timing diagram of reading data from SDRAM.

图3是读取SDRAM的数据时SDRAM控制器的控制命令时序示意图。FIG. 3 is a schematic diagram of the timing sequence of control commands of the SDRAM controller when reading data from the SDRAM.

图4是写入SDRAM的数据的时序示意图。FIG. 4 is a timing diagram of data written into SDRAM.

图5是写入SDRAM的数据时SDRAM控制器的控制命令时序示意图。FIG. 5 is a schematic diagram of the timing sequence of control commands of the SDRAM controller when writing data into the SDRAM.

具体实施方式Detailed ways

下面结合附图说明及具体实施方式对本实用新型进一步说明。The utility model will be further described below in conjunction with the accompanying drawings and specific embodiments.

如图1所示,本实用新型中的高速图像采集系统的缓存系统包括FPGA的缓存模块1,还包括与FPGA的缓存模块1相连接的SDRAM 2。As shown in Figure 1, the cache system of the high-speed image acquisition system in the utility model comprises the cache module 1 of FPGA, also comprises the SDRAM 2 that is connected with the cache module 1 of FPGA.

FPGA的缓存模块1包括输入FIFO 11、控制器12、和输出FIFO 13;输入FIFO 11与控制器12之间用din数据线相连接,该din数据线能使数据(用din表示该数据)从输入FIFO 11单向传输到控制器12;控制器12与SDRAM 2之间用cs控制和状态连接线以及dq双向数据线相连接,该cs控制和状态连接线能使系统对SDRAM 2设置的控制信息或状态信息(包括时钟信号、命令控制信号、读写地址信号、状态参数信号等)从控制器12单向传输到SDRAM 2,而dq双向数据线能使控制器12和SDRAM 2之间的数据(用dq表示该数据)双向传输;输出FIFO 13与控制器12之间用dout数据线相连接,该dout数据线能使数据(用dout表示该数据)从控制器12单向传输到输出FIFO 13。The cache module 1 of FPGA comprises input FIFO 11, controller 12, and output FIFO 13; Input FIFO 11 and controller 12 are connected with din data line, and this din data line can make data (represent this data with din) from The input FIFO 11 is unidirectionally transmitted to the controller 12; the controller 12 is connected with the SDRAM 2 with a cs control and status connection line and a dq bidirectional data line, and the cs control and status connection line can enable the system to control the setting of the SDRAM 2 Information or status information (including clock signal, command control signal, read and write address signal, status parameter signal, etc.) is unidirectionally transmitted from controller 12 to SDRAM 2, and the dq bidirectional data line can make the communication between controller 12 and SDRAM 2 Data (represented by dq) is bidirectionally transmitted; the output FIFO 13 is connected to the controller 12 with a dout data line, which enables data (represented by dout) to be transmitted unidirectionally from the controller 12 to the output FIFO13.

控制器12包括数据控制器121和SDRAM控制器122;数据控制器121与输入FIFO 11之间用din数据线相连接;数据控制器121与输出FIFO 13之间用dout数据线相连接;数据控制器121与SDRAM控制器122之间用cc控制和状态连接线相连接;数据控制器121与SDRAM 2之间用dq双向数据线相连接;SDRAM控制器122与SDRAM 2之间用cs控制和状态连接线相连接;系统对SDRAM 2设置的控制信息或状态信息(包括时钟信号、命令控制信号、读写地址信号、状态参数信号等)需先通过该cc控制和状态连接线从数据控制器121传输到SDRAM控制器122,然后通过cs控制和状态连接线从SDRAM控制器122传输到SDRAM 2;而数据不需要经过SDRAM控制器122、可以直接在数据控制器121和SDRAM 2之间直接传输。Controller 12 comprises data controller 121 and SDRAM controller 122; Connect with din data line between data controller 121 and input FIFO 11; Be connected with doout data line between data controller 121 and output FIFO 13; Data control The controller 121 and the SDRAM controller 122 are connected with the cc control and state connection line; the data controller 121 and the SDRAM 2 are connected with the dq bidirectional data line; the SDRAM controller 122 and the SDRAM 2 are connected with the cs control and state The control information or state information (including clock signal, command control signal, read and write address signal, state parameter signal, etc.) set by the system to SDRAM 2 needs to be transmitted from the data controller 121 through the cc control and state connection line first. Transmit to SDRAM controller 122, then transmit from SDRAM controller 122 to SDRAM 2 through cs control and status connection line; And data do not need to pass through SDRAM controller 122, can directly directly transmit between data controller 121 and SDRAM 2.

cc控制和状态连接线包括clk时钟线、cmd命令控制线、ready状态线、addr地址线、以及dm数据掩码线,它们分别传输系统的时钟信号(用clk表示该信号)、系统的译码指令信号(用cmd表示该信号)、SDRAM 2的状态信号(用ready表示该信号)、读或写地址信号(用addr表示该信号)、以及数据掩码信号(用dm表示该信号);而cs控制和状态连接线包括sclk时钟线、scmd命令控制线、saddr地址线、以及dqm数据掩码线,它们分别传输系统的时钟信号(用sclk表示该信号)、命令控制信号(用scmd表示该信号、读或写地址信号(用saddr表示该信号)、以及数据掩码信号(用dqm表示该信号)。The cc control and status connection lines include the clk clock line, the cmd command control line, the ready status line, the addr address line, and the dm data mask line, which respectively transmit the clock signal of the system (the signal is represented by clk) and the decoding of the system Command signal (use cmd to represent this signal), SDRAM 2 status signal (use ready to represent this signal), read or write address signal (use addr to represent this signal), and data mask signal (use dm to represent this signal); and The cs control and status connection lines include the sclk clock line, the scmd command control line, the saddr address line, and the dqm data mask line, which respectively transmit the system clock signal (the signal is represented by sclk), the command control signal (the Signal, read or write address signal (use saddr to represent the signal), and data mask signal (use dqm to represent the signal).

输入FIFO 11上设置有fin_wr信号端,还设置有fin_rd信号端,当从fin_wr信号端读出的写使能信号有效(即fin_wr=‘1’),则数据从高速图像采集系统中的图像传感器写入输入FIFO 11,当从fin_rd信号端读出的读使能信号有效(即fin_rd=‘1’),则开始从输入FIFO 11读出数据并通过数据控制器121把数据写入SDRAM 2;输出FIFO 13上设置有fout_wr信号端,还设置有fout_rd信号端,当从fout_wr信号端读出的写使能信号有效(即fout_wr=‘1’),SDRAM中的数据被读出、并经数据控制器121写入输出FIFO 13,当从fout_rd信号端读出的读使能信号有效(即fout_rd=‘1’),输出FIFO 13的数据被读出并经高速图像采集系统中的USB接口传输到高速图像采集系统中的USB控制器。The input FIFO 11 is provided with a fin_wr signal terminal and a fin_rd signal terminal. When the write enable signal read from the fin_wr signal terminal is valid (that is, fin_wr='1'), the data is read from the image sensor in the high-speed image acquisition system Write into the input FIFO 11, when the read enable signal read from the fin_rd signal terminal is valid (ie fin_rd='1'), then start to read data from the input FIFO 11 and write the data into SDRAM 2 through the data controller 121; The output FIFO 13 is provided with a fout_wr signal terminal and a fout_rd signal terminal. When the write enable signal read from the fout_wr signal terminal is valid (that is, fout_wr='1'), the data in the SDRAM is read out and passed through the data The controller 121 writes the output FIFO 13, and when the read enable signal read from the fout_rd signal terminal is valid (ie fout_rd='1'), the data of the output FIFO 13 is read and transmitted through the USB interface in the high-speed image acquisition system to the USB controller in the high-speed image acquisition system.

cc控制和状态连接线还包括wr_en写使能信号线和rd_en读使能信号线;如果写使能信号有效(wr_en=‘1’),执行写操作,数据从输入FIFO 11读出,并经数据控制器121写入SDRAM 2中;如果读使能信号有效(rd_en=‘1’),执行读操作,数据从SDRAM 2中读出,并经数据控制器121写入输出FIFO 13。The cc control and status connection lines also include the wr_en write enable signal line and the rd_en read enable signal line; if the write enable signal is valid (wr_en='1'), the write operation is performed, and the data is read from the input FIFO 11 and passed through The data controller 121 writes in the SDRAM 2; if the read enable signal is valid (rd_en='1'), a read operation is performed, and the data is read from the SDRAM 2, and written into the output FIFO 13 by the data controller 121.

为了提高SDRAM 2的读写效率,SDRAM 2工作在FULL-PAGE模式下,以行为单位完成每次读写操作,即一个读写指令可以完成512×16bit的数据传输;由于SDRAM 2的读写操作是分时进行的,对于一定频率ν的输入输出数据速率来说,SDRAM 2的读写操作时钟大于2ν就能顺利完成读写操作。In order to improve the read and write efficiency of SDRAM 2, SDRAM 2 works in FULL-PAGE mode, and completes each read and write operation in units of rows, that is, one read and write command can complete 512×16bit data transmission; due to the read and write operations of SDRAM 2 It is time-sharing. For the input and output data rate of a certain frequency ν, the read and write operation clock of SDRAM 2 is greater than 2ν and the read and write operations can be successfully completed.

下面介绍本实用新型的图像采集系统的缓存系统的工作逻辑。The working logic of the cache system of the image acquisition system of the present invention is introduced below.

数据控制器121是本设计的一个核心,它起到了控制输入FIFO 11、输出FIFO 13和SDRAM 2之间的数据读写的作用,可工作在文件仿真模式和实时仿真模式两种模式下。Data controller 121 is a core of this design, it has played the effect of controlling the data reading and writing between input FIFO 11, output FIFO 13 and SDRAM 2, can work under two kinds of modes of file emulation mode and real-time emulation mode.

当数据控制器121工作在文件仿真模式时,系统复位后,进入“startup”状态,等待SDRAM 2初始化,初始化后SDRAM 2的ready信号有效并传给SDRAM控制器122, 若SDRAM控制器122的ready信号有效,则进入读SDRAM 2的状态,从SDRAM控制器122中把相应的地址、命令、以及状态信息送到SDRAM 2,并设置输出FIFO 13的写控制信号fout_wr有效,此时置输入FIFO 11的写使能信号fin_wr有效;然后进入读等待状态,当SDRAM 2的ready信号再次有效时表明已完成512×16bit的读操作,设置输出FIFO 13的读控制信号fout_rd有效,从输出FIFO 13中读出数据到USB接口;由于输入FIFO 11和输出FIFO 13的数据速率相同,而且此时输入FIFO的数据应大于512个,因此可以进行SDRAM 2写操作。When the data controller 121 works in the file emulation mode, after the system is reset, it enters the "startup" state and waits for the initialization of the SDRAM 2. After the initialization, the ready signal of the SDRAM 2 is valid and passed to the SDRAM controller 122. If the ready signal of the SDRAM controller 122 If the signal is valid, enter the state of reading SDRAM 2, send the corresponding address, command, and status information to SDRAM 2 from the SDRAM controller 122, and set the write control signal fout_wr of the output FIFO 13 to be valid, and set the input FIFO 11 at this time The write enable signal fin_wr of the SDRAM 2 is valid; then it enters the read waiting state. When the ready signal of SDRAM 2 is valid again, it indicates that the read operation of 512×16bit has been completed, and the read control signal fout_rd of the output FIFO 13 is set to be valid, and the read from the output FIFO 13 Output data to the USB interface; since the data rate of the input FIFO 11 and the output FIFO 13 are the same, and the data input to the FIFO should be greater than 512 at this time, SDRAM 2 write operation can be performed.

当数据控制器工作在实时仿真模式时,系统复位后,进入“startup”状态,当输入FIFO 11的数据满512个16bit时,进入“init_write_sdram”状态,写一次SDRAM 2,然后继续等待输入FIFO 11满512个16bit,再进入“init_write_sdram”状态继续向SDRAM 2写数据,当发现SDRAM 2中的数据写满时转入读“init_read_sdram”状态读SDRAM 2并置输出FIFO 13写有效(fout_wr=‘1'),完成读操作后置输出FIFO 13读控制有效(fout_rd=‘1’)并进入下一个读SDRAM 2状态(“read_sdram”状态),当完成“read_sdram”状态后,进入“idle”状态,若发现输入FIFO 11满512个16bit时置输入FIFO 11读控制有效(fin_rd=‘1’),写一次SDRAM 2,一旦发现输出FIFO 13数据不满512个时则置输入FIFO 11写控制有效(fin_wr=‘1’),并读一次SDRAM 2,这样保证了数据的连续性。When the data controller works in real-time simulation mode, after the system is reset, it enters the "startup" state. When the data input into FIFO 11 is full of 512 16bits, it enters the "init_write_sdram" state, writes SDRAM 2 once, and then continues to wait for input into FIFO 11 When 512 16 bits are full, enter the "init_write_sdram" state and continue to write data to SDRAM 2. When it is found that the data in SDRAM 2 is full, turn to the "init_read_sdram" state to read SDRAM 2 and set the output FIFO 13 to write effectively (fout_wr='1 '), after completing the read operation, the output FIFO 13 read control is valid (fout_rd='1') and enters the next read SDRAM 2 state ("read_sdram" state), when the "read_sdram" state is completed, enter the "idle" state, If it is found that the input FIFO 11 is full of 512 16bits, the input FIFO 11 read control is valid (fin_rd='1'), and SDRAM 2 is written once, and once the output FIFO 13 data is found to be less than 512, the input FIFO 11 write control is valid (fin_wr ='1'), and read SDRAM 2 once, which ensures the continuity of data.

输入FIFO 11通过检测读(fin_rd)写(fin_wr)使能信号来决定它的操作,当写使能信号有效(fin_wr=‘1’)时,往输入FIFO中写入数据;当读使能信号有效(fin_rd=‘1’)时,此时FIFO中写入的数据大于512个,开始从输入FIFO 11中读取数据写入SDRAM 2。The input FIFO 11 determines its operation by detecting the read (fin_rd) write (fin_wr) enable signal. When the write enable signal is valid (fin_wr='1'), write data into the input FIFO; when the read enable signal When it is valid (fin_rd='1'), the data written in the FIFO is more than 512 at this time, and the data is read from the input FIFO 11 and written into SDRAM 2.

同输入FIFO 11一样,输出FIFO 13也通过检测读(fout_rd)写(fout_wr)使能信号来决定它的操作,当写使能信号有效(fout_wr=‘1’)时,SDRAM 2中的数据开始写入输出FIFO 13中;当读使能信号有效(fout_rd=‘1’)时,表示输出FIFO 13中已写满512×16bit的数据,此时开始将数据传出。Like the input FIFO 11, the output FIFO 13 also determines its operation by detecting the read (fout_rd) write (fout_wr) enable signal. When the write enable signal is valid (fout_wr='1'), the data in SDRAM 2 starts Write into the output FIFO 13; when the read enable signal is valid (fout_rd='1'), it means that the output FIFO 13 has been filled with 512×16bit data, and the data will be sent out at this time.

SDRAM控制器122是本设计的另一个核心,它与数据控制器121构成了设计的主体。它的主要功能是控制状态机的转换,并将控制命令、读写地址(包括片选、行选、列选)、数据掩码等传给SDRAM 2。系统复位时,状态机进入“startup”状态,设置相应初始值,将“startup”命令传给SDRAM 2;然后再“delay”状态中完成上电延迟的要求;在必要的precharge和refresh命令后,再在“loadreg”状态中设置SDRAM 2的工作模式和各种参数;然后SDRAM 2进入等待状态,在等待状态SDRAM 2置ready信号有效并传给数据控制器121,表明此时可以接收读、写控制命令,若检测到数据控制器121送来的读写控制信号,则转入相应的操作。The SDRAM controller 122 is another core of this design, and it and the data controller 121 constitute the main body of the design. Its main function is to control the conversion of the state machine, and transmit control commands, read and write addresses (including chip selection, row selection, column selection), data mask, etc. to SDRAM 2. When the system is reset, the state machine enters the "startup" state, sets the corresponding initial value, and sends the "startup" command to SDRAM 2; then completes the power-on delay requirement in the "delay" state; after the necessary precharge and refresh commands, Then set the working mode and various parameters of SDRAM 2 in the "loadreg" state; then SDRAM 2 enters the waiting state, and in the waiting state SDRAM 2 puts the ready signal effectively and transmits it to the data controller 121, indicating that it can receive reading and writing at this time For the control command, if the read/write control signal sent by the data controller 121 is detected, the corresponding operation will be performed.

读、写SDRAM 2均要满足一定的时序要求。当数据控制器121送出的是有效的读使能信号(rd_en=‘1’),执行读SDRAM 2的操作,读时序如图2,而SDRAM控制器 122的控制命令时序如图3;当数据控制器121送出的是有效的写使能信号(wr_en=‘1’),执行写SDRAM 2的操作,写时序如图4,而SDRAM控制器 122的控制命令时序如图5。Reading and writing SDRAM 2 must meet certain timing requirements. When the data controller 121 sends an effective read enable signal (rd_en='1'), the operation of reading SDRAM 2 is executed, the read sequence is as shown in Figure 2, and the control command sequence of the SDRAM controller 122 is as shown in Figure 3; when the data What the controller 121 sends is an effective write enable signal (wr_en='1') to execute the operation of writing SDRAM 2, the write sequence is shown in Figure 4, and the control command sequence of the SDRAM controller 122 is shown in Figure 5.

以上内容是结合具体的优选实施方式对本实用新型所作的进一步详细说明,不能认定本实用新型的具体实施只局限于这些说明。对于本实用新型所属技术领域的普通技术人员来说,在不脱离本实用新型构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本实用新型的保护范围。The above content is a further detailed description of the utility model in combination with specific preferred embodiments, and it cannot be assumed that the specific implementation of the utility model is only limited to these descriptions. For a person of ordinary skill in the technical field to which the utility model belongs, without departing from the concept of the utility model, some simple deduction or substitutions can also be made, which should be regarded as belonging to the protection scope of the utility model.

Claims (6)

1.一种高速图像采集系统的缓存系统,其特征在于:包括FPGA的缓存模块,还包括与所述FPGA的缓存模块相连接的SDRAM。1. A buffer system of a high-speed image acquisition system, characterized in that: it comprises a buffer module of FPGA, and also includes an SDRAM connected with the buffer module of said FPGA. 2.根据权利要求1所述的高速图像采集系统中的数据缓存系统,其特征在于:所述FPGA的缓存模块包括输入FIFO、控制器、以及输出FIFO;所述输入FIFO与所述控制器之间用din数据线相连接;所述控制器与所述SDRAM之间用cs控制和状态连接线以及dq双向数据线相连接;所述输出FIFO与所述控制器之间用dout数据线相连接。2. the data cache system in the high-speed image acquisition system according to claim 1, is characterized in that: the buffer module of described FPGA comprises input FIFO, controller and output FIFO; Between described input FIFO and described controller The controller is connected with the SDRAM with a cs control and status connection line and the dq bidirectional data line; the output FIFO is connected with the controller with a dout data line . 3.根据权利要求2所述的高速图像采集系统中的数据缓存系统,其特征在于:所述控制器包括数据控制器和SDRAM控制器;所述数据控制器与所述输入FIFO之间用所述din数据线相连接;所述数据控制器与所述输出FIFO之间用所述dout数据线相连接;所述数据控制器与所述SDRAM控制器之间用cc控制和状态连接线相连接;所述数据控制器与所述SDRAM之间用所述dq双向数据线相连接;所述SDRAM控制器与所述SDRAM之间用所述cs控制和状态连接线相连接。3. the data cache system in the high-speed image acquisition system according to claim 2, is characterized in that: said controller comprises data controller and SDRAM controller; The din data line is connected; the data controller is connected with the output FIFO with the dout data line; the data controller is connected with the SDRAM controller with a cc control and status connection line ; The data controller is connected to the SDRAM with the dq bidirectional data line; the SDRAM controller is connected to the SDRAM with the cs control and status connection line. 4.根据权利要求3所述的高速图像采集系统中的数据缓存系统,其特征在于:所述cc控制和状态连接线包括clk时钟线、cmd命令控制线、ready状态线、addr地址线、以及dm数据掩码线;所述cs控制和状态连接线包括sclk时钟线、scmd命令控制线、saddr地址线、以及dqm数据掩码线。4. the data cache system in the high-speed image acquisition system according to claim 3, is characterized in that: described cc control and status connection line comprise clk clock line, cmd command control line, ready state line, addr address line and dm data mask line; the cs control and state connection lines include sclk clock line, scmd command control line, saddr address line, and dqm data mask line. 5.根据权利要求2所述的高速图像采集系统中的数据缓存系统,其特征在于:所述输入FIFO上设置有fin_wr信号端,还设置有fin_rd信号端;所述输出FIFO上设置有fout_wr信号端,还设置有fout_rd信号端。5. the data cache system in the high-speed image acquisition system according to claim 2 is characterized in that: the input FIFO is provided with a fin_wr signal terminal, and is also provided with a fin_rd signal terminal; the described output FIFO is provided with a fout_wr signal The terminal is also provided with a fout_rd signal terminal. 6.根据权利要求2所述的高速图像采集系统中的数据缓存系统,其特征在于:所述cc控制和状态连接线还包括wr_en写使能信号线和rd_en读使能信号线。6. The data cache system in the high-speed image acquisition system according to claim 2, characterized in that: the cc control and status connection lines further include wr_en write enable signal line and rd_en read enable signal line.
CN2010206585054U 2010-12-14 2010-12-14 Caching system for high-speed image acquisition system Expired - Fee Related CN201936294U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010206585054U CN201936294U (en) 2010-12-14 2010-12-14 Caching system for high-speed image acquisition system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010206585054U CN201936294U (en) 2010-12-14 2010-12-14 Caching system for high-speed image acquisition system

Publications (1)

Publication Number Publication Date
CN201936294U true CN201936294U (en) 2011-08-17

Family

ID=44447811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010206585054U Expired - Fee Related CN201936294U (en) 2010-12-14 2010-12-14 Caching system for high-speed image acquisition system

Country Status (1)

Country Link
CN (1) CN201936294U (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150272A (en) * 2013-03-21 2013-06-12 珠海市杰理科技有限公司 SDRAM (synchronous dynamic random access memory) data access circuit and SDRAM data access system
CN109782723A (en) * 2019-01-31 2019-05-21 西安微电子技术研究所 A kind of configurable multifunction control system and method towards nonspecific AD
CN111522753A (en) * 2019-12-11 2020-08-11 中国船舶重工集团公司第七0九研究所 SDRAM (synchronous dynamic random access memory) control method and system based on state machine

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150272A (en) * 2013-03-21 2013-06-12 珠海市杰理科技有限公司 SDRAM (synchronous dynamic random access memory) data access circuit and SDRAM data access system
CN103150272B (en) * 2013-03-21 2017-05-24 珠海市杰理科技股份有限公司 SDRAM (synchronous dynamic random access memory) data access circuit and SDRAM data access system
CN109782723A (en) * 2019-01-31 2019-05-21 西安微电子技术研究所 A kind of configurable multifunction control system and method towards nonspecific AD
CN111522753A (en) * 2019-12-11 2020-08-11 中国船舶重工集团公司第七0九研究所 SDRAM (synchronous dynamic random access memory) control method and system based on state machine

Similar Documents

Publication Publication Date Title
CN101308697B (en) Large-capacity FIFO burst buffer and data storage method based on SDRAM
CN104599227B (en) DDR3 arbitration controllers and method for high-speed CCD data storage
CN102831090B (en) Address line for space-borne DSP (Digital Signal Processor) and FPGA (Field Programmable Gate Array) communication interfaces and optimization method for address line
CN100511119C (en) Method for realizing shadow stack memory on picture and circuit thereof
CN101770817A (en) Multi-interface memory verification system based on FPGA
CN202453864U (en) Large-capacity asynchronous first in first out (FIFO) buffer memory based on field programmable gate array (FPGA) and double data rate (DDR) 2 synchronous dynamic random access memory (SDRAM)
CN101000597A (en) IP kernel of embedded Java processor based on AMBA
CN101740102A (en) Multichannel flash memory chip array structure and writing and reading method thereof
CN206557758U (en) A kind of NAND FLASH storage chip array control unit expansible based on FPGA
CN108536615A (en) A kind of ping-pang cache controller and its design method
CN113220616B (en) FPGA-based interface conversion system and method from SDRAM to MRAM
CN111736115A (en) High-speed transmission method of MIMO millimeter-wave radar based on improved SGDMA+PCIE
CN201936294U (en) Caching system for high-speed image acquisition system
TWI533135B (en) Methods for accessing memory and controlling access of memory, memory device and memory controller
CN111966628A (en) Multi-core combined high-capacity data synchronous storage method
CN114490466B (en) DDR IP core architecture and method for realizing continuous data storage
CN104409099A (en) FPGA (field programmable gate array) based high-speed eMMC (embedded multimedia card) array controller
CN102789424A (en) External extended DDR2 (Double Data Rate 2) read-write method on basis of FPGA (Field Programmable Gate Array) and external extended DDR2 particle storage on basis of FPGA
CN105224486A (en) Based on the 1553B bus protocol module of LBE bus
CN104572487B (en) Memory access device and method for reflective memory card
CN100357870C (en) Method of proceeding access multikind storage on chip select outer unibus
CN104021086B (en) A kind of implementation method of 8 single-chip microcomputers, 16 memory element RAM of read-write
CN104156907A (en) FPGA-based infrared preprocessing storage system and FPGA-based infrared preprocessing storage method
CN201812284U (en) Memory interface
CN104794087B (en) Processing unit interface circuit in a kind of polycaryon processor

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110817

Termination date: 20121214