[go: up one dir, main page]

CN110399325A - An Improved IP Core Based on IIC Bus Protocol - Google Patents

An Improved IP Core Based on IIC Bus Protocol Download PDF

Info

Publication number
CN110399325A
CN110399325A CN201910692329.1A CN201910692329A CN110399325A CN 110399325 A CN110399325 A CN 110399325A CN 201910692329 A CN201910692329 A CN 201910692329A CN 110399325 A CN110399325 A CN 110399325A
Authority
CN
China
Prior art keywords
port
data
read
register
iic
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.)
Granted
Application number
CN201910692329.1A
Other languages
Chinese (zh)
Other versions
CN110399325B (en
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.)
Jiangxi University of Technology
Original Assignee
Jiangxi University of Technology
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 Jiangxi University of Technology filed Critical Jiangxi University of Technology
Priority to CN201910692329.1A priority Critical patent/CN110399325B/en
Publication of CN110399325A publication Critical patent/CN110399325A/en
Application granted granted Critical
Publication of CN110399325B publication Critical patent/CN110399325B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0016Inter-integrated circuit (I2C)
    • 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

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Information Transfer Systems (AREA)

Abstract

本发明公开了一种基于IIC总线协议的改进型IP核,包括页容量检测模块101、读写控制模块102、地址/数据/模式选通模块103、主状态机104、时钟分频模块105、页容量寄存器106、控制寄存器107、地址寄存器108、数据寄存器109、IIC状态寄存器110、IIC数据寄存器111、端口112、端口113、端口114、端口115、端口116、端口117、端口118、端口119、端口120、端口121、端口122、端口123、端口124、端口125;本发明的改进型IP核由于增设了所述页容量检测模块101、所述页容量寄存器106,改进了所述读写控制模块102,可以对页写模式实施有效控制,在对所述外围器件3连续写入大量数据时,避免出现数据溢出覆盖当前页的数据,从而提高数据传输的鲁棒性。

The invention discloses an improved IP core based on the IIC bus protocol, including a page capacity detection module 101, a read-write control module 102, an address/data/mode gating module 103, a main state machine 104, a clock frequency division module 105, Page Size Register 106, Control Register 107, Address Register 108, Data Register 109, IIC Status Register 110, IIC Data Register 111, Port 112, Port 113, Port 114, Port 115, Port 116, Port 117, Port 118, Port 119 , port 120, port 121, port 122, port 123, port 124, port 125; the improved IP core of the present invention has improved the read-write due to the addition of the page capacity detection module 101 and the page capacity register 106 The control module 102 can effectively control the page write mode, and avoid data overflow to overwrite the data of the current page when a large amount of data is continuously written to the peripheral device 3, thereby improving the robustness of data transmission.

Description

一种基于IIC总线协议的改进型IP核An Improved IP Core Based on IIC Bus Protocol

技术领域technical field

本发明涉及电路设计领域,特别涉及一种用于SOPC设计的IP核,具体是一种基于IIC总线协议的改进型IP核。The invention relates to the field of circuit design, in particular to an IP core for SOPC design, in particular to an improved IP core based on the IIC bus protocol.

背景技术Background technique

现代电子系统的通信协议有并行端口通信协议和串行端口通信协议两大类。虽然并行端口通信协议的传输速率更快,但是串行端口通信协议的物理结构更简单、成本更低、线间串扰小、易扩展。常见的串行端口通信协议包括UART (Universal AsynchronousReceiver/Transmitter)和SPI(Serial Peripheral Interface)、IIC(Inter-IntegratedCircuit)等总线协议。There are two types of communication protocols in modern electronic systems: parallel port communication protocol and serial port communication protocol. Although the transmission rate of the parallel port communication protocol is faster, the physical structure of the serial port communication protocol is simpler, the cost is lower, the crosstalk between lines is small, and it is easy to expand. Common serial port communication protocols include bus protocols such as UART (Universal Asynchronous Receiver/Transmitter), SPI (Serial Peripheral Interface), and IIC (Inter-Integrated Circuit).

IIC总线协议是一种同步串行通信协议,仅一根串行数据线和一根串行时钟线,即能实现多机系统和外围器件扩展系统间半双工同步数据传送。IIC总线协议相比UART、SPI总线协议,数据传输速率适中,需要连接的引脚最少,能极大减小系统的体积和质量,广泛应用于视频、音频、数据采集、人工智能等领域的电子系统。由于IIC总线协议的这些优点,在SOPC(System On a Programmable Chip)设计领域,有大量基于IIC总线协议的IP(Intellectual Property)核的需求。The IIC bus protocol is a synchronous serial communication protocol. Only one serial data line and one serial clock line can realize half-duplex synchronous data transmission between multi-machine systems and peripheral device expansion systems. Compared with UART and SPI bus protocols, the IIC bus protocol has a moderate data transmission rate and the least number of pins to be connected, which can greatly reduce the volume and quality of the system. It is widely used in electronics in the fields of video, audio, data acquisition, artificial intelligence, etc. system. Due to these advantages of the IIC bus protocol, in the field of SOPC (System On a Programmable Chip) design, there is a large demand for IP (Intellectual Property) cores based on the IIC bus protocol.

在SOPC设计领域中,需要将多个或多类IP核、微控制器、存储器、锁相环和输入输出端口等功能模块集成到FPGA(Programmable Gate Array)器件, 形成片上系统用于集成电路设计或者直接应用于消费电子和通信电子,对基于IIC总线协议的IP核存在高鲁棒性的要求。In the field of SOPC design, it is necessary to integrate multiple or multiple types of functional modules such as IP cores, microcontrollers, memories, phase-locked loops, and input and output ports into FPGA (Programmable Gate Array) devices to form a system on chip for integrated circuit design Or directly applied to consumer electronics and communication electronics, there is a high robustness requirement for the IP core based on the IIC bus protocol.

而基于IIC总线协议的传统IP核,在对外围器件连续写入大量数据时,容易产生数据溢出,即页写入的数据超出页尾时,会自动从页首开始覆盖当前数据,对整个系统造成灾难后果,影响数据传输的鲁棒性,离SOPC设计领域对鲁棒性的要求有差距。However, the traditional IP core based on the IIC bus protocol is prone to data overflow when writing a large amount of data to peripheral devices continuously, that is, when the data written in a page exceeds the end of the page, it will automatically overwrite the current data from the beginning of the page, which affects the entire system. It will cause catastrophic consequences and affect the robustness of data transmission, which is far from the requirements for robustness in the field of SOPC design.

发明内容Contents of the invention

本发明的目的在于解决上述现有技术中存在的问题,提高基于IIC总线协议的传统IP核的鲁棒性,具体实现不影响外围器件原有存储数据的页容量检测功能,解决基于IIC总线协议的传统IP核在页写模式中,存在的数据溢出问题。The purpose of the present invention is to solve the problems existing in the above-mentioned prior art, improve the robustness of the traditional IP core based on the IIC bus protocol, specifically realize the page capacity detection function that does not affect the original storage data of peripheral devices, and solve the problem based on the IIC bus protocol In the page write mode of the traditional IP core, there is a data overflow problem.

为实现上述目的,本发明提供了一种基于IIC总线协议的改进型IP核,具体由页容量检测模块、读写控制模块、地址/数据/模式选通模块、主状态机、时钟分频模块、页容量寄存器、控制寄存器、地址寄存器、数据寄存器、IIC状态寄存器、IIC数据寄存器、时钟端口、复位端口、时钟模式标志端口、读操作的数据端口、写操作的数据端口、读写操作的内部地址端口、读写模式标志端口、设备地址端口、页容量检测使能端口、用户定义的页容量数据端口、页容量检测成功标志端口、读写成功标志端口、IIC时钟总线端口、IIC数据总线端口组成,采用FPGA实现。In order to achieve the above object, the present invention provides an improved IP core based on the IIC bus protocol, which is specifically composed of a page capacity detection module, a read and write control module, an address/data/mode gating module, a main state machine, and a clock frequency division module , page capacity register, control register, address register, data register, IIC status register, IIC data register, clock port, reset port, clock mode flag port, data port for read operation, data port for write operation, internal for read and write operations Address port, read/write mode flag port, device address port, page capacity detection enable port, user-defined page capacity data port, page capacity detection success flag port, read/write success flag port, IIC clock bus port, IIC data bus port Composition, using FPGA to realize.

页容量检测模块用于根据页容量检测使能端口、用户定义的页容量数据端口的信号,在不破坏外围器件的内部地址中的原有数据的前提下,通过页容量检测流程得到外围器件的页容量,并存储在页容量寄存器中,页容量检测流程结束时,通过页容量检测成功标志端口,输出页容量检测结束信号至微控制器的输入端。The page capacity detection module is used to obtain the peripheral device’s address through the page capacity detection process under the premise of not destroying the original data in the internal address of the peripheral device according to the signal of the page capacity detection enable port and the user-defined page capacity data port The page capacity is stored in the page capacity register. When the page capacity detection process ends, the page capacity detection successful flag port is used to output the page capacity detection completion signal to the input terminal of the microcontroller.

读写控制模块用于根据写操作的数据端口、读写操作的内部地址端口、读写模式标志端口、设备地址端口的信号,以及页容量寄存器中存储的页容量的值,控制地址、数据、模式信息,再传送至地址/数据/模式选通模块,实现对外围器件的读写操作,而且在页写操作时避免数据溢出覆盖当前页的数据。The read-write control module is used to control the address, data, The mode information is then sent to the address/data/mode strobe module to realize read and write operations on peripheral devices, and to avoid data overflow from overwriting the data of the current page during page write operations.

地址/数据/模式选通模块用于选通在页容量检测模块或读写控制模块输入的地址、数据以及模式信息,并相应存储到地址寄存器、数据寄存器以及控制寄存器中。The address/data/mode strobe module is used to strobe the address, data and mode information input by the page capacity detection module or the read-write control module, and store them in the address register, data register and control register accordingly.

主状态机用于通过IIC时钟总线端口以及控制寄存器、地址寄存器、数据寄存器的值,发送数据位信号至外围器件的双向端,或者接收来自外围器件的双向端的数据位,存储到相应IIC状态寄存器、IIC数据寄存器中,以控制与外围器件之间的数据传输。The main state machine is used to send the data bit signal to the bidirectional end of the peripheral device through the IIC clock bus port and the value of the control register, address register, and data register, or receive the data bit from the bidirectional end of the peripheral device and store it in the corresponding IIC status register , In the IIC data register to control the data transmission with peripheral devices.

时钟分频模块用于根据时钟模式标志端口的信号确定分频系数,对时钟端口输入的全局时钟信号分频,而且通过IIC时钟总线端口输出符合IIC总线协议要求的时钟频率至外围器件的输入端。The clock frequency division module is used to determine the frequency division coefficient according to the signal of the clock mode flag port, divide the frequency of the global clock signal input by the clock port, and output the clock frequency that meets the requirements of the IIC bus protocol to the input terminal of the peripheral device through the IIC clock bus port .

页容量寄存器用于存储外围器件的页容量。The page size register is used to store the page size of peripheral devices.

控制寄存器用于储存读写模式标志位、读写开始及结束标志位、检测页容量使能操作标志位。The control register is used for storing read-write mode flag bits, read-write start and end flag bits, and detection page capacity enabling operation flag bits.

地址寄存器用于保存将进行读写操作的外围器件的内部地址。The address register is used to save the internal address of the peripheral device that will be read and written.

数据寄存器用于保存待发送至外围器件的数据。Data registers are used to hold data to be sent to peripheral devices.

IIC状态寄存器用于指示基于IIC总线协议的改进型IP核往外围器件内部地址读写数据是否成功。The IIC status register is used to indicate whether the improved IP core based on the IIC bus protocol reads and writes data to the internal address of the peripheral device successfully.

IIC数据寄存器用于保存接收来自外围器件的数据。The IIC data register is used to store data received from peripheral devices.

基于 IIC总线协议的改进型IP核通过时钟端口、复位端口、时钟模式标志端口、写操作的数据端口、读写操作的内部地址端口、读写模式标志端口、设备地址端口、页容量检测使能端口、用户定义的页容量数据端口,与微控制器的输出端相连接,分别接收来自微控制器的输出端的全局时钟、全局复位、时钟模式标志、写操作的数据、读写操作的内部地址、读写模式标志、设备地址、页容量检测使能、用户定义的页容量的信号。The improved IP core based on the IIC bus protocol is enabled through the clock port, reset port, clock mode flag port, data port for write operation, internal address port for read and write operations, read and write mode flag port, device address port, and page capacity detection Port, user-defined page capacity data port, connected to the output of the microcontroller, respectively receive the global clock, global reset, clock mode flag, data for write operation, and internal address for read and write operations from the output of the microcontroller , read/write mode flag, device address, page size detection enable, user-defined page size signal.

基于 IIC总线协议的改进型IP核通过页容量检测成功标志端口、读写成功标志端口、读操作的数据端口,与微控制器的输入端相连接,分别输出页容量检测成功标志信号、读写成功标志信号、读操作读取的外围器件内部地址的数据,至微控制器的输入端。The improved IP core based on the IIC bus protocol is connected to the input terminal of the microcontroller through the page capacity detection success flag port, the read and write success flag port, and the data port of the read operation, and respectively outputs the page capacity detection success flag signal, read and write The successful flag signal and the data of the internal address of the peripheral device read by the read operation are sent to the input terminal of the microcontroller.

基于IIC总线协议的改进型IP核的IIC时钟总线端口通过时钟总线连接外围器件,用于发送时钟信号至外围器件的输入端。The IIC clock bus port of the improved IP core based on the IIC bus protocol is connected to the peripheral device through the clock bus, and is used to send the clock signal to the input terminal of the peripheral device.

基于IIC总线协议的改进型IP核的IIC数据总线端口通过数据总线连接外围器件,用于发送数据位信号至外围器件的双向端,或者接收来自外围器件的双向端的数据位。The IIC data bus port of the improved IP core based on the IIC bus protocol is connected to the peripheral device through the data bus, and is used to send the data bit signal to the bidirectional end of the peripheral device, or receive the data bit from the bidirectional end of the peripheral device.

基于IIC总线协议的改进型IP核可以按照页容量检测模块的页容量检测流程,对外围器件进行页容量检测且不破坏外围器件中存储的原有数据。The improved IP core based on the IIC bus protocol can detect the page capacity of peripheral devices without destroying the original data stored in the peripheral devices according to the page capacity detection process of the page capacity detection module.

基于IIC总线协议的改进型IP核在页容量检测的基础上,按照页写操作控制流程能够实现对往外围器件内部相邻地址连续写入超过页容量限制的大量数据,同时避免传统页写模式的数据溢出问题。Based on the page capacity detection, the improved IP core based on the IIC bus protocol can continuously write a large amount of data exceeding the limit of the page capacity to adjacent addresses inside the peripheral device according to the page write operation control process, while avoiding the traditional page write mode data overflow problem.

与现有技术相比,本发明由于增设了页容量检测模块、页容量寄存器,改进了读写控制模块,本发明的改进型IP核可以对页写模式实施有效控制,在对外围器件连续写入大量数据时,避免出现数据溢出覆盖当前页的数据,从而提高数据传输的鲁棒性。Compared with the prior art, the present invention has improved the read-write control module due to the addition of a page capacity detection module and a page capacity register, and the improved IP core of the present invention can effectively control the page write mode, and continuously write When importing a large amount of data, avoid data overflow and overwrite the data of the current page, thereby improving the robustness of data transmission.

附图说明Description of drawings

通过阅读后续的详细描述以及参考附图所给的示例,可以更全面地理解本发明。A more complete understanding of the present invention may be obtained by reading the ensuing detailed description and by reference to the examples given in the accompanying drawings.

图1是本发明一实施事例示出的改进型IP核的应用系统结构框图。Fig. 1 is a structural block diagram of an application system of an improved IP core shown in an embodiment of the present invention.

图2是本发明一实施事例示出的页容量检测流程图。Fig. 2 is a flow chart of page capacity detection shown in an embodiment of the present invention.

图3是本发明一实施事例示出的页写操作控制流程图。Fig. 3 is a flow chart of page write operation control shown in an embodiment of the present invention.

在下面的详细描述中,为了说明的目的,阐述了许多具体细节,以便本领域技术人员能够更透彻地理解本发明实施例。然而,可以在没有这些具体细节的情况下实施一个或多个实施例,不同的实施例可根据需求相结合,而并不应当仅限于附图所列举的实施例。In the following detailed description, for the purpose of illustration, many specific details are set forth so that those skilled in the art can more thoroughly understand the embodiments of the present invention. However, one or more embodiments may be practiced without these specific details, different embodiments may be combined as desired, and the embodiments should not be limited to those set forth in the figures.

具体实施方式Detailed ways

本领域普通技术人员应当理解,在此提供的附图都是为了说明的目的,并且附图不一定是按比例绘制的。Those of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes and are not necessarily drawn to scale.

关于本文中所使用的“第一”、“第二”…等,并非特别指称次序或顺位的意思,亦非用以限定本公开,其仅仅是为了区别以相同技术用语描述的元件、操作、特征而已。The terms "first", "second", etc. used herein do not specifically refer to a sequence or sequence, nor are they used to limit the present disclosure, but are only used to distinguish elements and operations described with the same technical terms , Features only.

其次,在本文中所使用的用词“包含”、“包括”等等,均为开放性的用语,即意指包含但不限于。Secondly, the words "comprising", "comprising" and so on used in this article are all open terms, meaning including but not limited to.

下面结合附图和具体实施例对本发明做进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

参见图1,本发明一实施事例示出的改进型IP核的应用系统结构框图,包括基于IIC总线协议的改进型IP核1、微控制器2、外围器件3、时钟总线4、数据总线5。Referring to Fig. 1, the block diagram of the application system structure of the improved IP core that an embodiment of the present invention shows, comprises the improved IP core 1, microcontroller 2, peripheral device 3, clock bus 4, data bus 5 based on IIC bus protocol .

基于IIC总线协议的改进型IP核1包括页容量检测模块101、读写控制模块102、地址/数据/模式选通模块103、主状态机104、时钟分频模块105、页容量寄存器106、控制寄存器107、地址寄存器108、数据寄存器109、IIC状态寄存器110、IIC数据寄存器111、时钟端口112、复位端口113、时钟模式标志端口114、读操作的数据端口115、写操作的数据端口116、读写操作的内部地址端口117、读写模式标志端口118、设备地址端口119、页容量检测使能端口120、用户定义的页容量数据端口121、页容量检测成功标志端口122、读写成功标志端口123、IIC时钟总线端口124、IIC数据总线端口125。The improved IP core 1 based on the IIC bus protocol includes a page capacity detection module 101, a read-write control module 102, an address/data/mode gate module 103, a main state machine 104, a clock frequency division module 105, a page capacity register 106, a control Register 107, Address Register 108, Data Register 109, IIC Status Register 110, IIC Data Register 111, Clock Port 112, Reset Port 113, Clock Mode Flag Port 114, Data Port 115 for Read Operation, Data Port 116 for Read Operation, Read Internal address port 117 for write operation, read/write mode flag port 118, device address port 119, page capacity detection enable port 120, user-defined page capacity data port 121, page capacity detection success flag port 122, read/write success flag port 123 , an IIC clock bus port 124 , and an IIC data bus port 125 .

页容量检测模块101用于根据页容量检测使能端口120、用户定义的页容量数据端口121的信号,在不破坏外围器件3的内部地址中的原有数据的前提下,通过页容量检测流程得到外围器件3的页容量,并存储在页容量寄存器106中,页容量检测流程结束时,通过页容量检测成功标志端口122,输出页容量检测结束信号至微控制器2的输入端。The page capacity detection module 101 is used to pass the page capacity detection process under the premise of not destroying the original data in the internal address of the peripheral device 3 according to the signal of the page capacity detection enable port 120 and the user-defined page capacity data port 121 The page capacity of the peripheral device 3 is obtained and stored in the page capacity register 106. When the page capacity detection process ends, a page capacity detection completion signal is output to the input terminal of the microcontroller 2 through the page capacity detection success flag port 122.

读写控制模块102用于根据写操作的数据端口116、读写操作的内部地址端口117、读写模式标志端口118、设备地址端口119的信号,以及页容量寄存器106中存储的页容量的值,控制地址、数据、模式信息,再传送至地址/数据/模式选通模块103,实现对外围器件3的读写操作,而且在页写操作时避免数据溢出覆盖当前页的数据。The read-write control module 102 is used for according to the data port 116 of write operation, the internal address port 117 of read-write operation, the signal of read-write mode mark port 118, the signal of device address port 119, and the value of the page capacity stored in the page capacity register 106 , control the address, data, and mode information, and then send it to the address/data/mode gating module 103 to realize the read and write operations to the peripheral device 3, and avoid data overflow from overwriting the data of the current page during page write operations.

地址/数据/模式选通模块103用于选通在页容量检测模块101或读写控制模块102输入的地址、数据以及模式信息,并相应存储到地址寄存器108、数据寄存器109以及控制寄存器107中。The address/data/mode strobe module 103 is used to strobe the address, data and mode information input by the page capacity detection module 101 or the read/write control module 102, and store them in the address register 108, data register 109 and control register 107 accordingly .

主状态机104用于根据控制寄存器107、地址寄存器108、数据寄存器109的值,通过IIC时钟总线端口124发送数据位信号至外围器件3的双向端,或者接收来自外围器件3的双向端的数据位,存储到相应IIC状态寄存器110、IIC数据寄存器111中,以控制与外围器件之间的数据传输。The main state machine 104 is used to send the data bit signal to the bidirectional end of the peripheral device 3 through the IIC clock bus port 124 according to the values of the control register 107, the address register 108, and the data register 109, or receive data bits from the bidirectional end of the peripheral device 3 , stored in the corresponding IIC status register 110 and IIC data register 111 to control data transmission with peripheral devices.

时钟分频模块105用于根据时钟模式标志端口114的信号确定分频系数,对时钟端口112输入的全局时钟信号分频,而且通过IIC时钟总线端口124输出符合IIC总线协议要求的时钟频率至外围器件3的输入端。The clock frequency division module 105 is used to determine the frequency division coefficient according to the signal of the clock mode flag port 114, divide the frequency of the global clock signal input by the clock port 112, and output the clock frequency that meets the requirements of the IIC bus protocol to the peripheral through the IIC clock bus port 124 Input to Device 3.

页容量寄存器106用于存储外围器件3的页容量。The page size register 106 is used to store the page size of the peripheral device 3 .

控制寄存器107用于储存读写模式标志位、读写开始及结束标志位、检测页容量使能操作标志位。The control register 107 is used for storing read/write mode flag bits, read/write start and end flag bits, and page capacity detection enabling operation flag bits.

地址寄存器108用于保存将进行读写操作的外围器件3内部地址。The address register 108 is used to store the internal address of the peripheral device 3 to be read and written.

数据寄存器109用于保存待写入外围器件3内部地址的数据。The data register 109 is used to save the data to be written into the internal address of the peripheral device 3 .

IIC状态寄存器110用于指示基于IIC总线协议的改进型IP核1往外围器件内部地址读写数据是否成功。The IIC status register 110 is used to indicate whether the improved IP core 1 based on the IIC bus protocol reads and writes data to the internal address of the peripheral device successfully.

IIC数据寄存器111用于保存以读操作读取的外围器件3内部地址的数据。The IIC data register 111 is used to store the data of the internal address of the peripheral device 3 read by the read operation.

基于 IIC总线协议的改进型IP核1通过时钟端口112、复位端口113、时钟模式标志端口114、写操作的数据端口116、读写操作的内部地址端口117、读写模式标志端口118、设备地址端口119、页容量检测使能端口120、用户定义的页容量数据端口121,与微控制器2的输出端相连接,分别接收来自微控制器2的输出端的全局时钟、全局复位、时钟模式标志、写操作的数据、读写操作的内部地址、读写模式标志、设备地址、页容量检测使能、用户定义的页容量的信号。The improved IP core 1 based on the IIC bus protocol passes clock port 112, reset port 113, clock mode flag port 114, data port 116 for write operation, internal address port 117 for read and write operations, read and write mode flag port 118, device address Port 119, page capacity detection enabling port 120, and user-defined page capacity data port 121 are connected to the output terminal of microcontroller 2, and respectively receive global clock, global reset, and clock mode flag from the output terminal of microcontroller 2 , data of write operation, internal address of read and write operation, read and write mode flag, device address, page capacity detection enable, user-defined signal of page capacity.

基于 IIC总线协议的改进型IP核1通过页容量检测成功标志端口122、读写成功标志端口123、读操作的数据端口115,与微控制器2的输入端相连接,分别输出页容量检测成功标志信号、读写成功标志信号、读操作读取的外围器件3内部地址的数据,至微控制器2的输入端。The improved IP core 1 based on the IIC bus protocol is connected to the input terminal of the microcontroller 2 through the page capacity detection success flag port 122, the read and write success flag port 123, and the data port 115 for the read operation, and outputs page capacity detection success respectively. The flag signal, the read/write successful flag signal, and the data of the internal address of the peripheral device 3 read by the read operation are sent to the input terminal of the microcontroller 2 .

基于IIC总线协议的改进型IP核1的IIC时钟总线端口124通过时钟总线5连接外围器件3,用于发送时钟信号至外围器件3的输入端。The IIC clock bus port 124 of the improved IP core 1 based on the IIC bus protocol is connected to the peripheral device 3 through the clock bus 5 for sending clock signals to the input terminals of the peripheral device 3 .

基于IIC总线协议的改进型IP核1的IIC数据总线端口125通过数据总线4连接外围器件3,用于发送数据位信号至外围器件3的双向端,或者接收来自外围器件3的双向端的数据位。The IIC data bus port 125 of the improved IP core 1 based on the IIC bus protocol is connected to the peripheral device 3 through the data bus 4, and is used to send data bit signals to the bidirectional end of the peripheral device 3, or receive data bits from the bidirectional end of the peripheral device 3 .

微控制器2可以基于FPGA。Microcontroller 2 may be FPGA based.

外围器件3模块的核心器件可以是EEPROM(Electrically ErasableProgrammable Read-only Memory)。The core device of the peripheral device 3 module may be EEPROM (Electrically Erasable Programmable Read-only Memory).

参见图2,是本发明一实施事例示出的页容量检测流程图。图1中所描述的基于IIC总线协议的改进型IP核1中的页容量检测模块101,采用本实施实例的页容量检测流程,检测外围器件的未知页容量,用于在不影响外围器件3内部地址上原先存储的数据的情况下,检测出未知的外围器件3页容量,以辅助实现对页容量未知的外围器件3进行传统页写操作,包括以下步骤S1-S11。Referring to FIG. 2 , it is a flow chart of page capacity detection shown in an embodiment of the present invention. The page capacity detection module 101 in the improved IP core 1 based on the IIC bus protocol described in Fig. 1 adopts the page capacity detection process of this implementation example to detect the unknown page capacity of the peripheral device, and is used for not affecting the peripheral device 3 In the case of the data previously stored on the internal address, the unknown page capacity of the peripheral device 3 is detected to assist in implementing the traditional page write operation on the peripheral device 3 with unknown page capacity, including the following steps S1-S11.

在步骤S1中,接到页容量检测开始指令后,初始化相关参数,默认外围器件3内部页初地址Addr为微控制器2通过图1中所描述的读写操作的内部地址端口117输入的外围器件3内部地址Addr0,即Addr=Addr0;复位页容量检测结束信号,即Test_Done=0。In step S1, after receiving the page capacity detection start instruction, initialize the relevant parameters, the default peripheral device 3 internal page initial address Addr is the peripheral input by the microcontroller 2 through the internal address port 117 of the read and write operation described in Fig. 1 The internal address of device 3 is Addr0, that is, Addr=Addr0; the page capacity detection end signal is reset, that is, Test_Done=0.

在步骤S2中,读取外围器件3内部地址Addr、Addr+1、Addr+2存储的数据,并暂存在指定的微控制器2的内存DataBuf0、DataBuf1、DataBuf2中。In step S2, read the data stored in the internal addresses Addr, Addr+1, Addr+2 of the peripheral device 3, and temporarily store them in the memory DataBuf0, DataBuf1, DataBuf2 of the designated microcontroller 2.

在步骤S3中,以页写模式由外围器件3内部地址Addr开始连续写入数据0X00、0X01。In step S3, the data 0X00 and 0X01 are continuously written from the internal address Addr of the peripheral device 3 in the page write mode.

在步骤S4中,以当前地址读模式读取页初地址Addr0的数据,并暂存在IIC数据寄存器111中,暂存为RdData。In step S4, the data of the page initial address Addr0 is read in the current address read mode, and temporarily stored in the IIC data register 111 as RdData.

在步骤S5中,判断数据RdData的值是否等于0X01;若不等,说明数据未溢出,页初地址的数据未被覆盖,到步骤S6;若相等,说明页写操作中数据溢出,覆盖了页初地址的数据,到步骤S10。In step S5, judge whether the value of data RdData is equal to 0X01; If it is not equal, it means that the data is not overflowed, and the data of the page initial address is not covered, and then go to step S6; For the data of the initial address, go to step S10.

在步骤S6中,判断Addr的值是否等于Addr0的值,若相等到步骤S7,若不等到步骤S8。In step S6, it is judged whether the value of Addr is equal to the value of Addr0, if it is equal, go to step S7, if not, go to step S8.

在步骤S7中,令Addr=Addr+1,然后以页写模由外围器件3内部地址Addr开始连续写入数据0X00、0X01,到步骤S4。In step S7, set Addr=Addr+1, then write data 0X00 and 0X01 continuously starting from the internal address Addr of the peripheral device 3 in page write mode, and go to step S4.

在步骤S8中,读取DataBuf1、DataBuf2中的数据,以页写模式恢复到外围器件3内部页首地址Addr、Addr+1。In step S8, read the data in DataBuf1 and DataBuf2, and restore to the internal page head addresses Addr and Addr+1 of the peripheral device 3 in the page write mode.

在步骤S9中,令Addr=Addr*2+1,然后以随机读模式读取外围器件3内部页初地址Addr、Addr+1存储的数据,并暂存在指定的微控制器2的内存DataBuf1、DataBuf2中,到步骤S3。In step S9, make Addr=Addr*2+1, then read the data stored in the initial address Addr and Addr+1 of the internal page of peripheral device 3 with random read mode, and temporarily store the memory DataBuf1, DataBuf2, go to step S3.

在步骤S10中,读取DataBuf1、DataBuf2中的数据,以单字节写模式恢复到外围器件3内部页首地址Addr0和Addr。In step S10, the data in DataBuf1 and DataBuf2 are read, and the internal header addresses Addr0 and Addr of the peripheral device 3 are restored in single-byte write mode.

在步骤S11中,输出外围器件3页容量的检测结果Addr+1到页容量寄存器106,通过页容量检测成功标志端口122输出检测成功标志信号至微控制器2,结束检测。In step S11, output the detection result Addr+1 of the page capacity of the peripheral device 3 to the page capacity register 106, and output the detection success flag signal to the microcontroller 2 through the page capacity detection success flag port 122, and end the detection.

参见图3,是本发明一实施事例示出的页写操作控制流程图。图1所描述的基于IIC总线协议的改进型IP核1中的读写控制模块102,采用图3所示的页写操作控制流程,进行页写操作,用于解决IIC总线传统页写模式的数据溢出问题,避免数据溢出覆盖原有数据,保证数据传输的鲁棒性,包括以下步骤S12-S23。Referring to FIG. 3 , it is a flow chart of page write operation control shown in an embodiment of the present invention. The read-write control module 102 in the improved IP core 1 based on the IIC bus protocol described in FIG. 1 adopts the page write operation control process shown in FIG. The problem of data overflow, avoiding data overflow to overwrite the original data, and ensuring the robustness of data transmission, includes the following steps S12-S23.

在步骤S12中,接到控制页写操作开始指令后,初始化相关参数,默认外围器件3内部页初地址Addr为微控制器2通过读写操作的内部地址端口117输入的外围器件3内部地址Addr0,即Addr=Addr0;令控制寄存器107记录读写模式标志端口118输入的读写模式标志位;令Done_num= 1,表示对页写模式成功写入外围器件3内部地址的数据个数复位并记为1。In step S12, after receiving the control page write operation start instruction, initialize relevant parameters, the default peripheral device 3 internal page initial address Addr is the peripheral device 3 internal address Addr0 input by the internal address port 117 of the microcontroller 2 through the read and write operation , that is, Addr=Addr0; make the control register 107 record the read-write mode flag bit that the read-write mode flag port 118 inputs; make Done_num=1, represent that the data number that the page write mode is successfully written into the peripheral device 3 internal addresses is reset and recorded is 1.

在步骤S13中,读写控制模块102根据Addr0,判断还能以页写模式写入外围器件3内部地址且不产生数据溢出的最大数据个数RemainderBuf。具体比较Addr0的值与PageRange-1的值,若前者小于后者,则令RemainderBuf = PageRange-Addr-1,进入下一步;若二者相等,则令RemainderBuf=0,改变控制寄存器107中的读写模式标志位,以在下一个字节写成功后发送结束信号,进入下一步;若前者大于后者,则令RemainderBuf=Addr -PageRange+1,重复本步骤,直到前者小于或等于后者。In step S13 , the read/write control module 102 judges the maximum number of data RemainderBuf that can still be written to the internal address of the peripheral device 3 in page write mode without data overflow according to Addr0 . Specifically compare the value of Addr0 and the value of PageRange-1, if the former is less than the latter, then make RemainderBuf=PageRange-Addr-1, enter the next step; if the two are equal, then make RemainderBuf=0, change the read in control register 107 Write the mode flag to send the end signal after the next byte is successfully written, and enter the next step; if the former is greater than the latter, set RemainderBuf=Addr -PageRange+1, and repeat this step until the former is less than or equal to the latter.

在步骤S14中,等待页写操作的状态信号。当收到页写成功的信号,进入步骤S15;当收到页写失败的信号,进入步骤S21。In step S14, the status signal of the page write operation is waited for. When the signal of page writing success is received, go to step S15; when the signal of page writing failure is received, go to step S21.

在步骤S15中,判断Done_Num=RemainderBuf ,若相等到步骤S16,若不等到步骤S17。In step S15, it is judged that Done_Num=RemainderBuf, if equal, go to step S16, if not, go to step S17.

在步骤S16中,令控制寄存器107记录读写模式标志端口118输入的读写模式标志位,以便在下一个字节写成功后发送结束信号。In step S16, let the control register 107 record the read-write mode flag bit input by the read-write mode flag port 118, so as to send an end signal after the next byte is successfully written.

在步骤S17中,判断Done_Num=RemainderBuf +1,若相等到步骤S18,若不等到步骤S20。In step S17, it is judged that Done_Num=RemainderBuf+1, if equal, go to step S18, if not, go to step S20.

在步骤S18中,改变地址寄存器108的值,即Addr =Addr +Done_Num;计算还能以页写模式写入外围器件3内部地址且不产生数据溢出的最大数据个数,RemainderBuf =PageRange-1。In step S18, change the value of the address register 108, namely Addr=Addr+Done_Num; calculate the maximum number of data that can also be written into the internal address of the peripheral device 3 in page write mode without data overflow, RemainderBuf=PageRange-1.

在步骤S19中,复位页写操作写入数据成功的次数,即Done_Num=1,到步骤S14。In step S19, reset the number of times the page write operation successfully writes data, that is, Done_Num=1, and go to step S14.

在步骤S20中,令Done_num=Done_num+1,到步骤S14。In step S20, set Done_num=Done_num+1, go to step S14.

在步骤S21中,令RemainderBuf=RemainderBuf+1-Done_num。In step S21, let RemainderBuf=RemainderBuf+1-Done_num.

在步骤S22中,令Addr=Addr+Done_num-1。In step S22, let Addr=Addr+Done_num-1.

在步骤S23中,复位页写操作写入数据成功的次数,即Done_num=1,到步骤S14。In step S23, reset the number of times the page write operation successfully writes data, that is, Done_num=1, and go to step S14.

Claims (3)

1.一种基于IIC总线协议的改进型IP核1,其特征在于,包括页容量检测模块101、读写控制模块102、地址/数据/模式选通模块103、主状态机104、时钟分频模块105、页容量寄存器106、控制寄存器107、地址寄存器108、数据寄存器109、IIC状态寄存器110、IIC数据寄存器111、时钟端口112、复位端口113、时钟模式标志端口114、读操作的数据端口115、写操作的数据端口116、读写操作的内部地址端口117、读写模式标志端口118、设备地址端口119、页容量检测使能端口120、用户定义的页容量数据端口121、页容量检测成功标志端口122、读写成功标志端口123、IIC时钟总线端口124、IIC数据总线端口125;所述基于 IIC总线协议的改进型IP核1通过所述时钟端口112、所述复位端口113、所述时钟模式标志端口114、所述写操作的数据端口116、所述读写操作的内部地址端口117、所述读写模式标志端口118、所述设备地址端口119、所述页容量检测使能端口120、所述用户定义的页容量数据端口121,与微控制器2的输出端相连接,分别接收来自所述微控制器2的输出端的全局时钟、全局复位、时钟模式标志、写操作的数据、读写操作的内部地址、读写模式标志、设备地址、页容量检测使能、用户定义的页容量的信号;所述基于IIC总线协议的改进型IP核1的所述IIC时钟总线端口124通过所述时钟总线5连接外围器件3,用于发送时钟信号至所述外围器件3的输入端;所述基于IIC总线协议的改进型IP核1的所述IIC数据总线端口125通过所述数据总线4连接所述外围器件3,用于发送数据位信号至所述外围器件3的双向端,或者接收来自所述外围器件3的双向端的数据位;所述基于 IIC总线协议的改进型IP核1通过所述页容量检测成功标志端口122、所述读写成功标志端口123、所述读操作的数据端口115,与所述微控制器2的输入端相连接,分别输出页容量检测成功标志信号、读写成功标志信号、读操作读取的所述外围器件3内部地址的数据,至所述微控制器2的输入端。1. A kind of improved IP core 1 based on IIC bus protocol, it is characterized in that, comprises page capacity detection module 101, read and write control module 102, address/data/pattern gating module 103, main state machine 104, clock frequency division Module 105, page capacity register 106, control register 107, address register 108, data register 109, IIC status register 110, IIC data register 111, clock port 112, reset port 113, clock mode flag port 114, data port 115 for read operation , data port 116 for write operations, internal address port 117 for read and write operations, read/write mode flag port 118, device address port 119, page capacity detection enable port 120, user-defined page capacity data port 121, page capacity detection success Flag port 122, successful read and write flag port 123, IIC clock bus port 124, IIC data bus port 125; the improved IP core 1 based on the IIC bus protocol passes through the clock port 112, the reset port 113, the Clock mode flag port 114, the data port 116 of the write operation, the internal address port 117 of the read and write operation, the read and write mode flag port 118, the device address port 119, and the page capacity detection enable port 120. The user-defined page capacity data port 121 is connected to the output terminal of the microcontroller 2, and respectively receives the data of global clock, global reset, clock mode flag, and write operation from the output terminal of the microcontroller 2 , internal address of read-write operation, read-write mode flag, device address, page capacity detection enable, user-defined signal of page capacity; described IIC clock bus port 124 of the improved IP core 1 based on the IIC bus protocol Connect peripheral device 3 by described clock bus 5, be used to send clock signal to the input end of described peripheral device 3; Described IIC data bus port 125 of the improved IP core 1 based on IIC bus protocol passes through described data The bus 4 is connected to the peripheral device 3 for sending data bit signals to the bidirectional end of the peripheral device 3, or receiving data bits from the bidirectional end of the peripheral device 3; the improved IP core based on the IIC bus protocol 1. Through the page capacity detection success flag port 122, the read and write success flag port 123, and the read operation data port 115, connect to the input terminal of the microcontroller 2, and output the page capacity detection success flag respectively signal, the read/write successful flag signal, and the data of the internal address of the peripheral device 3 read by the read operation are sent to the input terminal of the microcontroller 2 . 2.根据权力要求1所述的基于IIC总线协议的改进型IP核1,其特征在于,所述页容量检测模块101用于根据所述页容量检测使能端口120、所述用户定义的页容量数据端口121的信号,在不破坏所述外围器件3的内部地址中的原有数据的前提下,得到所述外围器件3的页容量,并存储在所述页容量寄存器106中,页容量检测结束时,通过所述页容量检测成功标志端口122,输出页容量检测结束信号至微控制器2的输入端;所述读写控制模块102用于根据所述写操作的数据端口116、所述读写操作的内部地址端口117、所述读写模式标志端口118、所述设备地址端口119的信号,以及所述页容量寄存器106中存储的页容量的值,控制地址、数据、模式信息,再传送至所述地址/数据/模式选通模块103,实现对所述外围器件3的读写操作,而且在页写操作时避免数据溢出覆盖当前页的数据;所述页容量寄存器106用于存储所述外围器件3的页容量;所述地址/数据/模式选通模块103用于选通在所述页容量检测模块101或所述读写控制模块102输入的地址、数据以及模式信息,并相应存储到所述地址寄存器108、所述数据寄存器109以及所述控制寄存器107中;所述主状态机104用于通过所述IIC时钟总线端口124以及所述控制寄存器107、所述地址寄存器108、所述数据寄存器109的值,发送数据位信号至所述外围器件3的双向端,或者接收来自所述外围器件3的双向端的数据位,相应存储到所述IIC状态寄存器110、所述IIC数据寄存器111中,以控制与外围器件之间的数据传输;所述时钟分频模块105用于根据所述时钟模式标志端口114的信号确定分频系数,对所述时钟端口112输入的全局时钟信号分频,而且通过所述IIC时钟总线端口124输出符合IIC总线协议要求的时钟频率至所述外围器件3的输入端。2. the improved IP core 1 based on the IIC bus protocol according to claim 1, characterized in that, the page capacity detection module 101 is used to detect enabling port 120, the user-defined page according to the page capacity The signal of capacity data port 121, under the premise of not destroying the original data in the internal address of described peripheral device 3, obtains the page capacity of described peripheral device 3, and is stored in described page capacity register 106, page capacity When the detection ends, through the page capacity detection successful flag port 122, the output page capacity detection end signal is sent to the input terminal of the micro-controller 2; The internal address port 117 of the read-write operation, the read-write mode flag port 118, the signal of the device address port 119, and the value of the page capacity stored in the page capacity register 106, control address, data, mode information , and then sent to the address/data/pattern gating module 103 to realize the read and write operations to the peripheral device 3, and avoid data overflow to cover the data of the current page during the page write operation; the page capacity register 106 uses For storing the page capacity of the peripheral device 3; the address/data/mode gating module 103 is used for gating the address, data and mode information input in the page capacity detection module 101 or the read-write control module 102 , and correspondingly stored in the address register 108, the data register 109 and the control register 107; the main state machine 104 is used to pass the IIC clock bus port 124 and the control register 107, the address Register 108, the value of described data register 109, send data bit signal to the bidirectional end of described peripheral device 3, perhaps receive the data bit from the bidirectional end of described peripheral device 3, correspondingly store in described IIC status register 110, the In the IIC data register 111, to control the data transmission between the peripheral device; the clock frequency division module 105 is used to determine the frequency division coefficient according to the signal of the clock mode flag port 114, and input to the clock port 112 The frequency of the global clock signal is divided, and the clock frequency meeting the requirements of the IIC bus protocol is output to the input terminal of the peripheral device 3 through the IIC clock bus port 124 . 3.根据权力要求1或2所述的基于IIC总线协议的改进型IP核,其特征在于,所述控制寄存器107用于储存读写模式标志位、读写开始及结束标志位、检测页容量使能操作标志位;所述地址寄存器108用于保存将进行读写操作的所述外围器件3的内部地址;所述数据寄存器109用于保存待发送至所述外围器件3的数据;所述IIC状态寄存器110用于指示所述基于IIC总线协议的改进型IP核1往所述外围器件3内部地址读写数据是否成功;所述IIC数据寄存器111用于保存接收来自所述外围器件3的数据。3. according to claim 1 and 2 described based on the improved IP core of IIC bus agreement, it is characterized in that, described control register 107 is used for storing read-write mode flag bit, read-write start and end flag bit, detection page capacity Enable the operation flag bit; the address register 108 is used to save the internal address of the peripheral device 3 that will perform read and write operations; the data register 109 is used to save data to be sent to the peripheral device 3; the The IIC status register 110 is used to indicate whether the improved IP core 1 based on the IIC bus protocol reads and writes data to the internal address of the peripheral device 3 successfully; data.
CN201910692329.1A 2019-07-30 2019-07-30 Improved IP core based on IIC bus protocol Active CN110399325B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910692329.1A CN110399325B (en) 2019-07-30 2019-07-30 Improved IP core based on IIC bus protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910692329.1A CN110399325B (en) 2019-07-30 2019-07-30 Improved IP core based on IIC bus protocol

Publications (2)

Publication Number Publication Date
CN110399325A true CN110399325A (en) 2019-11-01
CN110399325B CN110399325B (en) 2023-05-30

Family

ID=68326447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910692329.1A Active CN110399325B (en) 2019-07-30 2019-07-30 Improved IP core based on IIC bus protocol

Country Status (1)

Country Link
CN (1) CN110399325B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5644748A (en) * 1992-01-30 1997-07-01 Fujitsu Limited Processor system including an index buffer circuit and a translation look-aside buffer control circuit for processor-to-processor interfacing
EP0811925A2 (en) * 1996-06-05 1997-12-10 Compaq Computer Corporation Multi-threaded bus master
US5819053A (en) * 1996-06-05 1998-10-06 Compaq Computer Corporation Computer system bus performance monitoring
JP2010039509A (en) * 2008-07-31 2010-02-18 Hitachi Ltd Storage device and data write control method
CN101751980A (en) * 2008-12-17 2010-06-23 中国科学院电子学研究所 Embedded programmable memory based on memory IP core
CN102207916A (en) * 2011-05-30 2011-10-05 西安电子科技大学 Instruction prefetch-based multi-core shared memory control equipment
CN203250175U (en) * 2013-05-22 2013-10-23 江西理工大学 Simple programmable single-axis system multi-segment controller
US20140281759A1 (en) * 2013-03-15 2014-09-18 Samsung Electronics Co., Ltd. Bus protocol checker, system on chip including the same, bus protocol checking method
CN104598418A (en) * 2015-01-27 2015-05-06 北京奥普维尔科技有限公司 System and method for controlling I2C communication based on FPGA (Field Programmable Gate Array)
US20150355965A1 (en) * 2013-03-07 2015-12-10 Charles I. Peddle High speed flash controllers
CN106126362A (en) * 2016-06-17 2016-11-16 青岛海信宽带多媒体技术有限公司 A kind of optical module I2C bus unrest sequential diagnosis method and device
CN106649158A (en) * 2016-12-27 2017-05-10 中国科学院微电子研究所 Device and method for reading and writing internal register file through I2C interface

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5644748A (en) * 1992-01-30 1997-07-01 Fujitsu Limited Processor system including an index buffer circuit and a translation look-aside buffer control circuit for processor-to-processor interfacing
EP0811925A2 (en) * 1996-06-05 1997-12-10 Compaq Computer Corporation Multi-threaded bus master
US5819053A (en) * 1996-06-05 1998-10-06 Compaq Computer Corporation Computer system bus performance monitoring
JP2010039509A (en) * 2008-07-31 2010-02-18 Hitachi Ltd Storage device and data write control method
CN101751980A (en) * 2008-12-17 2010-06-23 中国科学院电子学研究所 Embedded programmable memory based on memory IP core
CN102207916A (en) * 2011-05-30 2011-10-05 西安电子科技大学 Instruction prefetch-based multi-core shared memory control equipment
US20150355965A1 (en) * 2013-03-07 2015-12-10 Charles I. Peddle High speed flash controllers
US20140281759A1 (en) * 2013-03-15 2014-09-18 Samsung Electronics Co., Ltd. Bus protocol checker, system on chip including the same, bus protocol checking method
CN203250175U (en) * 2013-05-22 2013-10-23 江西理工大学 Simple programmable single-axis system multi-segment controller
CN104598418A (en) * 2015-01-27 2015-05-06 北京奥普维尔科技有限公司 System and method for controlling I2C communication based on FPGA (Field Programmable Gate Array)
CN106126362A (en) * 2016-06-17 2016-11-16 青岛海信宽带多媒体技术有限公司 A kind of optical module I2C bus unrest sequential diagnosis method and device
CN106649158A (en) * 2016-12-27 2017-05-10 中国科学院微电子研究所 Device and method for reading and writing internal register file through I2C interface

Non-Patent Citations (9)

* Cited by examiner, † Cited by third party
Title
俞伟 等: "IIC总线控制器IP核设计", 《世界科技研究与展望》 *
刘良福: "MCS-51单片机模拟I2C总线传输的实现方法", 《赣南师范学院学报》 *
卢中华: "基于CPLD/FPGA平台I2C总线IP核的设计", 《职业》 *
官枫林 等: "一种嵌入式芯片IP核-I2C接口的仿真验证方法", 《大众科技》 *
徐洋洋: "基于FPGA的多通道大容量FIFO设计", 《电子测量技术》 *
梁颖: "SOPC中FPGA IP核配置方案研究与实现", 《中国优秀博硕士学位论文全文数据库(硕士) 信息科技辑》 *
王建雄 等: "基于AMBA总线的IIC协议IP核设计与验证", 《微处理机》 *
董晓健 等: "软硬件协同设计的超高阶矩阵运算的FPGA芯片", 《2011 INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND MULTIMEDIA COMMUNICATION(SEMC)》 *
马金岭等: "基于NiosⅡ的I~2C总线接口的实现", 《电子工程师》 *

Also Published As

Publication number Publication date
CN110399325B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
CN105283918B (en) The equipment realized memory device and accessed, method and system are ordered using the multicycle
US8897090B2 (en) Memory system having a plurality of serially connected devices
US20140082267A1 (en) EMBEDDED MULTIMEDIA CARD (eMMC), HOST CONTROLLING eMMC, AND METHOD OPERATING eMMC SYSTEM
CN100426275C (en) Bus interface devices and method
US20100191901A1 (en) Non-volatile storage device, host device, non-volatile storage system, data recording method, and program
CN114297134A (en) A chip architecture and signal integrity testing method
CN106158012B (en) Sequence processing method of on-chip SRAM in FPGA, on-chip SRAM and FPGA
CN117198363A (en) Dual data rate synchronous dynamic random access memory system, method, equipment and storage medium
CN110399325B (en) Improved IP core based on IIC bus protocol
US20030088729A1 (en) Nonvolatile memory device with double serial/parallel communication interface
US9753485B2 (en) Data processing method and apparatus for writing data into a memory according to a clock signal
TWI607222B (en) Semiconductor device
CN110764956B (en) SD or MMC interface testing device and method based on FPGA
CN105788639B (en) Radar data recorder power failure continuation device and continuation method based on eMMC
JP3625879B2 (en) Information recording medium with memory check function
CN118838644B (en) Configuration register group circuit with arbitrary bit write operation
TWI877737B (en) Memory system
CN110781118B (en) Method and device, computer equipment, and media for realizing parallel bus slave mode
CN114267397B (en) A global configuration programming method, device and system
CN212990690U (en) Double-serial-port bus Nand type memory
CN207782989U (en) CMOS digital camera circuit based on MT9V032
CN114400030A (en) Identification and remapping method of DDR4 interface data interleaved wiring
CN104347101B (en) Data processing method and device
US6088271A (en) Method and apparatus for transferring signal to circuit without waveform distortion
CN120375890A (en) Control circuit, memory system, chip and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant